public class MemoryPermissionManagerImpl extends AbstractPermissionManager
ROLE
Constructor and Description |
---|
MemoryPermissionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkExists(String permissionName)
Determines if the
Permission exists in the security system. |
PermissionSet |
getAllPermissions()
Retrieves all permissions defined in the system.
|
protected <T extends Permission> |
persistNewPermission(T permission)
Creates a new permission with specified attributes.
|
void |
removePermission(Permission permission)
Removes a Permission from the system.
|
void |
renamePermission(Permission permission,
String name)
Renames an existing Permission.
|
addPermission, checkExists, getPermissionById, getPermissionByName, getPermissionInstance, getPermissionInstance
configure, getClassName, setClassName
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
public PermissionSet getAllPermissions() throws DataBackendException
DataBackendException
- if there was an error accessing the data backend.public void renamePermission(Permission permission, String name) throws DataBackendException, UnknownEntityException
permission
- The object describing the permission to be renamed.name
- the new name for the permission.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the permission does not exist.public boolean checkExists(String permissionName) throws DataBackendException
Permission
exists in the security system.permission
- a String
valueDataBackendException
- when more than one Permission with the same name exists.Exception
- A generic exception.public void removePermission(Permission permission) throws DataBackendException, UnknownEntityException
permission
- The object describing the permission to be removed.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the permission does not exist.protected <T extends Permission> T persistNewPermission(T permission) throws DataBackendException
persistNewPermission
in class AbstractPermissionManager
permission
- the object describing the permission to be created.DataBackendException
- if there was an error accessing the data backend.EntityExistsException
- if the permission already exists.Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.