In our application we have implemented the following
1. User security by extending the RequestFactoryServlet and *overriding
the doPost* method for validating the user session.
2. If the user is logged in the request is proceeded further
3. If the user is not logged in Error is sent back as the response ( Have
*custom RequestTransport* for this as Thomas Broyer suggested in the
groups )
4. Also the user id, session id is added to the HTTP Header in the
*RequestTransport's
configureHeader*.
Now what we would like to do is to use the user id as part of the
RequestContext internally.
For example, to retrieve all the record's for a particular user,
@Service(value = IUserService.class, locator = ServiceLocator.class)
public interface UserRequest extends RequestContext
{
abstract Request<List<RecordProxy>>* findRecords(String userId);*
}
The service locator locates the IUserService implementation from the spring
layer. The User service also has the method findRecords(String userID) which
returns List<Record> objects.
I am wondering whether, Is it possible to have the method signatures on the
RequestContext as follows,
@Service(value = IUserService.class, locator = ServiceLocator.class)
public interface UserRequest extends RequestContext
{
abstract Request<List<RecordProxy>> *findRecords()*;
}
The findRecords() is not taking the user id as the parameter. Is it possible
to add the user id from the session to the server call. I just dont want all
the my RequestContext methods to have "User ID".
I feel this is possible but can't figure it out on my own.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.