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
  • Konstruktordetails

    • GroovySession

      public GroovySession(ISession p_session)
  • Methodendetails

    • getAuthConfigName

      public String getAuthConfigName()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the name of the authentication configuration used to login this session.
      Angegeben von:
      getAuthConfigName in Schnittstelle ISession
      Gibt zurück:
      The name of the authentication configuration.
    • containsKey

      public boolean containsKey(String p_strKey)
      Beschreibung aus Schnittstelle kopiert: ISession
      Test if a certain session variable exists.
      Angegeben von:
      containsKey in Schnittstelle ISession
      Parameter:
      p_strKey - The name of the session variable.
    • get

      public Object get(String p_strKey)
      Beschreibung aus Schnittstelle kopiert: ISession
      Get a session variable.
      Angegeben von:
      get in Schnittstelle ISession
      Parameter:
      p_strKey - The name of the session variable.
      Gibt zurück:
      The session variable.
    • get

      public Object get(String p_strKey, Object p_objFallback)
      Beschreibung aus Schnittstelle kopiert: ISession
      Get a session variable or the specified fallback value.
      Angegeben von:
      get in Schnittstelle ISession
      Parameter:
      p_strKey - The name of the session variable.
      p_objFallback - The fallback value that's being used if the session variable does not exist.
      Gibt zurück:
      The session variable.
    • put

      public void put(String p_strKey, Object p_objValue)
      Beschreibung aus Schnittstelle kopiert: ISession
      Set a session variable.
      Angegeben von:
      put in Schnittstelle ISession
      Parameter:
      p_strKey - The name of the session variable.
      p_objValue - The value of the session variable.
    • remove

      public void remove(String p_strKey)
      Beschreibung aus Schnittstelle kopiert: ISession
      Remove a session variable.
      Angegeben von:
      remove in Schnittstelle ISession
      Parameter:
      p_strKey - The name of the session variable to be removed.
    • getCreationTime

      public long getCreationTime()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the time when this session was created.
      Angegeben von:
      getCreationTime in Schnittstelle ISession
      Gibt zurück:
      The creation time, measured in milliseconds, between the current time and 01-01-1970 00:00:00 UTC.
    • getId

      public String getId()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the unique session identifier.
      Angegeben von:
      getId in Schnittstelle ISession
    • getSubject

      public Subject getSubject()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the subject that is associated with this session.
      Angegeben von:
      getSubject in Schnittstelle ISession
      Gibt zurück:
      The associated subject.
    • getTimeout

      public long getTimeout()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the session timeout.
      Angegeben von:
      getTimeout in Schnittstelle ISession
      Gibt zurück:
      p_lTimeout The timeout in milliseconds.
    • getUser

      public IUser getUser()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the user that is associated with the session.
      Angegeben von:
      getUser in Schnittstelle ISession
      Gibt zurück:
      The user that is associated with this session, or null.
    • isAnonymous

      public boolean isAnonymous()
      Beschreibung aus Schnittstelle kopiert: ISession
      Determine if the session is an anonymous session.
      Angegeben von:
      isAnonymous in Schnittstelle ISession
      Gibt zurück:
      true if the session is anonymous, false otherwise.
    • isLoggedOut

      public boolean isLoggedOut()
      Beschreibung aus Schnittstelle kopiert: ISession
      Check if the session is logged out.
      Angegeben von:
      isLoggedOut in Schnittstelle ISession
      Gibt zurück:
      true is the session is logged out, or false otherwise.
    • getLastAccessTime

      public long getLastAccessTime()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get the time of the last access to this session.
      Angegeben von:
      getLastAccessTime in Schnittstelle ISession
      Gibt zurück:
      The time of last access.
    • isStale

      public boolean isStale()
      Beschreibung aus Schnittstelle kopiert: ISession
      Check if the session has timed out.

      The natural implementation of this method will return isStale(System.currentTimeMillis()).

      Angegeben von:
      isStale in Schnittstelle ISession
      Gibt zurück:
      true if the session already has timed out, false otherwise.
    • isStale

      public boolean isStale(long p_lTimeNow)
      Beschreibung aus Schnittstelle kopiert: ISession
      Test if the session has timed out.
      Angegeben von:
      isStale in Schnittstelle ISession
      Gibt zurück:
      true if the session has timed out, false otherwise.
    • keySet

      public Set<String> keySet()
      Beschreibung aus Schnittstelle kopiert: ISession
      Get a set that contains all session variable names.
      Angegeben von:
      keySet in Schnittstelle ISession
      Gibt zurück:
      A set with all session variables.
    • getKeySet

      public Set<String> getKeySet()
    • logout

      public void logout()
      Beschreibung aus Schnittstelle kopiert: ISession
      Performs a logout on this session.
      Angegeben von:
      logout in Schnittstelle ISession
    • setTimeout

      public void setTimeout(long p_lTimeout)
      Beschreibung aus Schnittstelle kopiert: ISession
      Set the session timeout.
      Angegeben von:
      setTimeout in Schnittstelle ISession
      Parameter:
      p_lTimeout - The timeout in milliseconds.
    • touch

      public void touch()
      Beschreibung aus Schnittstelle kopiert: ISession
      Touch the session.
      Angegeben von:
      touch in Schnittstelle ISession
    • addListener

      public void addListener(de.uplanet.lucy.server.session.ISessionListener p_listener, boolean p_bWeak)
      Beschreibung aus Schnittstelle kopiert: ISession
      Add a listener for session events.
      Angegeben von:
      addListener in Schnittstelle ISession
      Parameter:
      p_listener - The session listener to add.
      p_bWeak - true if the listener should be weakly referenced, false otherwise.
    • iterator

      public Iterator<Map.Entry<String,Object>> iterator()
    • getProperty

      public Object getProperty(String p_strKey)
      Angegeben von:
      getProperty in Schnittstelle groovy.lang.GroovyObject
    • setProperty

      public void setProperty(String p_strKey, Object p_value)
      Angegeben von:
      setProperty in Schnittstelle groovy.lang.GroovyObject
    • getAt

      public Object getAt(String p_strKey)
    • putAt

      public void putAt(String p_strKey, Object p_value)