com.silverpeas.workflow.engine.model
Class RolesImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.model.RolesImpl
All Implemented Interfaces:
Roles, Serializable

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
RolesImpl()
          Constructor
 
Method Summary
 void addRole(Role role)
          Add an role to the collection
 Role createRole()
          Create a Role
 Role getRole(String name)
          Get the role definition with given name
 Role[] getRoles()
          Get the roles definition
 Iterator<Role> iterateRole()
          Iterate through the Role objects
 void removeRole(String strRoleName)
          Remove an role from the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesImpl

public RolesImpl()
Constructor

Method Detail

addRole

public void addRole(Role role)
Description copied from interface: Roles
Add an role to the collection

Specified by:
addRole in interface Roles
Parameters:
role - to be added

createRole

public Role createRole()
Description copied from interface: Roles
Create a Role

Specified by:
createRole in interface Roles
Returns:
an object implementing Role

getRole

public Role getRole(String name)
Description copied from interface: Roles
Get the role definition with given name

Specified by:
getRole in interface Roles
Parameters:
name - role name
Returns:
wanted role definition

getRoles

public Role[] getRoles()
Description copied from interface: Roles
Get the roles definition

Specified by:
getRoles in interface Roles
Returns:
roles definition

iterateRole

public Iterator<Role> iterateRole()
Description copied from interface: Roles
Iterate through the Role objects

Specified by:
iterateRole in interface Roles
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 interface Roles
Parameters:
strRoleName - the name of the role to be removed.
Throws:
WorkflowException - if the role cannot be found.


Copyright © 2016 Silverpeas. All Rights Reserved.