org.mmbase.security
Class MemoryActionRepository

java.lang.Object
  extended by org.mmbase.security.Configurable
      extended by org.mmbase.security.ActionRepository
          extended by org.mmbase.security.MemoryActionRepository

public class MemoryActionRepository
extends ActionRepository

This is the most simple way to store 'actions', namely straightforwardly in memory. Config files may fill this repository on startup.

Since:
MMBase-1.9
Version:
$Id: MemoryActionRepository.java 41989 2010-04-20 16:45:39Z michiel $
Author:
Michiel Meeuwissen

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

Constructor Detail

MemoryActionRepository

public MemoryActionRepository()
Method Detail

load

public void load()
Description copied from class: Configurable
This method should be overridden by an extending class. It should further initialize the class. It can optionally retrieve settings from the general security configuration file (available as the 'configResource' member). Security implementations with complicated configuration would typically retrieve a path to their own configuration file only.

Specified by:
load in class Configurable

add

public void add(Action a)
Description copied from class: ActionRepository
Adds the action to the repository using Action.getNameSpace() and Action.getName().

Specified by:
add in class ActionRepository

get

public Map<String,Action> get(String nameSpace)
Description copied from class: ActionRepository
All actions of a certain namespace.

Specified by:
get in class ActionRepository

getActions

public Collection<Action> getActions()
Description copied from class: ActionRepository
All actions managed by this repository

Specified by:
getActions in class ActionRepository


MMBase 2.0-SNAPSHOT - null