Package com.logicaldoc.core.security
Class Session
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.Session
- All Implemented Interfaces:
Serializable,Comparable<Session>
A single user session with it's unique identifier and the reference to the
user
- Since:
- 4.6.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetKey()getLogs()getNode()getSid()intlonggetUser()longinthashCode()booleanisEmpty()booleanisOpen()voidvoidvoidvoidvoidsetCreation(Date creation) voidvoidsetLastRenew(Date lastRenew) voidvoidsetPassword(String password) voidsetTenantId(long tenantId) voidsetTenantName(String tenantName) voidsetUsername(String username) toString()Methods inherited from class com.logicaldoc.core.PersistentObject
getDeleted, getId, getLastModified, getRecordVersion, setDeleted, setId, setLastModified, setRecordVersion
-
Field Details
-
STATUS_OPEN
public static final int STATUS_OPEN- See Also:
-
STATUS_EXPIRED
public static final int STATUS_EXPIRED- See Also:
-
STATUS_CLOSED
public static final int STATUS_CLOSED- See Also:
-
-
Method Details
-
getDictionary
-
getSid
-
getCreation
-
getLastRenew
-
isOpen
public boolean isOpen() -
getStatus
public int getStatus() -
setClosed
public void setClosed() -
getUsername
-
toString
- Overrides:
toStringin classPersistentObject
-
compareTo
- Specified by:
compareToin interfaceComparable<Session>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-
getUserId
public long getUserId() -
getTenantId
public long getTenantId()- Overrides:
getTenantIdin classPersistentObject
-
getTenantName
-
getPassword
-
logError
-
logWarn
-
logInfo
-
getLogs
-
getLastError
-
isEmpty
public boolean isEmpty() -
getKey
-
setKey
-
getClient
-
getUser
-
setTenantId
public void setTenantId(long tenantId) - Overrides:
setTenantIdin classPersistentObject
-
setTenantName
-
getUnprotectedDocs
-
getNode
-
setNode
-
setCreation
-
setLastRenew
-
setUsername
-
setPassword
-