|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.security.Authorization
|
+--org.mmbase.security.implementation.context.ContextAuthorization
authorization based on a config
| Fields inherited from class org.mmbase.security.Authorization |
configFile, fileWatcher, manager |
| Constructor Summary | |
ContextAuthorization()
|
|
| Method Summary | |
void |
assert(UserContext user,
int nodeNumber,
Operation operation)
This method could be overrided by an extending class. |
boolean |
check(UserContext user,
int nodeNumber,
Operation operation)
This method could be overrided by an extending class. |
void |
create(UserContext user,
int nodeNumber)
This method could be overrided by an extending class. |
java.lang.String |
getContext(UserContext user,
int nodeNumber)
This method could be overrided by an extending class. |
java.util.HashSet |
getPossibleContexts(UserContext user,
int nodeNumber)
This method could be overrided by an extending class. |
protected void |
load()
This method could be overrided by an extending class. |
void |
remove(UserContext user,
int nodeNumber)
This method could be overrided by an extending class. |
void |
setContext(UserContext user,
int nodeNumber,
java.lang.String context)
This method could be overrided by an extending class. |
void |
update(UserContext user,
int nodeNumber)
This method could be overrided by an extending class. |
| Methods inherited from class org.mmbase.security.Authorization |
load |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContextAuthorization()
| Method Detail |
protected void load()
Authorizationload in class Authorization
public void create(UserContext user,
int nodeNumber)
throws SecurityException
Authorizationcreate in class Authorizationorg.mmbase.security.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 nodeNumber)
throws SecurityException
Authorizationupdate in class Authorizationorg.mmbase.security.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 nodeNumber)
throws SecurityException
Authorizationremove in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has just been removed
in the cloud.
public void setContext(UserContext user,
int nodeNumber,
java.lang.String context)
throws SecurityException
AuthorizationsetContext in class Authorizationorg.mmbase.security.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 getorg.mmbase.SecurityException - If operation is not allowedorg.mmbase.SecurityException - If context is not known
public java.lang.String getContext(UserContext user,
int nodeNumber)
throws SecurityException
AuthorizationgetContext in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the MMObjectNode, which has to be asserted.org.mmbase.SecurityException - If operation is not allowed(needs read rights)
public java.util.HashSet getPossibleContexts(UserContext user,
int nodeNumber)
throws SecurityException
AuthorizationgetPossibleContexts in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has to be asserted.java.util.HashSet of Strings which
represent a context in readable form..org.mmbase.SecurityException - maybe
public boolean check(UserContext user,
int nodeNumber,
Operation operation)
throws SecurityException
Authorizationcheck in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has to be checked.operation - The operation which will be performed.true if the operation is permitted,
false if the operation is not permitted,
public void assert(UserContext user,
int nodeNumber,
Operation operation)
throws SecurityException
Authorizationassert in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information
about the user.nodeid - The id of the MMObjectNode, which has to be asserted.operation - The operation which will be performed.org.mmbase.SecurityException - If the assertion fails
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||