org.ikasan.framework.web.controller
Class ModulesController

java.lang.Object
  extended by org.ikasan.framework.web.controller.ModulesController

@Controller
@RequestMapping(value="/modules/*.htm")
public class ModulesController
extends Object

Controller class for the web-console dealing with modules

Author:
Ikasan Development Team

Constructor Summary
ModulesController(ModuleService moduleService)
          Constructor
 
Method Summary
 String deleteTrigger(String moduleName, String flowName, String flowElementName, String triggerId, org.springframework.ui.ModelMap model)
          Delete a wiretap trigger
 String listModules(org.springframework.ui.ModelMap model)
          List the modules given a model (map)
 void setJobAwareFlowEventListener(JobAwareFlowEventListener jobAwareFlowEventListener)
          Set the job aware flow event listener
 String viewFlow(String moduleName, String flowName, org.springframework.ui.ModelMap model)
          View the flow
 String viewFlowElement(String moduleName, String flowName, String flowElementName, org.springframework.ui.ModelMap model)
          View the flow element
 String viewModule(String moduleName, org.springframework.ui.ModelMap model)
          View the module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModulesController

public ModulesController(ModuleService moduleService)
Constructor

Parameters:
moduleService - - The module service
Method Detail

listModules

@RequestMapping(value="list.htm")
public String listModules(org.springframework.ui.ModelMap model)
List the modules given a model (map)

Parameters:
model - - The model (map)
Returns:
"modules/modules"

viewModule

@RequestMapping(value="view.htm")
public String viewModule(@RequestParam(value="moduleName")
                                        String moduleName,
                                        org.springframework.ui.ModelMap model)
View the module

Parameters:
moduleName - - The name of the module to view
model - - The model
Returns:
- "modules/viewModule"

viewFlow

@RequestMapping(value="viewFlow.htm")
public String viewFlow(@RequestParam(value="moduleName")
                                      String moduleName,
                                      @RequestParam(value="flowName")
                                      String flowName,
                                      org.springframework.ui.ModelMap model)
View the flow

Parameters:
moduleName - - The name of the module
flowName - - The name of the flow
model - - The model
Returns:
"modules/viewFlow"

viewFlowElement

@RequestMapping(value="viewFlowElement.htm")
public String viewFlowElement(@RequestParam(value="moduleName")
                                             String moduleName,
                                             @RequestParam(value="flowName")
                                             String flowName,
                                             @RequestParam(value="flowElementName")
                                             String flowElementName,
                                             org.springframework.ui.ModelMap model)
View the flow element

Parameters:
moduleName - - The name of the module
flowName - - The name of the flow
flowElementName - - The name of the flow element
model - - The model
Returns:
"modules/viewFlowElement"

deleteTrigger

@RequestMapping(value="deleteTrigger.htm")
public String deleteTrigger(@RequestParam(value="moduleName")
                                           String moduleName,
                                           @RequestParam(value="flowName")
                                           String flowName,
                                           @RequestParam(value="flowElementName")
                                           String flowElementName,
                                           @RequestParam(value="triggerId")
                                           String triggerId,
                                           org.springframework.ui.ModelMap model)
                     throws Exception
Delete a wiretap trigger

Parameters:
moduleName - - The name of the module
flowName - - The name of the flow
flowElementName - - The name of the flow element
triggerId - - The id of the trigger to delete
model - - The model
Returns:
"modules/viewFlowElement"
Throws:
Exception - - Exception if we fail to delete the trigger

setJobAwareFlowEventListener

public void setJobAwareFlowEventListener(JobAwareFlowEventListener jobAwareFlowEventListener)
Set the job aware flow event listener

Parameters:
jobAwareFlowEventListener - - The job aware flow event listener to set


Copyright © 2007-2011 Ikasan. All Rights Reserved.