org.mmbase.security
Class ActionRepository

java.lang.Object
  extended by org.mmbase.security.Configurable
      extended by 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

Field Summary
protected static ActionRepository bootstrap
           
 
Fields inherited from class org.mmbase.security.Configurable
configResource, configWatcher, manager
 
Constructor Summary
ActionRepository()
           
 
Method Summary
abstract  void add(Action a)
          Adds the action to the repository using Action.getNameSpace() and Action.getName().
abstract  Map<String,Action> get(String nameSpace)
          All actions of a certain namespace.
 Action get(String nameSpace, String name)
          Shortcut for get(String).
abstract  Collection<Action> getActions()
          All actions managed by this repository
static ActionRepository getInstance()
           
 
Methods inherited from class org.mmbase.security.Configurable
load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bootstrap

protected static ActionRepository bootstrap
Constructor Detail

ActionRepository

public ActionRepository()
Method Detail

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