public interface ContextProvider
Verify.getContextProvider().| Modifier and Type | Interface and Description |
|---|---|
static class |
ContextProvider.AllowingContexts |
| Modifier and Type | Method and Description |
|---|---|
Authorization.QueryCheck |
check(User userContext,
Query query,
Operation operation) |
String |
getContext(User user,
MMObjectNode node) |
String |
getContextName(MMObjectNode context)
Returns the name of the context belonging to a certain context node.
|
MMObjectNode |
getContextNode(MMObjectNode node)
Returns the MMObjectNode representing the 'context' of a certain other node
|
MMObjectNode |
getContextNode(String context)
Returns the MMObjectNode representing the 'context' which is identifier with the given name.
|
Collection<NodeSearchQuery> |
getContextQueries() |
Set<String> |
getPossibleContexts(User user) |
Set<String> |
getPossibleContexts(User user,
MMObjectNode node) |
boolean |
grant(User user,
MMObjectNode contextNode,
MMObjectNode groupOrUserNode,
Operation operation) |
boolean |
mayDo(User user,
MMObjectNode nodeId,
Operation operation) |
boolean |
mayDoOnContext(MMObjectNode userNode,
MMObjectNode contextNode,
Operation operation,
boolean checkOwnRights) |
boolean |
mayGrant(User user,
MMObjectNode contextNode,
MMObjectNode groupOrUserNode,
Operation operation)
Whether, or not, the user is allowed to grant the security operation to the group or user on the context
node.
|
boolean |
mayRevoke(User user,
MMObjectNode contextNode,
MMObjectNode groupOrUserNode,
Operation operation)
Whether, or not, the user is allowed to revoke the security operation to the group or user on the context
node.
|
boolean |
revoke(User user,
MMObjectNode contextNode,
MMObjectNode groupOrUserNode,
Operation operation) |
void |
setContext(User user,
MMObjectNode node,
String context)
Sets the context of the given ode.
|
Collection<NodeSearchQuery> getContextQueries()
void setContext(User user, MMObjectNode node, String context)
String getContextName(MMObjectNode context)
MMObjectNode getContextNode(MMObjectNode node)
MMObjectNode getContextNode(String context)
String getContext(User user, MMObjectNode node)
Set<String> getPossibleContexts(User user, MMObjectNode node) throws SecurityException
SecurityExceptionSet<String> getPossibleContexts(User user) throws SecurityException
SecurityExceptionboolean mayDo(User user, MMObjectNode nodeId, Operation operation) throws SecurityException
SecurityExceptionboolean mayDoOnContext(MMObjectNode userNode, MMObjectNode contextNode, Operation operation, boolean checkOwnRights)
boolean mayGrant(User user, MMObjectNode contextNode, MMObjectNode groupOrUserNode, Operation operation)
boolean mayRevoke(User user, MMObjectNode contextNode, MMObjectNode groupOrUserNode, Operation operation)
boolean grant(User user, MMObjectNode contextNode, MMObjectNode groupOrUserNode, Operation operation)
boolean revoke(User user, MMObjectNode contextNode, MMObjectNode groupOrUserNode, Operation operation)
Authorization.QueryCheck check(User userContext, Query query, Operation operation)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}