public interface RoleManagementService
Modifier and Type | Method and Description |
---|---|
RoleReferenceType |
createRole(RolePropertiesType properties)
This method creates a new role with the properties and returns a reference to the new role.
|
void |
deleteRole(RoleReferenceType reference)
Deletes the role with the given reference.
|
List<AclReferenceType> |
getACLs(RoleReferenceType reference)
This method returns the ACLs currently set on the referenced role.
|
RoleType |
loadRole(RoleReferenceType reference)
This method returns a role with the given id.
|
RoleType |
loadRoleByName(String name)
Loads a role identified by its name.
|
SearchExecutionService<RoleListItemType> |
newTenantDeletedRoleSearchService()
This method returns a new
SearchExecutionService that lists all deleted roles of the
current user's tenant. |
SearchExecutionService<RoleListItemType> |
newTenantRoleSearchService()
This method returns a new
SearchExecutionService that lists all roles of the
current user's tenant. |
void |
undeleteRole(RoleReferenceType reference)
Un-deletes the role with the given reference.
|
void |
updateRole(RoleReferenceType reference,
RolePropertiesType properties)
Updates the referenced role with the given properties.
|
RoleType loadRole(RoleReferenceType reference) throws EcmException
reference
- the reference of the role to getResourceNotFoundException
- the referenced role does not exist in the backend systemEcmException
- indicates that a system exception occurredRoleType loadRoleByName(String name) throws EcmException
name
- the name of the role to loadSystemException
- indicates that a system exception occurredEcmException
void deleteRole(RoleReferenceType reference) throws EcmException
reference
- the role referenceSystemException
- indicates that a system exception occurredEcmException
void undeleteRole(RoleReferenceType reference) throws EcmException
reference
- the role referenceEcmException
- indicates that a system exception occurredSearchExecutionService<RoleListItemType> newTenantRoleSearchService() throws EcmException
SearchExecutionService
that lists all roles of the
current user's tenant.EcmException
- indicates that a system exception occurredSearchExecutionService<RoleListItemType> newTenantDeletedRoleSearchService() throws EcmException
SearchExecutionService
that lists all deleted roles of the
current user's tenant.EcmException
- indicates that a system exception occurredRoleReferenceType createRole(RolePropertiesType properties) throws EcmException
properties
- the properties of the roleSystemException
- indicates that a system exception occurredEcmException
void updateRole(RoleReferenceType reference, RolePropertiesType properties) throws EcmException
reference
- the role referenceproperties
- the new properties of the roleResourceNotFoundException
- the referenced role does not exist in the backend systemSystemException
- indicates that a system exception occurredEcmException
List<AclReferenceType> getACLs(RoleReferenceType reference) throws EcmException
reference
- a reference to the roleEcmException
- when loading the ACLs failedCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.