public class CmsExplorerTypeAccess extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static CmsExplorerTypeAccessFlushListener |
flushListener
The listener used to flush cached access settings.
|
static java.lang.String |
PRINCIPAL_DEFAULT
Principal key name for the default permission settings.
|
| Constructor and Description |
|---|
CmsExplorerTypeAccess()
Constructor, creates an empty, CmsExplorerTypeAccess object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessEntry(java.lang.String key,
java.lang.String value)
Adds a single access entry to the map of access entries of the explorer type setting.
|
void |
createAccessControlList(java.lang.String resourceType)
Creates the access control list from the temporary map.
|
protected void |
flushCache()
Flushes the permission cache.
|
CmsAccessControlList |
getAccessControlList()
Returns the computed access Control List.
|
java.util.Map<java.lang.String,java.lang.String> |
getAccessEntries()
Returns the map of access entries of the explorer type setting.
|
CmsPermissionSet |
getPermissions(CmsObject cms,
CmsResource resource)
Calculates the permissions for this explorer type settings
for the user in the given OpenCms user context.
|
boolean |
isEmpty()
Tests if there are any access information stored.
|
public static final java.lang.String PRINCIPAL_DEFAULT
protected static CmsExplorerTypeAccessFlushListener flushListener
public CmsExplorerTypeAccess()
public void addAccessEntry(java.lang.String key, java.lang.String value)
This stores the configuration data in a map which is used in the initialize process to create the access control list.
key - the principal of the acevalue - the permissions for the principalpublic void createAccessControlList(java.lang.String resourceType) throws CmsException
resourceType - the name of the resource typeCmsException - if something goes wrongpublic CmsAccessControlList getAccessControlList()
public java.util.Map<java.lang.String,java.lang.String> getAccessEntries()
public CmsPermissionSet getPermissions(CmsObject cms, CmsResource resource)
cms - the OpenCms user context to calculate the permissions forresource - the resource to check the permissions forpublic boolean isEmpty()
protected void flushCache()