Interface Roles
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RolesImpl
public interface Roles extends Serializable
Interface describing a representation of the <roles> element of a Process Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRole(Role role)
Add an role to the collectionRole
createRole()
Create a RoleRole
getRole(String name)
Get the role definition with given nameRole[]
getRoles()
Get the roles definitionIterator<Role>
iterateRole()
Iterate through the Role objectsvoid
removeRole(String strRoleName)
Remove an role from the collection
-
-
-
Method Detail
-
createRole
Role createRole()
Create a Role- Returns:
- an object implementing Role
-
addRole
void addRole(Role role)
Add an role to the collection- Parameters:
role
- to be added
-
getRoles
Role[] getRoles()
Get the roles definition- Returns:
- roles definition
-
getRole
Role getRole(String name)
Get the role definition with given name- Parameters:
name
- role name- Returns:
- wanted role definition
-
removeRole
void removeRole(String strRoleName) throws WorkflowException
Remove an role from the collection- Parameters:
strRoleName
- the name of the role to be removed.- Throws:
WorkflowException
- if the role cannot be found.
-
-