public class DefaultSecurityService extends TurbineBaseService implements SecurityService
configuration, name, serviceBrokerinitableBroker, isInitializedSERVICE_NAME, USER_MANAGER_DEFAULT, USER_MANAGER_KEY, USER_WRAPPER_DEFAULT, USER_WRAPPER_KEY| Constructor and Description |
|---|
DefaultSecurityService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accountExists(String userName)
Check whether a specified user's account exists.
|
boolean |
accountExists(User user)
Check whether a specified user's account exists.
|
<G extends org.apache.fulcrum.security.entity.Group> |
addGroup(G group)
Creates a new group with specified attributes.
|
<P extends org.apache.fulcrum.security.entity.Permission> |
addPermission(P permission)
Creates a new permission with specified attributes.
|
<R extends org.apache.fulcrum.security.entity.Role> |
addRole(R role)
Creates a new role with specified attributes.
|
void |
addUser(User user,
String password)
Creates new user account with specified attributes.
|
void |
changePassword(User user,
String oldPassword,
String newPassword)
Change the password for an User.
|
void |
forcePassword(User user,
String password)
Forcibly sets new password for an User.
|
<A extends org.apache.fulcrum.security.acl.AccessControlList> |
getACL(User user)
Constructs an AccessControlList for a specific user.
|
org.apache.fulcrum.security.util.GroupSet |
getAllGroups()
Retrieves all groups defined in the system.
|
org.apache.fulcrum.security.util.PermissionSet |
getAllPermissions()
Retrieves all permissions defined in the system.
|
org.apache.fulcrum.security.util.RoleSet |
getAllRoles()
Retrieves all roles defined in the system.
|
<U extends User> |
getAnonymousUser()
Constructs an User object to represent an anonymous user of the
application.
|
<U extends User> |
getAuthenticatedUser(String username,
String password)
Authenticates an user, and constructs an User object to represent
him/her.
|
<G extends org.apache.fulcrum.security.entity.Group> |
getGlobalGroup()
Provides a reference to the Group object that represents the
global group.
|
<G extends org.apache.fulcrum.security.entity.Group> |
getGroupById(int id)
Retrieve a Group object with specified Id.
|
<G extends org.apache.fulcrum.security.entity.Group> |
getGroupByName(String name)
Retrieve a Group object with specified name.
|
<G extends org.apache.fulcrum.security.entity.Group> |
getGroupInstance()
Construct a blank Group object.
|
<G extends org.apache.fulcrum.security.entity.Group> |
getGroupInstance(String groupName)
Construct a blank Group object.
|
<P extends org.apache.fulcrum.security.entity.Permission> |
getPermissionById(int id)
Retrieve a Permission object with specified Id.
|
<P extends org.apache.fulcrum.security.entity.Permission> |
getPermissionByName(String name)
Retrieve a Permission object with specified name.
|
<P extends org.apache.fulcrum.security.entity.Permission> |
getPermissionInstance()
Construct a blank Permission object.
|
<P extends org.apache.fulcrum.security.entity.Permission> |
getPermissionInstance(String permName)
Construct a blank Permission object.
|
org.apache.fulcrum.security.util.PermissionSet |
getPermissions(org.apache.fulcrum.security.entity.Role role)
Retrieves all permissions associated with a role.
|
<R extends org.apache.fulcrum.security.entity.Role> |
getRoleById(int id)
Retrieve a Role object with specified Id.
|
<R extends org.apache.fulcrum.security.entity.Role> |
getRoleByName(String name)
Retrieve a Role object with specified name.
|
<R extends org.apache.fulcrum.security.entity.Role> |
getRoleInstance()
Construct a blank Role object.
|
<R extends org.apache.fulcrum.security.entity.Role> |
getRoleInstance(String roleName)
Construct a blank Role object.
|
<U extends User> |
getUser(String username)
Constructs an User object to represent a registered user of the
application.
|
<U extends User> |
getUserInstance()
Construct a blank User object.
|
<U extends User> |
getUserInstance(String userName)
Construct a blank User object.
|
UserManager |
getUserManager()
Returns the configured UserManager.
|
void |
grant(org.apache.fulcrum.security.entity.Role role,
org.apache.fulcrum.security.entity.Permission permission)
Grants a Role a Permission
|
void |
grant(User user,
org.apache.fulcrum.security.entity.Group group,
org.apache.fulcrum.security.entity.Role role)
Grant an User a Role in a Group.
|
void |
init()
Initializes the SecurityService, locating the appropriate UserManager
This is a zero parameter variant which queries the Turbine Servlet
for its config.
|
boolean |
isAnonymousUser(User user)
Checks whether a passed user object matches the anonymous user pattern
according to the configured user manager
|
protected void |
lockExclusive()
Acquire an exclusive lock on the security information repository.
|
protected void |
lockShared()
Acquire a shared lock on the security information repository.
|
void |
removeGroup(org.apache.fulcrum.security.entity.Group group)
Removes a Group from the system.
|
void |
removePermission(org.apache.fulcrum.security.entity.Permission permission)
Removes a Permission from the system.
|
void |
removeRole(org.apache.fulcrum.security.entity.Role role)
Removes a Role from the system.
|
void |
removeUser(User user)
Removes an user account from the system.
|
void |
renameGroup(org.apache.fulcrum.security.entity.Group group,
String name)
Renames an existing Group.
|
void |
renamePermission(org.apache.fulcrum.security.entity.Permission permission,
String name)
Renames an existing Permission.
|
void |
renameRole(org.apache.fulcrum.security.entity.Role role,
String name)
Renames an existing Role.
|
void |
replaceRole(User user,
org.apache.fulcrum.security.entity.Role role,
org.apache.fulcrum.security.entity.Role newRole)
Replaces transactionally the first role with second role for the given user.
|
void |
revoke(org.apache.fulcrum.security.entity.Role role,
org.apache.fulcrum.security.entity.Permission permission)
Revokes a Permission from a Role.
|
void |
revoke(User user,
org.apache.fulcrum.security.entity.Group group,
org.apache.fulcrum.security.entity.Role role)
Revoke a Role in a Group from an User.
|
void |
revokeAll(org.apache.fulcrum.security.entity.Role role)
Revokes all permissions from a Role.
|
void |
revokeAll(org.apache.fulcrum.security.entity.Role role,
boolean cascadeDelete)
Revokes by default all permissions from a Role and if flag is set
all group and user relationships with this role
This method is used when deleting a Role.
|
void |
revokeAll(User user)
Revokes all roles from an User.
|
void |
saveOnSessionUnbind(User user)
Saves User data when the session is unbound.
|
void |
saveUser(User user)
Saves User's data in the permanent storage.
|
protected void |
unlockExclusive()
Release an exclusive lock on the security information repository.
|
protected void |
unlockShared()
Release a shared lock on the security information repository.
|
init, init, shutdowngetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBrokergetInit, getInitableBroker, setInit, setInitableBrokerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getName, getProperties, setName, setServiceBrokergetInit, init, setInitableBroker, shutdownpublic DefaultSecurityService()
public void init() throws InitializationException
init in interface Initableinit in class TurbineBaseServiceInitializationException - Something went wrong in the init stagepublic <U extends User> U getUserInstance() throws org.apache.fulcrum.security.util.UnknownEntityException
getUserInstance in interface SecurityServiceorg.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <U extends User> U getUserInstance(String userName) throws org.apache.fulcrum.security.util.UnknownEntityException
getUserInstance in interface SecurityServiceuserName - The name of the user.org.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <G extends org.apache.fulcrum.security.entity.Group> G getGroupInstance() throws org.apache.fulcrum.security.util.UnknownEntityException
getGroupInstance in interface SecurityServiceorg.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <G extends org.apache.fulcrum.security.entity.Group> G getGroupInstance(String groupName) throws org.apache.fulcrum.security.util.UnknownEntityException
getGroupInstance in interface SecurityServicegroupName - The name of the Grouporg.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <P extends org.apache.fulcrum.security.entity.Permission> P getPermissionInstance() throws org.apache.fulcrum.security.util.UnknownEntityException
getPermissionInstance in interface SecurityServiceorg.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <P extends org.apache.fulcrum.security.entity.Permission> P getPermissionInstance(String permName) throws org.apache.fulcrum.security.util.UnknownEntityException
getPermissionInstance in interface SecurityServicepermName - The name of the permission.org.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <R extends org.apache.fulcrum.security.entity.Role> R getRoleInstance() throws org.apache.fulcrum.security.util.UnknownEntityException
getRoleInstance in interface SecurityServiceorg.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public <R extends org.apache.fulcrum.security.entity.Role> R getRoleInstance(String roleName) throws org.apache.fulcrum.security.util.UnknownEntityException
getRoleInstance in interface SecurityServiceroleName - The name of the role.org.apache.fulcrum.security.util.UnknownEntityException - if the object could not be instantiated.public UserManager getUserManager()
getUserManager in interface SecurityServicepublic boolean accountExists(User user) throws org.apache.fulcrum.security.util.DataBackendException
accountExists in interface SecurityServiceuser - The user to be checked.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.public boolean accountExists(String userName) throws org.apache.fulcrum.security.util.DataBackendException
accountExists in interface SecurityServiceuserName - The name of the user to be checked.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.public <U extends User> U getAuthenticatedUser(String username, String password) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.PasswordMismatchException
getAuthenticatedUser in interface SecurityServiceusername - The user name.password - The user password.org.apache.fulcrum.security.util.PasswordMismatchException - if the supplied password was incorrect.org.apache.fulcrum.security.util.UnknownEntityException - if the user's account does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the storage.public <U extends User> U getUser(String username) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getUser in interface SecurityServiceusername - The user name.org.apache.fulcrum.security.util.UnknownEntityException - if the user's account does not existorg.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the storage.public <U extends User> U getAnonymousUser() throws org.apache.fulcrum.security.util.UnknownEntityException
getAnonymousUser in interface SecurityServiceorg.apache.fulcrum.security.util.UnknownEntityException - if the implementation of User interface
could not be determined, or does not exist.public boolean isAnonymousUser(User user)
isAnonymousUser in interface SecurityServiceuser - An user objectpublic void saveUser(User user) throws org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.DataBackendException
saveUser in interface SecurityServiceuser - the User object to saveorg.apache.fulcrum.security.util.UnknownEntityException - if the user's account does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the storage.public void saveOnSessionUnbind(User user) throws org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.DataBackendException
saveOnSessionUnbind in interface SecurityServiceuser - the user objectorg.apache.fulcrum.security.util.UnknownEntityException - if the user's account does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the
storage.public void addUser(User user, String password) throws org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.EntityExistsException
addUser in interface SecurityServiceuser - the object describing account to be created.password - The password to use for the account.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.org.apache.fulcrum.security.util.EntityExistsException - if the user account already exists.org.apache.fulcrum.security.util.UnknownEntityException - if the provided user does not exist (is null)public void removeUser(User user) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
removeUser in interface SecurityServiceuser - the object describing the account to be removed.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the user account is not present.public void changePassword(User user, String oldPassword, String newPassword) throws org.apache.fulcrum.security.util.PasswordMismatchException, org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.DataBackendException
changePassword in interface SecurityServiceuser - an User to change password for.oldPassword - the current password supplied by the user.newPassword - the current password requested by the user.org.apache.fulcrum.security.util.PasswordMismatchException - if the supplied password was incorrect.org.apache.fulcrum.security.util.UnknownEntityException - if the user's record does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the storage.public void forcePassword(User user, String password) throws org.apache.fulcrum.security.util.UnknownEntityException, org.apache.fulcrum.security.util.DataBackendException
forcePassword in interface SecurityServiceuser - an User to change password for.password - the new password.org.apache.fulcrum.security.util.UnknownEntityException - if the user's record does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the storage.protected void lockShared()
protected void unlockShared()
protected void lockExclusive()
synchronized themselves!protected void unlockExclusive()
synchronized!public <G extends org.apache.fulcrum.security.entity.Group> G getGlobalGroup()
getGlobalGroup in interface SecurityServicepublic <G extends org.apache.fulcrum.security.entity.Group> G getGroupByName(String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getGroupByName in interface SecurityServicename - the name of the Group.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.public <G extends org.apache.fulcrum.security.entity.Group> G getGroupById(int id) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getGroupById in interface SecurityServiceid - the id of the Group.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the
storage.public <R extends org.apache.fulcrum.security.entity.Role> R getRoleByName(String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getRoleByName in interface SecurityServicename - the name of the Role.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.org.apache.fulcrum.security.util.UnknownEntityException - if the role does not exist.public <R extends org.apache.fulcrum.security.entity.Role> R getRoleById(int id) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getRoleById in interface SecurityServiceid - the id of the Role.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the
storage.public <P extends org.apache.fulcrum.security.entity.Permission> P getPermissionByName(String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getPermissionByName in interface SecurityServicename - the name of the Permission.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not exist.public <P extends org.apache.fulcrum.security.entity.Permission> P getPermissionById(int id) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getPermissionById in interface SecurityServiceid - the id of the Permission.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not
exist in the database.org.apache.fulcrum.security.util.DataBackendException - if there is a problem accessing the
storage.public org.apache.fulcrum.security.util.GroupSet getAllGroups() throws org.apache.fulcrum.security.util.DataBackendException
getAllGroups in interface SecurityServiceorg.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.public org.apache.fulcrum.security.util.RoleSet getAllRoles() throws org.apache.fulcrum.security.util.DataBackendException
getAllRoles in interface SecurityServiceorg.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.public org.apache.fulcrum.security.util.PermissionSet getAllPermissions() throws org.apache.fulcrum.security.util.DataBackendException
getAllPermissions in interface SecurityServiceorg.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the
data backend.public <A extends org.apache.fulcrum.security.acl.AccessControlList> A getACL(User user) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getACL in interface SecurityServiceuser - the user for whom the AccessControlList are to be retrievedorg.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if user account is not present.public void grant(User user, org.apache.fulcrum.security.entity.Group group, org.apache.fulcrum.security.entity.Role role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
grant in interface SecurityServiceuser - the user.group - the group.role - the role.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if user account, group or role is not
present.public void revoke(User user, org.apache.fulcrum.security.entity.Group group, org.apache.fulcrum.security.entity.Role role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
revoke in interface SecurityServiceuser - the user.group - the group.role - the role.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if user account, group or role is not
present.public void replaceRole(User user, org.apache.fulcrum.security.entity.Role role, org.apache.fulcrum.security.entity.Role newRole) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
replaceRole in interface SecurityServiceuser - the user.role - the old rolenewRole - the new roleorg.apache.fulcrum.security.util.DataBackendExceptionorg.apache.fulcrum.security.util.UnknownEntityExceptionpublic void revokeAll(User user) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
revokeAll in interface SecurityServiceuser - the User.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the account is not present.public void grant(org.apache.fulcrum.security.entity.Role role, org.apache.fulcrum.security.entity.Permission permission) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
grant in interface SecurityServicerole - the Role.permission - the Permission.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if role or permission is not present.public void revoke(org.apache.fulcrum.security.entity.Role role, org.apache.fulcrum.security.entity.Permission permission) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
revoke in interface SecurityServicerole - the Role.permission - the Permission.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if role or permission is not present.public void revokeAll(org.apache.fulcrum.security.entity.Role role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
revokeAll in interface SecurityServicerole - the Roleorg.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the Role is not present.public void revokeAll(org.apache.fulcrum.security.entity.Role role, boolean cascadeDelete) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
revokeAll in interface SecurityServicerole - the RolecascadeDelete - if true removes all groups and user for this role.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data backend.org.apache.fulcrum.security.util.UnknownEntityException - if the Role is not present.public org.apache.fulcrum.security.util.PermissionSet getPermissions(org.apache.fulcrum.security.entity.Role role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
getPermissions in interface SecurityServicerole - the role name, for which the permissions are to be retrieved.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the role is not present.public <G extends org.apache.fulcrum.security.entity.Group> G addGroup(G group) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.EntityExistsException
addGroup in interface SecurityServicegroup - the object describing the group to be created.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.EntityExistsException - if the group already exists.public <R extends org.apache.fulcrum.security.entity.Role> R addRole(R role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.EntityExistsException
addRole in interface SecurityServicerole - the objects describing the role to be created.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.EntityExistsException - if the role already exists.public <P extends org.apache.fulcrum.security.entity.Permission> P addPermission(P permission) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.EntityExistsException
addPermission in interface SecurityServicepermission - the objects describing the permission to be created.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.EntityExistsException - if the permission already exists.public void removeGroup(org.apache.fulcrum.security.entity.Group group) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
removeGroup in interface SecurityServicegroup - the object describing group to be removed.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.public void removeRole(org.apache.fulcrum.security.entity.Role role) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
removeRole in interface SecurityServicerole - The object describing the role to be removed.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data backend.org.apache.fulcrum.security.util.UnknownEntityException - if the role does not exist.public void removePermission(org.apache.fulcrum.security.entity.Permission permission) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
removePermission in interface SecurityServicepermission - The object describing the permission to be removed.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not exist.public void renameGroup(org.apache.fulcrum.security.entity.Group group, String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
renameGroup in interface SecurityServicegroup - The object describing the group to be renamed.name - the new name for the group.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the group does not exist.public void renameRole(org.apache.fulcrum.security.entity.Role role, String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
renameRole in interface SecurityServicerole - The object describing the role to be renamed.name - the new name for the role.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the role does not exist.public void renamePermission(org.apache.fulcrum.security.entity.Permission permission, String name) throws org.apache.fulcrum.security.util.DataBackendException, org.apache.fulcrum.security.util.UnknownEntityException
renamePermission in interface SecurityServicepermission - The object describing the permission to be renamed.name - the new name for the permission.org.apache.fulcrum.security.util.DataBackendException - if there was an error accessing the data
backend.org.apache.fulcrum.security.util.UnknownEntityException - if the permission does not exist.Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.