public abstract class ContextAccessController extends Object
| Constructor and Description |
|---|
ContextAccessController() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccessAllowed(String key,
AccessControlledMap.ContextAccessLevel type)
Checks if access is allowed and throws an InsufficientCredentialException
if access is not allowed.
|
abstract boolean |
isAccessAllowed(String key,
AccessControlledMap.ContextAccessLevel type)
Checks whether access of type
type is allowed
on key based on the user associated to the
current thread. |
abstract boolean |
isEveryoneAllowedToRead(String key) |
public abstract boolean isAccessAllowed(String key, AccessControlledMap.ContextAccessLevel type)
type is allowed
on key based on the user associated to the
current thread.key - the key to check access fortype - the type of access requiredpublic void checkAccessAllowed(String key, AccessControlledMap.ContextAccessLevel type) throws InsufficientCredentialException
InsufficientCredentialException - if access could not be grantedpublic abstract boolean isEveryoneAllowedToRead(String key)
key - The name of a contextCopyright © 2017. All rights reserved.