Results 1 to 3 of 3

Thread: Newbie's question: design interface for remote access

  1. #1
    Join Date
    Aug 2004
    Posts
    19

    Default Newbie's question: design interface for remote access

    This is a question that i always come with. For example, This is an interface as this:
    Code:
    public interface IFoo{
       IBar getBar(int id);
    }
    This interface is exposed as a remote Web Service-RPC function for third-party to use.
    But The Bar object is context sensitive. In other words, User A can only view Bar1 ,UserB can only view Bar2. So my question is : The service have no idea who sends the request. if the User B calls the interface with argument "1", The User B may get Bar1 easily. To avoid this problem, i have to add an identity argument in the remote interface. But it looks like so clumsy.

    How about your smart guys opinion? I would appreciate you help. thx!

  2. #2
    Join Date
    Nov 2004
    Location
    Hilversum - The Netherlands
    Posts
    1,054

    Default

    Maybe some kind of identity object could be created as soon as the client logs in. This identity object could be bound to the thread of that client so your service could determine what to send back.. (and what not).

    Check http://acegisecurity.sourceforge.net btw for more information.

  3. #3
    Join Date
    Aug 2004
    Posts
    19

    Default

    thx,Alarmnummer. I'll check it

Similar Threads

  1. Replies: 5
    Last Post: Nov 4th, 2010, 06:21 AM
  2. design strategy question
    By cyber in forum Container
    Replies: 1
    Last Post: Aug 31st, 2005, 05:54 AM
  3. Bean design question
    By egervari in forum Container
    Replies: 1
    Last Post: May 12th, 2005, 12:43 PM
  4. Replies: 6
    Last Post: Oct 8th, 2004, 02:21 PM
  5. Design question, c3p0 and more..
    By kantorn in forum Data
    Replies: 4
    Last Post: Oct 7th, 2004, 08:20 AM

Posting Permissions

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