public interface UserRolesManager
Modifier and Type | Method and Description |
---|---|
UserRole |
addUserRole(UserRole userRoleTemplate)
Add a new userrole.
|
boolean |
deleteUserRole(String userRoleName)
Delete a userrole.
|
UserRole |
updateUserRole(UserRole userRoleTemplate)
Update a userrole.
|
UserRole addUserRole(UserRole userRoleTemplate) throws IllegalArgumentException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
userRoleTemplate
- A template for the userrole to create from, for example a UserRoleBean
instanceUserRolesProvider
IllegalArgumentException
- when the userrole is null or userRoleTemplate.name is null/blankjavax.jcr.AccessDeniedException
- if not allowed to create a userrole, or trying to create a system userrole which is
only allowed for system users: HippoSession.isSystemSession()
javax.jcr.RepositoryException
- if the underlying HippoSession is no longer live, or something else went wrongUserRole updateUserRole(UserRole userRoleTemplate) throws IllegalArgumentException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
userRoleTemplate
- A template for the userrole to update from, for example a UserRoleBean
instanceUserRolesProvider
IllegalArgumentException
- when the userrole is null or userRoleTemplate.name is null/blankjavax.jcr.AccessDeniedException
- if not allowed to to set the system status, or change a system userrole which is only
allowed for system users: HippoSession.isSystemSession()
javax.jcr.RepositoryException
- if the underlying HippoSession is no longer live, or something else went wrongboolean deleteUserRole(String userRoleName) throws IllegalArgumentException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
userRoleName
- The name of the userrole to deleteIllegalArgumentException
- when the userRoleName is null/blankjavax.jcr.AccessDeniedException
- if not allowed to delete a system userrole which is only
allowed for system users: HippoSession.isSystemSession()
javax.jcr.RepositoryException
- if the underlying HippoSession is no longer live, or something else went wrongCopyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.