|
||||||||
| 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.cloud.Verify
Security from within MMBase
| Fields inherited from class org.mmbase.security.Authorization |
configFile, fileWatcher, manager |
| Constructor Summary | |
Verify()
|
|
| Method Summary | |
boolean |
check(UserContext user,
int nodeid,
int srcnodeid,
int dstnodeid,
Operation operation)
This method could be overrided by an extending class. |
boolean |
check(UserContext user,
int nodeid,
Operation operation)
This method could be overrided by an extending class. |
void |
create(UserContext user,
int nodeid)
This method could be overrided by an extending class. |
java.lang.String |
getContext(UserContext user,
int nodeid)
This method could be overrided by an extending class. |
java.util.Set |
getPossibleContexts(UserContext user,
int nodeid)
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 nodeid)
This method could be overrided by an extending class. |
void |
setContext(UserContext user,
int nodeid,
java.lang.String context)
This method could be overrided by an extending class. |
void |
update(UserContext user,
int nodeid)
This method could be overrided by an extending class. |
| Methods inherited from class org.mmbase.security.Authorization |
load, verify, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Verify()
| Method Detail |
protected void load()
Authorizationload in class Authorization
public void create(UserContext user,
int nodeid)
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 nodeid)
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 nodeid)
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 boolean check(UserContext user,
int nodeid,
Operation operation)
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 boolean check(UserContext user,
int nodeid,
int srcnodeid,
int dstnodeid,
Operation operation)
Authorizationcheck in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the relation which has to be checked.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).true if the operation is permitted,
false if the operation is not permitted,
public java.lang.String getContext(UserContext user,
int nodeid)
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 void setContext(UserContext user,
int nodeid,
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.util.Set getPossibleContexts(UserContext user,
int nodeid)
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.Set of Strings which
represent a context in readable form..org.mmbase.SecurityException - maybe
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||