org.ow2.bonita.definition
Class InstanceInitiator

java.lang.Object
  extended by org.ow2.bonita.definition.InstanceInitiator
All Implemented Interfaces:
RoleMapper

public class InstanceInitiator
extends java.lang.Object
implements RoleMapper

Specific class for Role Mapper getting the initiator of the instance.

Author:
Guillaume Porcher

Constructor Summary
InstanceInitiator()
           
 
Method Summary
 java.util.Set<java.lang.String> searchMembers(QueryAPIAccessor accessor, org.ow2.bonita.facade.uuid.ProcessInstanceUUID instanceUUID, java.lang.String roleName)
          This method of the interface is intended to return an unsorted set of users that match the specified role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceInitiator

public InstanceInitiator()
Method Detail

searchMembers

public java.util.Set<java.lang.String> searchMembers(QueryAPIAccessor accessor,
                                                     org.ow2.bonita.facade.uuid.ProcessInstanceUUID instanceUUID,
                                                     java.lang.String roleName)
                                              throws java.lang.Exception
Description copied from interface: RoleMapper
This method of the interface is intended to return an unsorted set of users that match the specified role. good practice is to call an identity module (ie. user data base, Ldap server). Returned users become the candidates to execute the task.

Specified by:
searchMembers in interface RoleMapper
Parameters:
accessor - The QueryAPIAccessor interface to access: QueryRuntimeAPI or QueryDefinitionAPI.
instanceUUID - Id of the instance.
roleName - Value of Id attribute of the Participant element (with role type) defined into the xpdl definition.
Returns:
The set of unordered list of user Id that match the role in the user base.
Throws:
java.lang.Exception - If an Exception has occurred.


Copyright © 2009 OW2 Consortium. All Rights Reserved.