org.apache.wsrp4j.consumer.driver
Class GenericUserSessionImpl

java.lang.Object
  extended byorg.apache.wsrp4j.consumer.driver.InitCookieInfoImpl
      extended byorg.apache.wsrp4j.consumer.driver.GenericUserSessionImpl
All Implemented Interfaces:
InitCookieInfo, UserSession, UserSessionMgr

public abstract class GenericUserSessionImpl
extends InitCookieInfoImpl
implements UserSessionMgr


Field Summary
protected  java.util.Hashtable groupSessions
           
 
Constructor Summary
GenericUserSessionImpl(java.lang.String producerID, java.lang.String userID, java.lang.String markupURL)
           
 
Method Summary
 void addGroupSession(GroupSession groupSession)
          Add a group session to the user session
 boolean existsGroupSession(java.lang.String groupID)
          Check if a group session exists for the given group ID
 java.util.Iterator getAllGroupSessions()
          Get all group session
abstract  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
protected  void setGroupSessionTable(java.util.Hashtable groupSessions)
           
 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
 
Methods inherited from class org.apache.wsrp4j.consumer.driver.InitCookieInfoImpl
getMarkupInterfaceURL, getWSRPBaseService, isInitCookieDone, isInitCookieRequired, setInitCookieDone, setInitCookieRequired, setWSRPBaseService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wsrp4j.consumer.InitCookieInfo
getMarkupInterfaceURL, getWSRPBaseService, isInitCookieDone, isInitCookieRequired, setInitCookieDone, setInitCookieRequired, setWSRPBaseService
 

Field Detail

groupSessions

protected java.util.Hashtable groupSessions
Constructor Detail

GenericUserSessionImpl

public GenericUserSessionImpl(java.lang.String producerID,
                              java.lang.String userID,
                              java.lang.String markupURL)
                       throws WSRPException
Method Detail

getUserID

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

Specified by:
getUserID in interface UserSession
Returns:
User ID

setUserID

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

Specified by:
setUserID in interface UserSession
Parameters:
userID - ID of the user

getProducerID

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

Specified by:
getProducerID in interface UserSession
Returns:
ID of the producer

setProducerID

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

Specified by:
setProducerID in interface UserSession
Parameters:
producerID - ID of the producer

getGroupSession

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

Specified by:
getGroupSession in interface UserSession
Parameters:
groupID - ID of the portlet application
Returns:
The a group session for the provided group ID or a new groupSession
Throws:
WSRPException

addGroupSession

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

Specified by:
addGroupSession in interface UserSession
Parameters:
groupSession - A group session

getAllGroupSessions

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

Specified by:
getAllGroupSessions in interface UserSession
Returns:
Iterator with all group sessions for the given producer access point

removeGroupSession

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

Specified by:
removeGroupSession in interface UserSession
Parameters:
groupID - ID of the portlet application

removeAllGroupSessions

public void removeAllGroupSessions()
Remove all group sessions

Specified by:
removeAllGroupSessions in interface UserSession

existsGroupSession

public boolean existsGroupSession(java.lang.String groupID)
Check if a group session exists for the given group ID

Parameters:
groupID - ID of the portlet group
Returns:
True if a group session exists for the provided group ID

setGroupSessionTable

protected void setGroupSessionTable(java.util.Hashtable groupSessions)