Klasse GroovySession
java.lang.Object
groovy.lang.GroovyObjectSupport
de.uplanet.lucy.server.portalserver.GroovySession
- Alle implementierten Schnittstellen:
ISession,groovy.lang.GroovyObject
@Scriptable
public final class GroovySession
extends groovy.lang.GroovyObjectSupport
implements ISession
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.session.ISession
DEFAULT_TIMEOUT -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddListener(de.uplanet.lucy.server.session.ISessionListener p_listener, boolean p_bWeak) Add a listener for session events.booleancontainsKey(String p_strKey) Test if a certain session variable exists.Get a session variable.Get a session variable or the specified fallback value.Get the name of the authentication configuration used to login this session.longGet the time when this session was created.getId()Get the unique session identifier.longGet the time of the last access to this session.getProperty(String p_strKey) Get the subject that is associated with this session.longGet the session timeout.getUser()Get the user that is associated with the session.booleanDetermine if the session is an anonymous session.booleanCheck if the session is logged out.booleanisStale()Check if the session has timed out.booleanisStale(long p_lTimeNow) Test if the session has timed out.iterator()keySet()Get a set that contains all session variable names.voidlogout()Performs a logout on this session.voidSet a session variable.voidvoidRemove a session variable.voidsetProperty(String p_strKey, Object p_value) voidsetTimeout(long p_lTimeout) Set the session timeout.voidtouch()Touch the session.Von Klasse geerbte Methoden groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden groovy.lang.GroovyObject
invokeMethod
-
Konstruktordetails
-
GroovySession
-
-
Methodendetails
-
getAuthConfigName
Beschreibung aus Schnittstelle kopiert:ISessionGet the name of the authentication configuration used to login this session.- Angegeben von:
getAuthConfigNamein SchnittstelleISession- Gibt zurück:
- The name of the authentication configuration.
-
containsKey
Beschreibung aus Schnittstelle kopiert:ISessionTest if a certain session variable exists.- Angegeben von:
containsKeyin SchnittstelleISession- Parameter:
p_strKey- The name of the session variable.
-
get
Beschreibung aus Schnittstelle kopiert:ISessionGet a session variable. -
get
Beschreibung aus Schnittstelle kopiert:ISessionGet a session variable or the specified fallback value. -
put
Beschreibung aus Schnittstelle kopiert:ISessionSet a session variable. -
remove
Beschreibung aus Schnittstelle kopiert:ISessionRemove a session variable. -
getCreationTime
public long getCreationTime()Beschreibung aus Schnittstelle kopiert:ISessionGet the time when this session was created.- Angegeben von:
getCreationTimein SchnittstelleISession- Gibt zurück:
- The creation time, measured in milliseconds, between the current time and 01-01-1970 00:00:00 UTC.
-
getId
Beschreibung aus Schnittstelle kopiert:ISessionGet the unique session identifier. -
getSubject
Beschreibung aus Schnittstelle kopiert:ISessionGet the subject that is associated with this session.- Angegeben von:
getSubjectin SchnittstelleISession- Gibt zurück:
- The associated subject.
-
getTimeout
public long getTimeout()Beschreibung aus Schnittstelle kopiert:ISessionGet the session timeout.- Angegeben von:
getTimeoutin SchnittstelleISession- Gibt zurück:
- p_lTimeout The timeout in milliseconds.
-
getUser
Beschreibung aus Schnittstelle kopiert:ISessionGet the user that is associated with the session. -
isAnonymous
public boolean isAnonymous()Beschreibung aus Schnittstelle kopiert:ISessionDetermine if the session is an anonymous session.- Angegeben von:
isAnonymousin SchnittstelleISession- Gibt zurück:
trueif the session is anonymous,falseotherwise.
-
isLoggedOut
public boolean isLoggedOut()Beschreibung aus Schnittstelle kopiert:ISessionCheck if the session is logged out.- Angegeben von:
isLoggedOutin SchnittstelleISession- Gibt zurück:
trueis the session is logged out, orfalseotherwise.
-
getLastAccessTime
public long getLastAccessTime()Beschreibung aus Schnittstelle kopiert:ISessionGet the time of the last access to this session.- Angegeben von:
getLastAccessTimein SchnittstelleISession- Gibt zurück:
- The time of last access.
-
isStale
public boolean isStale()Beschreibung aus Schnittstelle kopiert:ISessionCheck if the session has timed out.The natural implementation of this method will return
isStale(System.currentTimeMillis()). -
isStale
public boolean isStale(long p_lTimeNow) Beschreibung aus Schnittstelle kopiert:ISessionTest if the session has timed out. -
keySet
Beschreibung aus Schnittstelle kopiert:ISessionGet a set that contains all session variable names. -
getKeySet
-
logout
public void logout()Beschreibung aus Schnittstelle kopiert:ISessionPerforms a logout on this session. -
setTimeout
public void setTimeout(long p_lTimeout) Beschreibung aus Schnittstelle kopiert:ISessionSet the session timeout.- Angegeben von:
setTimeoutin SchnittstelleISession- Parameter:
p_lTimeout- The timeout in milliseconds.
-
touch
public void touch()Beschreibung aus Schnittstelle kopiert:ISessionTouch the session. -
addListener
public void addListener(de.uplanet.lucy.server.session.ISessionListener p_listener, boolean p_bWeak) Beschreibung aus Schnittstelle kopiert:ISessionAdd a listener for session events.- Angegeben von:
addListenerin SchnittstelleISession- Parameter:
p_listener- The session listener to add.p_bWeak-trueif the listener should be weakly referenced,falseotherwise.
-
iterator
-
getProperty
- Angegeben von:
getPropertyin Schnittstellegroovy.lang.GroovyObject
-
setProperty
- Angegeben von:
setPropertyin Schnittstellegroovy.lang.GroovyObject
-
getAt
-
putAt
-