Class CSUserSession

java.lang.Object
mc.core.model.system.CSUserSession
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class CSUserSession extends Object implements IBaseEntity
Entity representing a user session. Contains login, date created, namespace and licence key. Date of last access is refreshed periodically as long as the user is active to prevent timeout. Timed out CSUserSessions are removed from database by maintenance job.
CS = control station, these objects always go to the default persistence unit
See Also:
  • Constructor Details

    • CSUserSession

      public CSUserSession()
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getCreated

      public Calendar getCreated()
    • setCreated

      public void setCreated(Calendar created)
    • getLastAccess

      public Calendar getLastAccess()
    • setLastAccess

      public void setLastAccess(Calendar lastAccess)
    • getLicenceKey

      public String getLicenceKey()
    • setLicenceKey

      public void setLicenceKey(String licenceKey)
    • getLogin

      public String getLogin()
    • setLogin

      public void setLogin(String login)
    • getUseLicence

      public boolean getUseLicence()
    • setUseLicence

      public void setUseLicence(boolean useLicence)
    • getNamespace

      public String getNamespace()
    • setNamespace

      public void setNamespace(String namespace)
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object