BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.beastui.web.controller.GroovyRoutesController Class Reference

Public Member Functions

 GroovyRoutesController ()
 
void setManager (IRouterManager manager)
 
void setAdaptorManager (IBltAdaptorManager adaptormanager)
 
String createRoute (Model model, @RequestParam(value="name", required=false) String name, @RequestParam(value="author", required=false) String author, @RequestParam(value="active", required=false) Boolean active, @RequestParam(value="description", required=false) String description, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="typdef", required=false) String typdef)
 
String showRoute (Model model, @RequestParam(value="name", required=true) String name, @RequestParam(value="author", required=false) String author, @RequestParam(value="active", required=false) Boolean active, @RequestParam(value="description", required=false) String description, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="typdef", required=false) String typdef, @RequestParam(value="submitButton", required=false) String operation)
 

Protected Member Functions

String viewCreateRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String definition, String emessage)
 
String viewShowRoutes (Model model, String emessage)
 
String viewShowRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String definition, String emessage)
 
GroovyRule createRule (String script)
 
String modifyRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String script)
 

Detailed Description

Manages the groovy routes and routing rules.

Author
Anders Henja

Constructor & Destructor Documentation

◆ GroovyRoutesController()

eu.baltrad.beastui.web.controller.GroovyRoutesController.GroovyRoutesController ( )
inline

Default constructor

Member Function Documentation

◆ createRule()

GroovyRule eu.baltrad.beastui.web.controller.GroovyRoutesController.createRule ( String script)
inlineprotected

Creates a rule.

Parameters
scriptthe groovy script
Returns
a groovy rule
Exceptions
RuleExceptionif groovy rule not could be created from script

◆ modifyRoute()

String eu.baltrad.beastui.web.controller.GroovyRoutesController.modifyRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String script )
inlineprotected

Modifies an existing route

Parameters
modelthe model
namethe name of the route definition
authorthe author
activeif route is active or not
descriptionthe description of the route
recipientsthe recipients
scriptthe script
Returns
the redirection string

◆ setAdaptorManager()

void eu.baltrad.beastui.web.controller.GroovyRoutesController.setAdaptorManager ( IBltAdaptorManager adaptormanager)
inline

Sets the adaptor manager

Parameters
adaptormanager

◆ setManager()

void eu.baltrad.beastui.web.controller.GroovyRoutesController.setManager ( IRouterManager manager)
inline

Sets the router manager instance

Parameters
managerthe manager

◆ viewCreateRoute()

String eu.baltrad.beastui.web.controller.GroovyRoutesController.viewCreateRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String definition,
String emessage )
inlineprotected

Shows the createroute view.

Parameters
modelthe model
namethe name
authorthe author
activeif active or not
descriptionthe description
recipientsthe recipients
definitionthe definition
emessagean error message
Returns
"showroute"

◆ viewShowRoute()

String eu.baltrad.beastui.web.controller.GroovyRoutesController.viewShowRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String definition,
String emessage )
inlineprotected

Shows the showroute view.

Parameters
modelthe model
namethe name
authorthe author
activeif active or not
descriptionthe description
recipientsthe recipients
definitionthe definition
emessagean error message
Returns
"showroute"

◆ viewShowRoutes()

String eu.baltrad.beastui.web.controller.GroovyRoutesController.viewShowRoutes ( Model model,
String emessage )
inlineprotected

Shows the routes view

Parameters
modelthe model
emessagethe error message if any
Returns
"routes"

The documentation for this class was generated from the following file: