|
||||||||
| 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.basic.OwnerAuthorization
| Fields inherited from class org.mmbase.security.Authorization |
configFile, fileWatcher, manager |
| Constructor Summary | |
OwnerAuthorization()
|
|
| Method Summary | |
void |
assert(UserContext user,
int node,
int srcNode,
int dstNode,
Operation operation)
This method could be overrided by an extending class. |
void |
assert(UserContext user,
int node,
Operation operation)
This method could be overrided by an extending class. |
boolean |
check(UserContext user,
int nodeNumber,
int srcNodeNumber,
int dstNodeNumber,
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.Set |
getPossibleContexts(UserContext user,
int nodeNumber)
This method does nothing, except from returning a dummy value |
void |
load()
This method could be overrided by an extending class. |
void |
remove(UserContext user,
int node)
This method could be overrided by an extending class. |
void |
setContext(UserContext user,
int nodeNumber,
java.lang.String context)
This method does nothing, except from checking if the setContext was valid.. |
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 OwnerAuthorization()
| Method Detail |
public void load()
Authorizationload in class Authorization
public void create(UserContext user,
int nodeNumber)
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)
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 node)
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 nodeNumber,
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 void assert(UserContext user,
int node,
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
public boolean check(UserContext user,
int nodeNumber,
int srcNodeNumber,
int dstNodeNumber,
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 void assert(UserContext user,
int node,
int srcNode,
int dstNode,
Operation operation)
throws SecurityException
Authorizationassert in class Authorizationorg.mmbase.security.Authorizationuser - The UserContext, containing the information about the user.nodeid - The id of the relation which has to be asserted.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).org.mmbase.SecurityException - If the assertion fails
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 void setContext(UserContext user,
int nodeNumber,
java.lang.String context)
throws SecurityException
setContext 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 nodeNumber)
throws SecurityException
getPossibleContexts 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 | |||||||