|
||||||||||
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 | |
---|---|
Object |
call(String pObjectName,
String pMethod,
Object... pParams)
Executes a method from an object in the life-cycle object. |
Object |
callAction(String pAction,
Object... pParams)
Executes an action from the life-cycle object. |
Object |
get(String pObjectName)
Gets an object from the life-cycle object. |
long |
getAliveInterval()
Gets the desired client-side communication interval for this session. |
String |
getApplicationName()
Gets the associated application name of the session. |
IConfiguration |
getConfig()
Gets the IConfiguration of the session. |
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. |
String |
getLifeCycleName()
Gets the name of the life-cycle object. |
int |
getMaxInactiveInterval()
Returns the maximum time interval, in minutes, that this session will be active. |
String |
getPassword()
Gets the sessions password. |
Hashtable<String,Object> |
getProperties()
Gets all properties. |
Object |
getProperty(String pName)
Gets the value of a property. |
long |
getStartTime()
Gets the session start/create time. |
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. |
Object |
put(String pObjectName,
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 minutes, between access before the session will be inactive. |
void |
setProperty(String pName,
Object pValue)
Sets the value of a property. |
Method Detail |
---|
Object getId()
String getLifeCycleName()
String getApplicationName()
String getUserName()
String getPassword()
Object getProperty(String pName)
pName
- the property name
null
if the property is not availableHashtable<String,Object> getProperties()
Hashtable
with property names and valuesvoid setProperty(String pName, 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 minutesint 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()
Object call(String pObjectName, String pMethod, Object... pParams) throws Throwable
pObjectName
- list of already mapped server object name/aliaspMethod
- method name which should be calledpParams
- parameters for the method call
Throwable
- if the object identified by pObjectName
was found but can not be created
SecurityException
- if the method call is not allowedObject callAction(String pAction, Object... pParams) throws Throwable
pAction
- action which should be calledpParams
- the parameters for the action call
Throwable
- communication error, security checks, invalid action, ...Object get(String pObjectName) throws Throwable
pObjectName
- the object name
Throwable
- if the object was not found or an error occured during object creationObject put(String pObjectName, Object pObject) throws Throwable
pObjectName
- the object namepObject
- the object
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 |