Interface RolesManager
- All Known Implementing Classes:
RolesManagerImpl
public interface RolesManager
- Author:
- Tim Urmancheev
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
createRole
(Role role) Creates new role.getResourcesUsingRole
(String role) getUsedRoles
(WebbpmProcess process) getUsedRoles
(XmlComponent component) getUsedRoles
(XmlPage page) void
void
void
removeRole
(Role role) void
updateRole
(String prevName, Role role) Updates existing role.
-
Field Details
-
NON_UNIQUE_ROLE_NAME_EXCEPTION
- See Also:
-
-
Method Details
-
getAllRoles
-
createRole
Creates new role.- Parameters:
role
- - role needed to create- Throws:
ProjectOperationException
- if any exception happens. Will be with codeNON_UNIQUE_ROLE_NAME_EXCEPTION
code if role with same name already exists.
-
updateRole
Updates existing role.- Parameters:
prevName
- - name of changed role before updaterole
- - changed role- Throws:
ProjectOperationException
- if any exception happens. Will be with codeNON_UNIQUE_ROLE_NAME_EXCEPTION
code if role name has been modified and role with new name already exists.
-
removeRole
- Throws:
ProjectOperationException
-
reloadRoles
void reloadRoles() -
getRole
- Throws:
ProjectOperationException
-
checkThatRolesFileExists
- Throws:
ProjectOperationException
-
addChangeListener
-
removeChangeListener
-
getUsedRoles
- Parameters:
process
- where the roles will look- Returns:
- a set of roles used for the process
-
getUsedRoles
- Parameters:
page
- where the roles will look- Returns:
- a set of roles used for the page
-
getUsedRoles
- Parameters:
component
- where the roles will look- Returns:
- a set of roles used for the component
-
getResourcesUsingRole
- Parameters:
role
- which will look in resources- Returns:
- a list of resources using the role
-