public class CmsDefaultSessionStorageProvider extends java.lang.Object implements I_CmsSessionStorageProvider
Implementation based on a FastHashMap
.
构造器和说明 |
---|
CmsDefaultSessionStorageProvider() |
限定符和类型 | 方法和说明 |
---|---|
CmsSessionInfo |
get(CmsUUID sessionId)
Returns the stored session info object with the given id.
|
java.util.List<CmsSessionInfo> |
getAll()
Returns all current stored session info objects.
|
java.util.List<CmsSessionInfo> |
getAllOfUser(CmsUUID userId)
Returns all current stored session info objects for the given user.
|
int |
getSize()
Returns the current number of stored session info objects.
|
void |
initialize()
Initializes the storage.
|
CmsSessionInfo |
put(CmsSessionInfo sessionInfo)
Stores the given session info object.
|
CmsSessionInfo |
remove(CmsUUID sessionId)
Removes the stored session info object identified by the given session id.
|
void |
shutdown()
Last cleanup possibility.
|
void |
validate()
Validates all session info objects removing any session that have became invalidated.
|
public CmsSessionInfo get(CmsUUID sessionId)
I_CmsSessionStorageProvider
get
在接口中 I_CmsSessionStorageProvider
sessionId
- the id to lookupnull
if not foundI_CmsSessionStorageProvider.get(org.opencms.util.CmsUUID)
public java.util.List<CmsSessionInfo> getAll()
I_CmsSessionStorageProvider
getAll
在接口中 I_CmsSessionStorageProvider
I_CmsSessionStorageProvider.getAll()
public java.util.List<CmsSessionInfo> getAllOfUser(CmsUUID userId)
I_CmsSessionStorageProvider
getAllOfUser
在接口中 I_CmsSessionStorageProvider
userId
- the id of the user to retrieve the session info objects forI_CmsSessionStorageProvider.getAllOfUser(org.opencms.util.CmsUUID)
public int getSize()
I_CmsSessionStorageProvider
getSize
在接口中 I_CmsSessionStorageProvider
I_CmsSessionStorageProvider.getSize()
public void initialize()
I_CmsSessionStorageProvider
public CmsSessionInfo put(CmsSessionInfo sessionInfo)
I_CmsSessionStorageProvider
put
在接口中 I_CmsSessionStorageProvider
sessionInfo
- the session info object to be storednull
if noneI_CmsSessionStorageProvider.put(org.opencms.main.CmsSessionInfo)
public CmsSessionInfo remove(CmsUUID sessionId)
I_CmsSessionStorageProvider
remove
在接口中 I_CmsSessionStorageProvider
sessionId
- the id that identifies the stored session info object to removenull
if noneI_CmsSessionStorageProvider.remove(org.opencms.util.CmsUUID)
public void shutdown()
I_CmsSessionStorageProvider
public void validate()
I_CmsSessionStorageProvider