|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectrestgroupsServer.ProfileEntity
public class ProfileEntity
For each correctly connected client an object of this class is created. All information about the client (user name, identifier, sessionId) as well as group communication system session objects are stored within this class.
Constructor Summary | |
---|---|
ProfileEntity(java.util.UUID sessionId,
java.lang.String username,
java.lang.String identifier,
java.lang.Boolean groupMembership,
java.lang.Boolean priority,
long connectionThreadID)
The constructor of the class. |
Method Summary | |
---|---|
void |
disconnectFromGcs()
Disconnects the client from the group communication system. |
GcsConnection |
getConnection()
Returns the connection object. |
long |
getConnectionThreadID()
Returns the clients connectionThreadId. |
boolean |
getGroupMembership()
Returns the clients groupMembership. |
java.util.Map<java.lang.String,GcsGroup> |
getGroups()
Returns the map of gcs groups. |
java.lang.String |
getIdentifier()
Returns the clients identifier. |
GcsMessageListener |
getMessageListener()
Returns the clients messageListener. |
ProfileResourceReturnRepresentation |
getReturnRepresentationReference()
Returns the client returnRepresentationReference. |
java.util.UUID |
getSessionId()
Returns the clients sessionId. |
java.lang.String |
getUsername()
Return the clients username. |
void |
setConnection(GcsConnection connection)
Sets the clients connection object. |
void |
setConnectionThreadID(long connectionThreadID)
Sets the clients connectionThreadId. |
void |
setGroupMembership(boolean groupMembership)
Sets the clients groupMembership. |
void |
setGroups(java.util.Map<java.lang.String,GcsGroup> groups)
Sets the new map of gcs groups. |
void |
setIdentifier(java.lang.String identifier)
Sets the client identifier. |
void |
setMessageListener(GcsMessageListener messageListener)
Sets the clients messagesListener |
void |
setReturnRepresentationReference(ProfileResourceReturnRepresentation returnRepresentationReference)
Sets the clients returnRepresentationReference. |
void |
setSessionId(java.util.UUID sessionId)
Sets the clients sessionId. |
void |
setUsername(java.lang.String username)
Sets the clients username. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileEntity(java.util.UUID sessionId, java.lang.String username, java.lang.String identifier, java.lang.Boolean groupMembership, java.lang.Boolean priority, long connectionThreadID) throws GcsException
ProfileResource.createProfile(org.restlet.representation.Representation)
method. This constructor calls the connectToGcs()
method.
sessionId
- clients sessionIdusername
- clients usernameidentifier
- clients identifiergroupMembership
- true if the client wants to receive membership messagespriority
- determines whether the client wants to established priority
connection with the group communication systemconnectionThreadID
- ID of the thread used for checking if the client is alive
GcsException
- if the group communication system session for the client
could not be establishedMethod Detail |
---|
public void disconnectFromGcs() throws GcsException
MailboxBlockingResource.retrieveMessages()
), the listener is
deactivated.
GcsException
public void setConnection(GcsConnection connection)
connection
- new connection objectpublic GcsConnection getConnection()
public void setGroups(java.util.Map<java.lang.String,GcsGroup> groups)
gcs
groups.
groups
- new map if gcs
groupspublic java.util.Map<java.lang.String,GcsGroup> getGroups()
gcs
groups.
gcs
groupspublic void setIdentifier(java.lang.String identifier)
identifier
- the clients new identifierpublic java.lang.String getIdentifier()
public void setSessionId(java.util.UUID sessionId)
sessionId
- the clients new sessionIdpublic java.util.UUID getSessionId()
public void setUsername(java.lang.String username)
username
- the clients new usernamepublic java.lang.String getUsername()
public void setConnectionThreadID(long connectionThreadID)
connectionThreadID
- the clients new connectionThreadIdpublic long getConnectionThreadID()
public void setGroupMembership(boolean groupMembership)
groupMembership
- the clients new groupMembershippublic boolean getGroupMembership()
public void setMessageListener(GcsMessageListener messageListener)
messageListener
- the clients new messageListenerpublic GcsMessageListener getMessageListener()
public void setReturnRepresentationReference(ProfileResourceReturnRepresentation returnRepresentationReference)
returnRepresentationReference
- the clients returnRepresentationReferencepublic ProfileResourceReturnRepresentation getReturnRepresentationReference()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |