|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.common.SlideTokenImpl
Slide token class.
Constructor Summary | |
SlideTokenImpl()
Constructor. |
|
SlideTokenImpl(CredentialsToken credentialsToken)
Constructor. |
|
SlideTokenImpl(CredentialsToken credentialsToken,
java.util.Hashtable parameters)
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 SlideTokenImpl(CredentialsToken credentialsToken)
credentialsToken
- Credentials stored in this tokenpublic SlideTokenImpl()
public SlideTokenImpl(CredentialsToken credentialsToken, java.util.Hashtable parameters)
credentialsToken
- Credentials stored in this tokenparameters
- Token parametersMethod Detail |
public CredentialsToken getCredentialsToken()
getCredentialsToken
in interface SlideToken
public void setCredentialsToken(CredentialsToken credentialsToken)
setCredentialsToken
in interface SlideToken
public CacheInfoToken getCacheInfoToken()
getCacheInfoToken
in interface SlideToken
public void setCacheInfoToken(CacheInfoToken cacheInfoToken)
setCacheInfoToken
in interface SlideToken
public boolean isEnforceLockTokens()
isEnforceLockTokens
in interface SlideToken
public void setEnforceLockTokens(boolean enforceLockTokens)
setEnforceLockTokens
in interface SlideToken
enforceLockTokens
- New flag valuepublic boolean isForceStoreEnlistment()
isForceStoreEnlistment
in interface SlideToken
public void setForceStoreEnlistment(boolean forceStoreEnlistment)
setForceStoreEnlistment
in interface SlideToken
forceStoreEnlistment
- New flag valuepublic void addLockToken(java.lang.String lockId)
addLockToken
in interface SlideToken
lockId
- Lock token to addpublic void removeLockToken(java.lang.String lockId)
removeLockToken
in interface SlideToken
lockId
- Lock token to removepublic void clearLockTokens()
clearLockTokens
in interface SlideToken
public java.util.List showLockTokens()
SlideToken
showLockTokens
in interface SlideToken
public boolean checkLockToken(java.lang.String lockToken)
checkLockToken
in interface SlideToken
lockToken
- Lock token to check
public void addParameter(java.lang.String parameterName, java.lang.Object parameterValue)
addParameter
in interface SlideToken
parameterName
- Parameter to addparameterValue
- Parameter valuepublic void removeParameter(java.lang.String parameterName)
removeParameter
in interface SlideToken
parameterName
- Parameter to removepublic void clearParameters()
clearParameters
in interface SlideToken
public java.util.Enumeration getParameterNames()
getParameterNames
in interface SlideToken
public java.lang.Object getParameter(java.lang.String name)
getParameter
in interface SlideToken
name
or
null
if no such parameter exists.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 SlideToken
public boolean isForceSecurity()
isForceSecurity
in interface SlideToken
public boolean isForceLock()
isForceLock
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 SlideToken
public 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 SlideToken
public void setForceLock(boolean forceLock)
setForceLock
in interface SlideToken
public void setForceSecurity(boolean forceSecurity)
setForceSecurity
in interface SlideToken
public boolean isExternalTransaction()
isExternalTransaction
in interface SlideToken
public void setExternalTx()
setExternalTx
in interface SlideToken
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |