Class RolesImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.RolesImpl
-
- All Implemented Interfaces:
Serializable
,Roles
public class RolesImpl extends Object implements Serializable, Roles
Class implementing the representation of the <roles> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RolesImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete 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
-
addRole
public void addRole(Role role)
Description copied from interface:Roles
Add an role to the collection
-
createRole
public Role createRole()
Description copied from interface:Roles
Create a Role- Specified by:
createRole
in interfaceRoles
- Returns:
- an object implementing Role
-
getRole
public Role getRole(String name)
Description copied from interface:Roles
Get the role definition with given name
-
iterateRole
public Iterator<Role> iterateRole()
Description copied from interface:Roles
Iterate through the Role objects- Specified by:
iterateRole
in interfaceRoles
- Returns:
- an iterator
-
removeRole
public void removeRole(String strRoleName) throws WorkflowException
Description copied from interface:Roles
Remove an role from the collection- Specified by:
removeRole
in interfaceRoles
- Parameters:
strRoleName
- the name of the role to be removed.- Throws:
WorkflowException
- if the role cannot be found.
-
-