org.mmbase.security
Class ActionRepository
java.lang.Object
org.mmbase.security.Configurable
org.mmbase.security.ActionRepository
- Direct Known Subclasses:
- MemoryActionRepository
public abstract class ActionRepository
- extends Configurable
The defined 'actions' are maintained by the 'action' repository. The security implementation can
decide how to persist actions and how to connect rights to it. Every action is identified by two
string; a namespace (which may be nulland its name. Namespaces are likely to correspond with Components.
- Since:
- MMBase-1.9
- Version:
- $Id: ActionRepository.java,v 1.10 2008/10/01 16:57:21 michiel Exp $
- Author:
- Michiel Meeuwissen
- See Also:
Action
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bootstrap
protected static ActionRepository bootstrap
ActionRepository
public ActionRepository()
getInstance
public static final ActionRepository getInstance()
add
public abstract void add(Action a)
- Adds the action to the repository using
Action.getNameSpace() and Action.getName().
get
public abstract Map<String,Action> get(String nameSpace)
- All actions of a certain namespace.
get
public final Action get(String nameSpace,
String name)
- Shortcut for
get(String).Map.get(java.lang.Object).
getActions
public abstract Collection<Action> getActions()
- All actions managed by this repository
MMBase build 1.9.0.20081107