| java.lang.Object org.mmbase.security.Configurable org.mmbase.security.Authorization org.mmbase.security.implementation.basic.OwnerAuthorization
OwnerAuthorization | public class OwnerAuthorization extends Authorization (Code) | | A very simple Authorization implementation, based an a property file. Every user will be present
in this file as one property. Only the keys are of importance when authorizing, because it
determines the 'possible users' and 'possible contexts'.
Furthermore everybody is authorized to read, you may create if you are known, (so not anonymous),
and you may edit, if you are either administrator or editing your 'own' node.
author: Eduard Witteveen author: Michiel Meeuwissen version: $Id: OwnerAuthorization.java,v 1.14 2007/02/11 19:45:04 nklasens Exp $ |
Method Summary | |
public boolean | check(UserContext user, int nodeNumber, Operation operation) | public boolean | check(UserContext user, int nodeNumber, int srcNodeNumber, int dstNodeNumber, Operation operation) | public QueryCheck | check(UserContext user, Query query, Operation operation) | public void | create(UserContext user, int nodeNumber) | public String | getContext(UserContext user, int nodeNumber) | public Set<String> | getPossibleContexts(UserContext user, int nodeNumber) | public void | load() | public void | remove(UserContext user, int node) | public void | setContext(UserContext user, int nodeNumber, String context) This method does nothing, except from checking if the setContext was valid.. | public void | update(UserContext user, int nodeNumber) |
Fields inherited from org.mmbase.security.Authorization | final public static QueryCheck COMPLETE_CHECK(Code)(Java Doc) final public static QueryCheck NO_CHECK(Code)(Java Doc)
|
Methods inherited from org.mmbase.security.Authorization | abstract public boolean check(UserContext user, int nodeid, Operation operation)(Code)(Java Doc) abstract public boolean check(UserContext user, int nodeid, int srcnodeid, int dstnodeid, Operation operation)(Code)(Java Doc) public boolean check(UserContext user, Action ac, Parameters parameters)(Code)(Java Doc) public QueryCheck check(UserContext user, Query query, Operation operation)(Code)(Java Doc) abstract public void create(UserContext user, int nodeid)(Code)(Java Doc) abstract public String getContext(UserContext user, int nodeid) throws SecurityException(Code)(Java Doc) abstract public Set<String> getPossibleContexts(UserContext user, int nodeid) throws SecurityException(Code)(Java Doc) public Set<String> getPossibleContexts(UserContext user) throws SecurityException(Code)(Java Doc) abstract public void remove(UserContext user, int nodeid)(Code)(Java Doc) abstract public void setContext(UserContext user, int nodeid, String context) throws SecurityException(Code)(Java Doc) abstract public void update(UserContext user, int nodeid)(Code)(Java Doc) public void verify(UserContext user, int nodeid, Operation operation) throws SecurityException(Code)(Java Doc) public void verify(UserContext user, int nodeid, int srcnodeid, int dstnodeid, Operation operation) throws SecurityException(Code)(Java Doc) final public void verify(UserContext user, Action ac, Parameters parameters)(Code)(Java Doc)
|
|
|