org.ikasan.framework.web.controller
Class InitiatorsController

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

@Controller
@SessionAttributes(value="payloadCommand")
public class InitiatorsController
extends Object

Controller for interaction with the initiators from a client.

Author:
Ikasan Development Team

Constructor Summary
InitiatorsController(ModuleService moduleService)
          Constructor
 
Method Summary
 String controlInitiator(String moduleName, String initiatorName, String initiatorAction, String startupType, String startupComment)
          Control the initiator (stop, start etc)
 String submitSimpleInitiator(org.springframework.ui.ModelMap model, PayloadCommand payloadCommand)
          Submit a SimpleInitiator's form
 String viewInitiator(String moduleName, String initiatorName, org.springframework.ui.ModelMap model)
          View the initiator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitiatorsController

public InitiatorsController(ModuleService moduleService)
Constructor

Parameters:
moduleService - - The module service
Method Detail

viewInitiator

@RequestMapping(value="/modules/viewInitiator.htm")
public String viewInitiator(@RequestParam(value="moduleName")
                                           String moduleName,
                                           @RequestParam(value="initiatorName")
                                           String initiatorName,
                                           org.springframework.ui.ModelMap model)
                     throws org.quartz.SchedulerException
View the initiator

Parameters:
moduleName - - The name of the module
initiatorName - - The name of the initiator
model - - The model
Returns:
"modules/viewInitiator"
Throws:
org.quartz.SchedulerException - - Exception if there was a scheduler problem

submitSimpleInitiator

@RequestMapping(value="/modules/simpleInitiatorPost.htm",
                method=POST)
public String submitSimpleInitiator(org.springframework.ui.ModelMap model,
                                                   @ModelAttribute(value="payloadCommand")
                                                   PayloadCommand payloadCommand)
                             throws org.quartz.SchedulerException
Submit a SimpleInitiator's form

Parameters:
payloadCommand - - The command to execute
model - - The model
Returns:
"modules/viewInitiator"
Throws:
org.quartz.SchedulerException - - Exception if there was a scheduler problem

controlInitiator

@RequestMapping(value="/modules/initiator.htm",
                method=POST)
public String controlInitiator(@RequestParam(value="moduleName")
                                              String moduleName,
                                              @RequestParam(value="initiatorName")
                                              String initiatorName,
                                              @RequestParam(value="initiatorAction",required=false)
                                              String initiatorAction,
                                              @RequestParam(value="startupType",required=false)
                                              String startupType,
                                              @RequestParam(value="startupComment",required=false)
                                              String startupComment)
Control the initiator (stop, start etc)

Parameters:
moduleName - The name of the module
initiatorName - - The name of the initiator
initiatorAction - - The controlling action for the initiator
Returns:
"modules/viewModule"
Throws:
Exception - - Exception if we cannot control the initiator


Copyright © 2007-2011 Ikasan. All Rights Reserved.