| java.lang.Object org.mmbase.security.Configurable org.mmbase.security.Authorization org.mmbase.security.implementation.context.ContextAuthorization
ContextAuthorization | public class ContextAuthorization extends Authorization (Code) | | Authorization based on a XML-configuration file. The XML file contains users, groups and
contexts. Contextes provide rights to users and/or groups and are identified by a string (which
is stored in the owner field).
author: Eduard Witteveen author: Pierre van Rooden author: Michiel Meeuwissen version: $Id: ContextAuthorization.java,v 1.46 2007/06/06 11:35:47 nklasens Exp $ See Also: ContextAuthentication |
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 userContext, Query query, Operation operation) | public void | create(UserContext user, int nodeNumber) | protected SortedSet<String> | getAllContexts() | public String | getContext(UserContext user, int nodeNumber) | protected String | getContext(int nodeNumber) | public String | getDefaultContext(UserContext user) | protected SortedSet<String> | getDisallowingContexts(UserContext user, Operation operation) | public Set<String> | getPossibleContexts(UserContext user, int nodeNumber) | protected void | load() | public void | remove(UserContext user, int nodeNumber) | public void | setContext(UserContext user, int nodeNumber, String context) | public void | update(UserContext user, int nodeNumber) | public void | verify(UserContext user, int nodeNumber, Operation operation) | public void | verify(UserContext user, int nodeNumber, int srcNodeNumber, int dstNodeNumber, Operation operation) |
allowingContextsCache | protected Cache<String, AllowingContexts> allowingContextsCache(Code) | | |
getContext | protected String getContext(int nodeNumber)(Code) | | since: MMBase-1.9 |
load | protected void load()(Code) | | |
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)
|
|
|