public final class NoAuthorization extends Authorization
Authorization.QueryCheckCOMPLETE_CHECK, NO_CHECKconfigResource, configWatcher, manager| Constructor and Description |
|---|
NoAuthorization() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(UserContext user,
int nodeid,
int srcNodeid,
int dstNodeid,
Operation operation)
No authorization means that everyting is allowed
|
boolean |
check(UserContext user,
int nodeid,
Operation operation)
No authorization means that everyting is allowed
|
Authorization.QueryCheck |
check(UserContext user,
Query query,
Operation operation)
Checks rights on a query.
|
void |
create(UserContext user,
int nodeid)
This method does nothing
|
String |
getContext(UserContext user,
int nodeid)
This method does nothing, except from giving a specified string back
|
Set<String> |
getPossibleContexts(UserContext user,
int nodeid)
This method does nothing, except from returning a dummy value
|
protected void |
load()
This method does nothing
|
void |
remove(UserContext user,
int nodeid)
This method does nothing
|
void |
setContext(UserContext user,
int nodeid,
String context)
Since this is not authorization, we simply allow every change of context.
|
void |
update(UserContext user,
int nodeid)
This method does nothing
|
void |
verify(UserContext user,
int nodeid,
int srcNodeid,
int dstNodeid,
Operation operation)
This method does nothing
|
void |
verify(UserContext user,
int nodeid,
Operation operation)
This method does nothing
|
check, getPossibleContexts, verifyloadprotected void load()
load in class Configurablepublic void create(UserContext user, int nodeid)
create in class Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has just been added to
the MMBase cloud.public void update(UserContext user, int nodeid)
update in class Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the MMObjectNode, which has just been changed
in the cloud.public void remove(UserContext user, int nodeid)
remove in class Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has just been removed
in the cloud.public boolean check(UserContext user, int nodeid, Operation operation)
check in class Authorizationuser - The UserContext, containing the information the user.nodeid - The id of the MMObjectNode, which has to be checked.
It the action is CREATE then this will be interpreted as a typedef node.operation - The operation which will be performed.public void verify(UserContext user, int nodeid, Operation operation) throws SecurityException
verify in class AuthorizationSecurityException - If the assertion failsAuthorization.check(UserContext, int, Operation)public boolean check(UserContext user, int nodeid, int srcNodeid, int dstNodeid, Operation operation)
check in class Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the relation which has to be checked. If the operation is CREATE
then this will be interpreted as the typedef node (extending insrel) for the relation to be
created.srcNodeid - The id of the (new) source node of the relation.dstNodeid - The id of the (new) destination node of the relation.operation - The operation which will be performed (CREATE (create
relation) or CHANGE_RELATION (source and/or destination
are changed).public void verify(UserContext user, int nodeid, int srcNodeid, int dstNodeid, Operation operation) throws SecurityException
verify in class AuthorizationSecurityException - If the assertion failsAuthorization.check(UserContext, int, int, int, Operation)public String getContext(UserContext user, int nodeid) throws SecurityException
getContext in class Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the MMObjectNode, which has to be asserted.SecurityException - If operation is not allowed(needs read rights)public void setContext(UserContext user, int nodeid, String context) throws SecurityException
setContext in class Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the MMObjectNode, which has to be asserted.context - The context which rights the node will getSecurityException - If operation is not allowedpublic Set<String> getPossibleContexts(UserContext user, int nodeid) throws SecurityException
getPossibleContexts in class Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has to be asserted.Set of Strings which
represent a context in readable form..SecurityExceptionpublic Authorization.QueryCheck check(UserContext user, Query query, Operation operation)
Authorizationcheck in class Authorizationuser - The UserContext, for which the query must be consideredquery - The query to be exploredAuthorization.QueryCheck structure (containing whether the constriant is sufficient, and the
new constraint or null).MMBase 1.9-SNAPSHOT - ${javadoctimestamp}