|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.main.CmsDefaultSessionStorageProvider
public class CmsDefaultSessionStorageProvider
The default session storage provider implementation.
Implementation based on a FastHashMap.
| Constructor Summary | |
|---|---|
CmsDefaultSessionStorageProvider()
|
|
| Method Summary | |
|---|---|
CmsSessionInfo |
get(CmsUUID sessionId)
Returns the stored session info object with the given id. |
List<CmsSessionInfo> |
getAll()
Returns all current stored session info objects. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsDefaultSessionStorageProvider()
| Method Detail |
|---|
public CmsSessionInfo get(CmsUUID sessionId)
I_CmsSessionStorageProvider
get in interface I_CmsSessionStorageProvidersessionId - the id to lookup
null if not foundI_CmsSessionStorageProvider.get(org.opencms.util.CmsUUID)public List<CmsSessionInfo> getAll()
I_CmsSessionStorageProvider
getAll in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getAll()public List<CmsSessionInfo> getAllOfUser(CmsUUID userId)
I_CmsSessionStorageProvider
getAllOfUser in interface I_CmsSessionStorageProvideruserId - the id of the user to retrieve the session info objects for
I_CmsSessionStorageProvider.getAllOfUser(org.opencms.util.CmsUUID)public int getSize()
I_CmsSessionStorageProvider
getSize in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.getSize()public void initialize()
I_CmsSessionStorageProvider
initialize in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.initialize()public CmsSessionInfo put(CmsSessionInfo sessionInfo)
I_CmsSessionStorageProvider
put in interface I_CmsSessionStorageProvidersessionInfo - the session info object to be stored
null if noneI_CmsSessionStorageProvider.put(org.opencms.main.CmsSessionInfo)public CmsSessionInfo remove(CmsUUID sessionId)
I_CmsSessionStorageProvider
remove in interface I_CmsSessionStorageProvidersessionId - the id that identifies the stored session info object to remove
null if noneI_CmsSessionStorageProvider.remove(org.opencms.util.CmsUUID)public void shutdown()
I_CmsSessionStorageProvider
shutdown in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.shutdown()public void validate()
I_CmsSessionStorageProvider
validate in interface I_CmsSessionStorageProviderI_CmsSessionStorageProvider.validate()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||