|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.slide.common.SlideTokenWrapper
The SlideTokenWrapper wraps around an existing token. It delegated all work to that token, except that it may have a different policy for store enlistment, security and locking.
| Constructor Summary | |
SlideTokenWrapper(SlideToken token)
Constructor. |
|
| 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. |
void |
cacheLock(ObjectNode object,
ActionNode action,
boolean lock)
allows to cache the result of a lock check |
void |
cacheMatchPrincipal(SubjectNode checkSubject,
SubjectNode matchSubject,
boolean match)
Allows to cache the result of a matchPrincipal operation |
void |
cachePermission(ObjectNode object,
ActionNode action,
boolean permission)
allows to cache the result of a permission check |
void |
cacheResolve(Uri uri,
ResourceId resourceId)
Allows to cache the result of a resolve operation |
java.lang.Boolean |
checkLockCache(ObjectNode object,
ActionNode action)
checks if the lock cache contains an entry for the ObjectNode and ActionNode combination. |
boolean |
checkLockToken(java.lang.String lockToken)
Checks if the given lock token is present. |
java.lang.Boolean |
checkMatchPrincipalCache(SubjectNode checkSubject,
SubjectNode matchSubject)
Checks if the matchPrincipal cache |
java.lang.Boolean |
checkPermissionCache(ObjectNode object,
ActionNode action)
checks if the permission cache contains an entry for the ObjectNode and ActionNode combination. |
ResourceId |
checkResolveCache(Uri uri)
Checks if the resolve cache contains an entry for the specified uri. |
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.lang.Object |
getParameter(java.lang.String name)
Returns a named parameter. |
java.util.Enumeration |
getParameterNames()
Return parameter list. |
boolean |
isEnforceLockTokens()
Use lock tokens in lock resolution ? |
boolean |
isExternalTransaction()
Checks if this request is part of an externally controlled transaction. |
boolean |
isForceLock()
Force lock check. |
boolean |
isForceSecurity()
Force security check. |
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 |
setExternalTx()
Sets if this request is part of an externally controlled transaction. |
void |
setForceLock(boolean forceLock)
|
void |
setForceSecurity(boolean forceSecurity)
|
void |
setForceStoreEnlistment(boolean forceStoreEnlistment)
Force store enlistment flag mutator. |
java.util.List |
showLockTokens()
For debugging purposes ONLY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SlideTokenWrapper(SlideToken token)
token - The token to wrap.| Method Detail |
public CredentialsToken getCredentialsToken()
getCredentialsToken in interface SlideTokenpublic void setCredentialsToken(CredentialsToken credentialsToken)
setCredentialsToken in interface SlideTokenpublic CacheInfoToken getCacheInfoToken()
getCacheInfoToken in interface SlideTokenpublic void setCacheInfoToken(CacheInfoToken cacheInfoToken)
setCacheInfoToken in interface SlideTokenpublic boolean isEnforceLockTokens()
isEnforceLockTokens in interface SlideTokenpublic void setEnforceLockTokens(boolean enforceLockTokens)
setEnforceLockTokens in interface SlideTokenenforceLockTokens - New flag valuepublic boolean isForceStoreEnlistment()
isForceStoreEnlistment in interface SlideTokenpublic void setForceStoreEnlistment(boolean forceStoreEnlistment)
setForceStoreEnlistment in interface SlideTokenforceStoreEnlistment - New flag valuepublic void addLockToken(java.lang.String lockId)
addLockToken in interface SlideTokenlockId - Lock token to addpublic void removeLockToken(java.lang.String lockId)
removeLockToken in interface SlideTokenlockId - Lock token to removepublic void clearLockTokens()
clearLockTokens in interface SlideTokenpublic boolean checkLockToken(java.lang.String lockToken)
checkLockToken in interface SlideTokenlockToken - Lock token to check
public java.util.List showLockTokens()
SlideToken
showLockTokens in interface SlideToken
public void addParameter(java.lang.String parameterName,
java.lang.Object parameterValue)
addParameter in interface SlideTokenparameterName - Parameter to addparameterValue - Parameter valuepublic void removeParameter(java.lang.String parameterName)
removeParameter in interface SlideTokenparameterName - Parameter to removepublic void clearParameters()
clearParameters in interface SlideTokenpublic java.lang.Object getParameter(java.lang.String name)
getParameter in interface SlideTokenname or
null if no such parameter exists.public java.util.Enumeration getParameterNames()
getParameterNames in interface SlideToken
public void cachePermission(ObjectNode object,
ActionNode action,
boolean permission)
cachePermission in interface SlideToken
public java.lang.Boolean checkPermissionCache(ObjectNode object,
ActionNode action)
checkPermissionCache in interface SlideTokenpublic boolean isForceSecurity()
isForceSecurity in interface SlideTokenpublic void setForceSecurity(boolean forceSecurity)
setForceSecurity in interface SlideTokenpublic boolean isForceLock()
isForceLock in interface SlideTokenpublic void setForceLock(boolean forceLock)
setForceLock in interface SlideToken
public void cacheLock(ObjectNode object,
ActionNode action,
boolean lock)
cacheLock in interface SlideToken
public java.lang.Boolean checkLockCache(ObjectNode object,
ActionNode action)
checkLockCache in interface SlideToken
public void cacheResolve(Uri uri,
ResourceId resourceId)
cacheResolve in interface SlideTokenpublic ResourceId checkResolveCache(Uri uri)
checkResolveCache in interface SlideToken
public void cacheMatchPrincipal(SubjectNode checkSubject,
SubjectNode matchSubject,
boolean match)
cacheMatchPrincipal in interface SlideToken
public java.lang.Boolean checkMatchPrincipalCache(SubjectNode checkSubject,
SubjectNode matchSubject)
checkMatchPrincipalCache in interface SlideTokenpublic boolean isExternalTransaction()
isExternalTransaction in interface SlideTokenpublic void setExternalTx()
setExternalTx in interface SlideToken
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||