|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The SlideToken interface identifies the current acting principal and its credentials, and maintains information about the state of the user transaction.
An object implementing this interface is required to use any of the
methods provided by the helpers API. The default implementation of this
interface is SlideTokenImpl
. In the context of a
Java servlet, such an object should be instantiated like this:
Principal principal = request.getUserPrincipal(); CredentialsToken credentials; if (principal == null) { credentials = new CredentialsToken(""); } else { credentials = new CredentialsToken(principal); } SlideToken token = new SlideTokenImpl(credentials);
Method Summary | |
void |
addLockToken(java.lang.String lockId)
Add a new lock token to the lock token list. |
void |
addParameter(java.lang.String parameterName,
java.lang.Object parameterValue)
Add a new parameter to the parameter list. |
boolean |
checkLockToken(java.lang.String lockToken)
Checks if the given lock token is present. |
void |
clearLockTokens()
Clears the lock token list. |
void |
clearParameters()
Clears the parameter list. |
CacheInfoToken |
getCacheInfoToken()
Returns the CacheInfo token. |
CredentialsToken |
getCredentialsToken()
Returns the credentials token. |
java.util.Enumeration |
getParameterNames()
Return parameter list. |
boolean |
isEnforceLockTokens()
Use lock tokens in lock resolution ? |
boolean |
isForceStoreEnlistment()
Force store enlistment flag accessor. |
void |
removeLockToken(java.lang.String lockId)
Removes a lock token from the lock token list. |
void |
removeParameter(java.lang.String parameterName)
Removes a parameter from the parameter list. |
void |
setCacheInfoToken(CacheInfoToken cacheInfoToken)
CacheInfo token mutator. |
void |
setCredentialsToken(CredentialsToken credentialsToken)
Credentials token mutator. |
void |
setEnforceLockTokens(boolean enforceLockTokens)
Enforce lock tokens flag mutator. |
void |
setForceStoreEnlistment(boolean forceStoreEnlistment)
Force store enlistment flag mutator. |
Method Detail |
public CredentialsToken getCredentialsToken()
public void setCredentialsToken(CredentialsToken credentialsToken)
public CacheInfoToken getCacheInfoToken()
public void setCacheInfoToken(CacheInfoToken cacheInfoToken)
public boolean isEnforceLockTokens()
public void setEnforceLockTokens(boolean enforceLockTokens)
enforceLockTokens
- New flag valuepublic boolean isForceStoreEnlistment()
public void setForceStoreEnlistment(boolean forceStoreEnlistment)
forceStoreEnlistment
- New flag valuepublic void addLockToken(java.lang.String lockId)
lockToken
- Lock token to addpublic void removeLockToken(java.lang.String lockId)
lockToken
- Lock token to removepublic void clearLockTokens()
public boolean checkLockToken(java.lang.String lockToken)
lockToken
- Lock token to checkpublic void addParameter(java.lang.String parameterName, java.lang.Object parameterValue)
parameterName
- Parameter to addparameterValue
- Parameter valuepublic void removeParameter(java.lang.String parameterName)
parameterName
- Parameter to removepublic void clearParameters()
public java.util.Enumeration getParameterNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |