org.exoplatform.services.wsrp.consumer.impl.helpers
Class UserSessionImpl

java.lang.Object
  extended by org.exoplatform.services.wsrp.consumer.templates.InitCookieTemplate
      extended by org.exoplatform.services.wsrp.consumer.impl.helpers.InitCookieImpl
          extended by org.exoplatform.services.wsrp.consumer.impl.helpers.UserSessionImpl
All Implemented Interfaces:
java.io.Serializable, InitCookieInfo, UserSession, UserSessionMgr

public class UserSessionImpl
extends InitCookieImpl
implements UserSessionMgr

See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.String,GroupSession> groupSessions
           
 
Constructor Summary
UserSessionImpl(java.lang.String markupInterfaceURL)
           
 
Method Summary
 void addGroupSession(GroupSession groupSession)
          Add a group session to the user session
 java.util.Iterator<GroupSession> getAllGroupSessions()
          Get all group session
 GroupSessionMgr getGroupSession(java.lang.String groupID)
          Get the group session for this group ID
 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 setUserID(java.lang.String userID)
          Set the ID of the user this session is bind to
 
Methods inherited from class org.exoplatform.services.wsrp.consumer.impl.helpers.InitCookieImpl
getMarkupInterfaceURL, getWSRPMarkupService, setWSRPMarkupService
 
Methods inherited from class org.exoplatform.services.wsrp.consumer.templates.InitCookieTemplate
isInitCookieDone, isInitCookieRequired, setInitCookieDone, setInitCookieRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exoplatform.services.wsrp.consumer.InitCookieInfo
getMarkupInterfaceURL, getWSRPMarkupService, isInitCookieDone, isInitCookieRequired, setInitCookieDone, setInitCookieRequired, setWSRPMarkupService
 

Field Detail

groupSessions

protected java.util.Map<java.lang.String,GroupSession> groupSessions
Constructor Detail

UserSessionImpl

public UserSessionImpl(java.lang.String markupInterfaceURL)
Method Detail

getGroupSession

public GroupSessionMgr getGroupSession(java.lang.String groupID)
                                throws WSRPException
Description copied from interface: UserSession
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

getUserID

public java.lang.String getUserID()
Description copied from interface: UserSession
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)
Description copied from interface: UserSession
Set the ID of the user this session is bind to

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

getAllGroupSessions

public java.util.Iterator<GroupSession> getAllGroupSessions()
Description copied from interface: UserSession
Get all group session

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

addGroupSession

public void addGroupSession(GroupSession groupSession)
Description copied from interface: UserSession
Add a group session to the user session

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

removeGroupSession

public void removeGroupSession(java.lang.String groupID)
Description copied from interface: UserSession
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()
Description copied from interface: UserSession
Remove all group sessions

Specified by:
removeAllGroupSessions in interface UserSession


Copyright © 2011 eXo Platform SAS. All Rights Reserved.