|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.security.Configurable
org.mmbase.security.Authorization
org.mmbase.security.NoAuthorization
This class is used when no authorization is configured. Everything is allowed.
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.security.Authorization |
Authorization.QueryCheck |
| Field Summary |
| Fields inherited from class org.mmbase.security.Authorization |
COMPLETE_CHECK, NO_CHECK |
| Fields inherited from class org.mmbase.security.Configurable |
configFile, configResource, configWatcher, manager |
| Constructor Summary | |
NoAuthorization()
|
|
| Method Summary | |
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 |
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 |
| Methods inherited from class org.mmbase.security.Configurable |
load |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NoAuthorization()
| Method Detail |
protected void load()
load in class Configurable
public 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 get
SecurityException - If operation is not allowed
public Set 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..
SecurityException
public Authorization.QueryCheck check(UserContext user,
Query query,
Operation operation)
Authorization
check in class Authorizationuser - The UserContext, for which the query must be consideredquery - The query to be explored
Authorization.QueryCheck structure (containing whether the constriant is sufficient, and the
new constraint or null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||