|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISession
Provides a way to identify a user and to store information about that user.
Method Summary | |
---|---|
java.lang.Object |
call(java.lang.String pObjectName,
java.lang.String pMethod,
java.lang.Object... pParams)
Executes a method from an object in the life-cycle object. |
java.lang.Object |
callAction(java.lang.String pAction,
java.lang.Object... pParams)
Executes an action from the life-cycle object. |
java.lang.Object |
get(java.lang.String pObjectName)
Gets an object from the life-cycle object. |
long |
getAliveInterval()
Gets the desired client-side communication interval for this session. |
java.lang.String |
getApplicationName()
Gets the associated application name of the session. |
IConfiguration |
getConfig()
Gets the IConfiguration of the session. |
java.lang.Object |
getId()
Gets the session identifier. |
long |
getLastAccessTime()
Gets the time of the last session access. |
long |
getLastAliveTime()
Gets the time of the last communication of the session. |
java.lang.String |
getLifeCycleName()
Gets the name of the life-cycle object. |
int |
getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that this session will be active. |
java.lang.String |
getPassword()
Gets the sessions password. |
java.util.Hashtable<java.lang.String,java.lang.Object> |
getProperties()
Gets all properties. |
java.lang.Object |
getProperty(java.lang.String pName)
Gets the value of a property. |
long |
getStartTime()
Gets the session start/create time. |
java.lang.String |
getUserName()
Gets the sessions user name. |
boolean |
isAlive(long pAccessTime)
Checks if the session is alive. |
boolean |
isInactive(long pAccessTime)
Checks if the session is inactive. |
java.lang.Object |
put(java.lang.String pObjectName,
java.lang.Object pObject)
Puts an object to the life-cycle object. |
void |
setAliveInterval(long pAliveInterval)
Sets the desired client-side communication interval for this session. |
void |
setMaxInactiveInterval(int pMaxInactiveInterval)
Specifies the time, in seconds, before the session will be inactive. |
void |
setProperty(java.lang.String pName,
java.lang.Object pValue)
Sets the value of a property. |
Method Detail |
---|
java.lang.Object getId()
java.lang.String getLifeCycleName()
java.lang.String getApplicationName()
java.lang.String getUserName()
java.lang.String getPassword()
java.lang.Object getProperty(java.lang.String pName)
pName
- the property name
null
if the property is not availablejava.util.Hashtable<java.lang.String,java.lang.Object> getProperties()
Hashtable
with property names and valuesvoid setProperty(java.lang.String pName, java.lang.Object pValue)
pName
- the property namepValue
- the value for the property or null
to delete the propertylong getStartTime()
long getLastAccessTime()
void setMaxInactiveInterval(int pMaxInactiveInterval)
pMaxInactiveInterval
- time in secondsint getMaxInactiveInterval()
setMaxInactiveInterval
method. A zero or negative time indicates the session should never be inactive.
setMaxInactiveInterval(int)
boolean isInactive(long pAccessTime)
pAccessTime
- current access time
true
if the session is inactivegetMaxInactiveInterval()
,
getLastAccessTime()
long getLastAliveTime()
void setAliveInterval(long pAliveInterval)
pAliveInterval
- the alive interval (client-side)long getAliveInterval()
boolean isAlive(long pAccessTime)
pAccessTime
- current access time
true
if the session is alivegetLastAliveTime()
,
getAliveInterval()
java.lang.Object call(java.lang.String pObjectName, java.lang.String pMethod, java.lang.Object... pParams) throws java.lang.Throwable
pObjectName
- list of already mapped server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
java.lang.Throwable
- if the object identified by pObjectName
was found but can not be created
java.lang.SecurityException
- if the method call is not allowedjava.lang.Object callAction(java.lang.String pAction, java.lang.Object... pParams) throws java.lang.Throwable
pAction
- action which should be calledpParams
- the parameters for the action call
java.lang.Throwable
- communication error, security checks, invalid action, ...java.lang.Object get(java.lang.String pObjectName) throws java.lang.Throwable
pObjectName
- the object name
java.lang.Throwable
- if the object was not found or an error occured during object creationjava.lang.Object put(java.lang.String pObjectName, java.lang.Object pObject) throws java.lang.Throwable
pObjectName
- the object namepObject
- the object
java.lang.Throwable
- if an unknown error occurs while putting the objectIConfiguration getConfig()
IConfiguration
of the session.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |