public class MemoryPermissionManagerImpl extends AbstractPermissionManager
managerROLE| 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, getPermissionInstanceconfigure, getClassName, setClassNamedispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, servicepublic 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.permissionName - a String valuetrue if the permission exists in the system, false otherwiseDataBackendException - when more than one Permission with the same name exists.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 AbstractPermissionManagerpermission - the object describing the permission to be created.DataBackendException - if there was an error accessing the data backend.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.