org.ikasan.framework.web.service
Class TriggerDetailsService

java.lang.Object
  extended by org.ikasan.framework.web.service.TriggerDetailsService

public class TriggerDetailsService
extends Object

The service layer for the trigger details

Author:
Ikasan Development Team

Constructor Summary
TriggerDetailsService(JobAwareFlowEventListener jobAwareFlowEventListener, ModuleService moduleService)
          Constructor
 
Method Summary
 String createTrigger(TriggerDetails triggerDetails, org.springframework.webflow.execution.RequestContext context)
          Create a trigger given details and a context
 TriggerDetails createTriggerDetails(String moduleName, String flowName, String flowElementName, String relationship)
          Create a new Trigger details
 List<String> getFlowElementNames(String moduleName, String flowName)
          Get a list of the flow element names for a flow in a module
 List<String> getJobNames()
          Get a list of the job names
 List<String> getParameterNames(String jobName)
          Get a List of parameter names for a job
static List<String> getRelationships()
          Get the trigger relationships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerDetailsService

public TriggerDetailsService(JobAwareFlowEventListener jobAwareFlowEventListener,
                             ModuleService moduleService)
Constructor

Parameters:
jobAwareFlowEventListener - - The job aware flow event listener
moduleService - - The provider service for the modules
Method Detail

createTriggerDetails

public TriggerDetails createTriggerDetails(String moduleName,
                                           String flowName,
                                           String flowElementName,
                                           String relationship)
Create a new Trigger details

Parameters:
moduleName - - The name of the module
flowName - - The name of the flow
flowElementName - - The name of the flow element
relationship - - The relationship
Returns:
A new TriggerDetails

getJobNames

public List<String> getJobNames()
Get a list of the job names

Returns:
list of job names

getRelationships

public static List<String> getRelationships()
Get the trigger relationships

Returns:
list of trigger relationships

getParameterNames

public List<String> getParameterNames(String jobName)
Get a List of parameter names for a job

Parameters:
jobName - - The job name to get the parameters for
Returns:
list of a parameter names for the job

getFlowElementNames

public List<String> getFlowElementNames(String moduleName,
                                        String flowName)
Get a list of the flow element names for a flow in a module

Parameters:
moduleName - - The name of the module
flowName - - The name of the flow
Returns:
list of flow element names

createTrigger

public String createTrigger(TriggerDetails triggerDetails,
                            org.springframework.webflow.execution.RequestContext context)
Create a trigger given details and a context

Parameters:
triggerDetails - - The trigger details to use
context - - The context to create it it
Returns:
A new Trigger


Copyright © 2007-2011 Ikasan. All Rights Reserved.