Results 1 to 2 of 2

Thread: Capturing UserId in spring webflow

  1. #1
    Join Date
    Jun 2009
    Posts
    6

    Default Capturing UserId in spring webflow

    Hi All,

    I need to capture/track the userId of the user that is using my application and then i need to use it to see that the user who created a record must not be able to edit the same record. Please guide me as how to do this.

    Thanks in advance.

    Vamshi.

  2. #2
    Join Date
    Nov 2008
    Posts
    742

    Default

    Are you referring to a UserId obtained through Spring Security, or some kind of custom user ID? Either way, you should have access to it in SWF. I'm assuming you have a state which allows the user to edit a record, and that you have access to the userId of the user who created the record. You can use an evaluate action to check if the userId of the current user is the same as the userId of the record creator, and prevent that editing state from being reached. It's not really something webflow-specific, it's just some simple if / else logic.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •