com.mymed.model.data.session
Class MSessionBean

java.lang.Object
  extended by com.mymed.model.data.AbstractMBean
      extended by com.mymed.model.data.session.MSessionBean

public class MSessionBean
extends AbstractMBean


Constructor Summary
MSessionBean()
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getAccessToken()
           
 java.lang.String getCurrentApplications()
           
 java.lang.String getId()
           
 java.lang.String getIp()
           
 int getPort()
           
 long getTimeout()
           
 java.lang.String getUser()
           
 int hashCode()
           
 boolean isExpired()
           
 boolean isP2P()
           
 void setAccessToken(java.lang.String accessToken)
           
 void setCurrentApplications(java.lang.String currentApplications)
          Set the ID of the applications list to associate with this session
 void setExpired(boolean isExpired)
           
 void setId(java.lang.String id)
          Set the id of the session
 void setIp(java.lang.String ip)
          Set the IP of this session
 void setP2P(boolean isP2P)
          Set whatever the session is on a P2P protocol
 void setPort(int port)
          Set the port of the session
 void setTimeout(long timestamp)
           
 void setUser(java.lang.String user)
          Set the ID of the user to associate with this session
 java.lang.String toString()
           
 
Methods inherited from class com.mymed.model.data.AbstractMBean
getAttributeToMap
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MSessionBean

public MSessionBean()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AbstractMBean

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

getId

public java.lang.String getId()
Returns:
the id of the session

setId

public void setId(java.lang.String id)
Set the id of the session

Parameters:
id -

getUser

public java.lang.String getUser()
Returns:
the ID of the user associated with the session

setUser

public void setUser(java.lang.String user)
Set the ID of the user to associate with this session

Parameters:
user -

getCurrentApplications

public java.lang.String getCurrentApplications()
Returns:
the ID of the applications list associated with this session

setCurrentApplications

public void setCurrentApplications(java.lang.String currentApplications)
Set the ID of the applications list to associate with this session

Parameters:
currentApplications -

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timestamp)

isP2P

public boolean isP2P()
Returns:
true if the session is on a P2P protocol

setP2P

public void setP2P(boolean isP2P)
Set whatever the session is on a P2P protocol

Parameters:
isP2P -

getIp

public java.lang.String getIp()
Returns:
the IP bound to this session

setIp

public void setIp(java.lang.String ip)
Set the IP of this session

Parameters:
ip -

getPort

public int getPort()
Returns:
the port of the session

setPort

public void setPort(int port)
Set the port of the session

Parameters:
port -

getAccessToken

public java.lang.String getAccessToken()

setAccessToken

public void setAccessToken(java.lang.String accessToken)

isExpired

public boolean isExpired()

setExpired

public void setExpired(boolean isExpired)