org.apache.wsrp4j.consumer
Interface UserSession

All Known Subinterfaces:
UserSessionMgr
All Known Implementing Classes:
GenericUserSessionImpl

public interface UserSession

A consumer based session which represents a user session with a certain producer. This user session contains one or more group sessions.

Author:
Stephan Laertz, Peter Fischer
See Also:
GroupSession

Method Summary
 void addGroupSession(GroupSession groupSession)
          Add a group session to the user session
 java.util.Iterator getAllGroupSessions()
          Get all group session
 GroupSessionMgr getGroupSession(java.lang.String groupID)
          Get the group session for this group ID
 java.lang.String getProducerID()
          Get ID of the producer this session is bind to
 java.lang.String getUserID()
          Get ID of the user this session is bind to
 void removeAllGroupSessions()
          Remove all group sessions
 void removeGroupSession(java.lang.String groupID)
          Remove a group session from the user session
 void setProducerID(java.lang.String producerID)
          Set the ID of the producer this session is bind to.
 void setUserID(java.lang.String userID)
          Set the ID of the user this session is bind to
 

Method Detail

getUserID

public java.lang.String getUserID()
Get ID of the user this session is bind to

Returns:
User ID

getProducerID

public java.lang.String getProducerID()
Get ID of the producer this session is bind to

Returns:
ID of the producer

getGroupSession

public GroupSessionMgr getGroupSession(java.lang.String groupID)
                                throws WSRPException
Get the group session for this group ID

Parameters:
groupID - ID of the portlet application
Returns:
The a group session for the provided group ID or a new groupSession
Throws:
WSRPException

getAllGroupSessions

public java.util.Iterator getAllGroupSessions()
Get all group session

Returns:
Iterator with all group sessions for the given producer access point

setUserID

public void setUserID(java.lang.String userID)
Set the ID of the user this session is bind to

Parameters:
userID - ID of the user

setProducerID

public void setProducerID(java.lang.String producerID)
Set the ID of the producer this session is bind to.

Parameters:
producerID - of the producer

addGroupSession

public void addGroupSession(GroupSession groupSession)
Add a group session to the user session

Parameters:
groupSession - A group session

removeGroupSession

public void removeGroupSession(java.lang.String groupID)
Remove a group session from the user session

Parameters:
groupID - ID of the portlet application

removeAllGroupSessions

public void removeAllGroupSessions()
Remove all group sessions