Ticket S171108
Visible to All Users

Security - Querying, creating additional objects or modifying protected data in code (preferably within the same transaction)

created 12 years ago (modified 10 years ago)
Show previous comments (17)
W W
Willem de Vries 7 years ago

    @Dennis: no it's not my original problem.
    And i did not really intend to suggest a workflow in a middle tier server, just a separate workflow server.
    After posting the comment, i thought that my suggestion to use WF in this scenario was not very appropriate. I apologize for that.
    Willem

      Dennis. Maybe you can show me an example of using the SecureObjectSpace provider with my scenario.

      "If the solutions outlined in the reference thread do not meet your needs " I see the XPObjectSpaceProviderThreadSafe descendant, but unclear on how to use it. I follow this pattern in many business objects.

      Maybe if you show me how YOU would handle this scenario, we can put this one to bed finally :) Because I really need to migrate to the SecureObjectSpace.

      Dennis Garavsky (DevExpress) 7 years ago

        @Nate: Would you mind researching the scenario and sample from the Calculate from SecuredObjectSpaceProvider's objects ticket we made in the past for another customer with a similar requirement? The most interesting code is in the directBaseUow_BeforeCommitTransaction method that demonstrates how to implement a popular master-detail scenario described in the How to: Calculate a Property Value Based on Values from a Detail Collection topic using this approach.
        I am afraid we do not currently have free support resources to make another sample from scratch in a reasonable time frame. Note: this implementation may vary in minor details (but still work fine) in the latest XAF versions as we are simplifying customization process for custom object spaces or providers (How to customize the UnitOfWork behavior in XPO-based XAF applications).

        As I noted above, in your particular case, I would consider a totally different approach (see my previous comment about Controller), which may be easier for you to implement and maintain.

        Should you experience any specific implementation difficulties with any of these approaches, please submit a separate ticket using the https://www.devexpress.com/ask service and attach your small debuggable sample with a few involved classes and your implementation of one of the aforementioned approaches. With that, we will be in a better position to provide you further assistance and get your task done faster. Thanks.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.