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 voidaddRole(Role role)Add an role to the collectionRolecreateRole()Create a RoleRolegetRole(String name)Get the role definition with given nameRole[]getRoles()Get the roles definitionIterator<Role>iterateRole()Iterate through the Role objectsvoidremoveRole(String strRoleName)Remove an role from the collection
-
-
-
Method Detail
-
addRole
public void addRole(Role role)
Description copied from interface:RolesAdd an role to the collection
-
createRole
public Role createRole()
Description copied from interface:RolesCreate a Role- Specified by:
createRolein interfaceRoles- Returns:
- an object implementing Role
-
getRole
public Role getRole(String name)
Description copied from interface:RolesGet the role definition with given name
-
iterateRole
public Iterator<Role> iterateRole()
Description copied from interface:RolesIterate through the Role objects- Specified by:
iterateRolein interfaceRoles- Returns:
- an iterator
-
removeRole
public void removeRole(String strRoleName) throws WorkflowException
Description copied from interface:RolesRemove an role from the collection- Specified by:
removeRolein interfaceRoles- Parameters:
strRoleName- the name of the role to be removed.- Throws:
WorkflowException- if the role cannot be found.
-
-