public class HibernatePermissionManagerImpl extends AbstractPermissionManager
managerROLE| Constructor and Description |
|---|
HibernatePermissionManagerImpl() |
| 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.
|
Permission |
getPermissionById(Object id)
Retrieve a Permission object with specified id.
|
PersistenceHelper |
getPersistenceHelper() |
protected Permission |
persistNewPermission(Permission 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, 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 Permission valueDataBackendException - 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 Permission persistNewPermission(Permission 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.public PersistenceHelper getPersistenceHelper()
public Permission getPermissionById(Object id) throws DataBackendException, UnknownEntityException
getPermissionById in interface PermissionManagergetPermissionById in class AbstractPermissionManagerid - the id of the Permission.DataBackendException - if there was an error accessing the data backend.UnknownEntityException - if the permission does not exist.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.