org.opencms.workplace.explorer
Class CmsExplorerTypeAccess

java.lang.Object
  extended by org.opencms.workplace.explorer.CmsExplorerTypeAccess

public class CmsExplorerTypeAccess
extends Object

Explorer type access object, encapsulates access control entires and lists of a explorer type.

Since:
6.0.0
Version:
$Revision: 1.11 $
Author:
Michael Emmerich

Constructor Summary
CmsExplorerTypeAccess()
          Constructor, creates an empty, CmsExplorerTypeAccess object.
 
Method Summary
 void addAccessEntry(String key, String value)
          Adds a single access entry to the map of access entries of the explorer type setting.
 void createAccessControlList()
          Creates the access control list from the temporary map.
 CmsAccessControlList getAccessControlList()
          Returns the list of access control entries of the explorer type setting.
 Map getAccessEntries()
          Returns the map of access entries of the explorer type setting.
 boolean isEmpty()
          Tests if there are any access information stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsExplorerTypeAccess

public CmsExplorerTypeAccess()
Constructor, creates an empty, CmsExplorerTypeAccess object.

Method Detail

addAccessEntry

public void addAccessEntry(String key,
                           String value)
Adds a single access entry to the map of access entries of the explorer type setting.

This stores the configuration data in a map which is used in the initialize process to create the access control list.

Parameters:
key - the principal of the ace
value - the permissions for the principal

createAccessControlList

public void createAccessControlList()
                             throws CmsException
Creates the access control list from the temporary map.

Throws:
CmsException - if reading a group or user fails

getAccessControlList

public CmsAccessControlList getAccessControlList()
Returns the list of access control entries of the explorer type setting.

Returns:
the list of access control entries of the explorer type setting

getAccessEntries

public Map getAccessEntries()
Returns the map of access entries of the explorer type setting.

Returns:
the map of access entries of the explorer type setting

isEmpty

public boolean isEmpty()
Tests if there are any access information stored.

Returns:
true or false