restgroupsServer
Class ProfilesPilotEntity

java.lang.Object
  extended by restgroupsServer.ProfilesPilotEntity

public class ProfilesPilotEntity
extends java.lang.Object

For each client an instance of this class is created during the process of connecting to the RestGroups.

Author:
tkob

Constructor Summary
ProfilesPilotEntity(java.lang.String token, java.lang.String username)
          Constructor.
 
Method Summary
 ProfileEntity getProfileEntityReference()
          Returns the reference to the BaseResource.mySession object.
 java.lang.String getToken()
          Returns the clients token.
 java.lang.String getUsername()
          Returns the clients username.
 boolean isStatusOk()
          Returns the status flag.
 void setProfileEntityReference(ProfileEntity profileEntityReference)
          Sets the profileEntityReference (reference to BaseResource.mySession ).
 void setStatusOk(boolean status)
          Sets the status flag.
 void setToken(java.lang.String token)
          Sets the clients new token.
 void setUsername(java.lang.String username)
          Sets the new username.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilesPilotEntity

public ProfilesPilotEntity(java.lang.String token,
                           java.lang.String username)
Constructor.

Parameters:
token - sessionId
username - the clients username
Method Detail

setToken

public void setToken(java.lang.String token)
Sets the clients new token.

Parameters:
token - the clients new token

getToken

public java.lang.String getToken()
Returns the clients token.

Returns:
the clients token

setStatusOk

public void setStatusOk(boolean status)
Sets the status flag.

Parameters:
status -

isStatusOk

public boolean isStatusOk()
Returns the status flag.

Returns:
the status flag

setProfileEntityReference

public void setProfileEntityReference(ProfileEntity profileEntityReference)
Sets the profileEntityReference (reference to BaseResource.mySession ).

Parameters:
profileEntityReference - new reference to the mySession object

getProfileEntityReference

public ProfileEntity getProfileEntityReference()
Returns the reference to the BaseResource.mySession object.

Returns:
the reference to the mySession object.

setUsername

public void setUsername(java.lang.String username)
Sets the new username.

Parameters:
username - the new clients username

getUsername

public java.lang.String getUsername()
Returns the clients username.

Returns:
the clients username