Class EssSessionImpl

java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssSessionImpl
All Implemented Interfaces:
EssObject, EssSession

public class EssSessionImpl extends AbstractEssObject implements EssSession
Models a session (connection) on the server.
  • Constructor Details

    • EssSessionImpl

      public EssSessionImpl(ApiContext api, com.appliedolap.essbase.client.model.SessionAttributes sessionAttributes)
  • Method Details

    • getSessionId

      public Long getSessionId()
      Description copied from interface: EssSession
      Gets the ID of this session.
      Specified by:
      getSessionId in interface EssSession
      Returns:
      the session ID
    • getUserId

      public String getUserId()
      Description copied from interface: EssSession
      Get the user for the session.
      Specified by:
      getUserId in interface EssSession
      Returns:
      the user ID
    • getLoginTimeInSeconds

      public long getLoginTimeInSeconds()
      Description copied from interface: EssSession
      Number of seconds session has been created
      Specified by:
      getLoginTimeInSeconds in interface EssSession
      Returns:
      the number of seconds the session has been created
    • getConnectionSource

      public String getConnectionSource()
      Description copied from interface: EssSession
      Get the connection source (not sure what this signifies, but it's in the source JSON...)
      Specified by:
      getConnectionSource in interface EssSession
      Returns:
      the connection source
    • kill

      public void kill(boolean logoff)
      Description copied from interface: EssSession
      Kill the session.
      Specified by:
      kill in interface EssSession
      Parameters:
      logoff - true to also log it off (e.g., it'll disappear from the list of sessions)
    • getName

      public String getName()
      Description copied from interface: EssSession
      Standard implementation.
      Specified by:
      getName in interface EssObject
      Specified by:
      getName in interface EssSession
      Returns:
      the name of session (the ID)
    • getType

      public EssObject.Type getType()
      Description copied from interface: EssObject
      Gets the type of this object.
      Specified by:
      getType in interface EssObject
      Specified by:
      getType in interface EssSession
      Returns:
      the object type