public interface ISessionScope extends IScope
| Modifier and Type | Method and Description |
|---|---|
String |
createApplicationScopeID(String sApplicationID)
Create the unique ID, under which a session application scope will be
created within this scope.
|
Map<String,ISessionApplicationScope> |
getAllSessionApplicationScopes() |
String |
getApplicationIDFromApplicationScopeID(String sApplicationScopeID)
Extract the application ID from an application scope ID.
|
ISessionApplicationScope |
getSessionApplicationScope(String sApplicationID,
boolean bCreateIfNotExisting)
Create an application specific scope within the session.
|
int |
getSessionApplicationScopeCount() |
void |
restoreSessionApplicationScope(String sScopeID,
ISessionApplicationScope aScope)
Restore a persisted session application scope
|
EContinue |
selfDestruct()
A special internal method that destroys the session.
|
destroyScope, getAllScopeRenewalAwareAttributes, getID, initScope, isDestroyed, isInDestruction, isValid, runAtomic, runAtomicgetAndSetAttributeFlag, setAttribute, setAttribute, setAttribute, setAttributeremoveAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeObject, getCastedAttribute, getCastedAttribute, getIterator, getTypedAttribute, getTypedAttributeclear@Nonnull EContinue selfDestruct()
EContinue.BREAK to indicate that the regular destruction
should not be performed!@Nonnull @Nonempty String createApplicationScopeID(@Nonnull @Nonempty String sApplicationID)
getID () + "." + sApplicationID.sApplicationID - The application ID to be used. May neither be null nor
empty.to get the application
ID from an application scope ID (reverse operation)@Nullable String getApplicationIDFromApplicationScopeID(@Nullable String sApplicationScopeID)
sApplicationScopeID - The application scope ID to use. May be null.null if no application ID could be extractedTo creation an application scope ID
from an application ID@Nullable ISessionApplicationScope getSessionApplicationScope(@Nonnull @Nonempty String sApplicationID, boolean bCreateIfNotExisting)
sApplicationID - The application ID to use. May not be null.bCreateIfNotExisting - Create the session application scope if does not yet exist. If
false and the scope does not exist than
null is returned.null if bCreateIfNotExisting is false and
the scope is not presentvoid restoreSessionApplicationScope(@Nonnull @Nonempty String sScopeID, @Nonnull ISessionApplicationScope aScope)
sScopeID - The ID of the restored application scope. May neither be
null nor empty.aScope - The scope to be restored. May not be null.@Nonnull Map<String,ISessionApplicationScope> getAllSessionApplicationScopes()
null map with all available session application
scopes. The key is the application ID and the value is the scope.@Nonnegative int getSessionApplicationScopeCount()
Copyright © 2014–2015 Philip Helger. All rights reserved.