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

Public Member Functions

 GoogleMapRoutesController ()
 
void setManager (IRouterManager manager)
 
void setAdaptorManager (IBltAdaptorManager adaptormanager)
 
void setPgfClientHelper (IPgfClientHelper pgfClientHelper)
 
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="area", required=false) String area, @RequestParam(value="areapath", required=false) Boolean useAreaInPath, @RequestParam(value="path", required=false) String path, @RequestParam(value="filterJson", required=false) String filterJson)
 
String showRoute (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="area", required=false) String area, @RequestParam(value="areapath", required=false) Boolean areapath, @RequestParam(value="path", required=false) String path, @RequestParam(value="filterJson", required=false) String filterJson, @RequestParam(value="submitButton", required=false) String operation)
 

Protected Member Functions

String modifyRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String area, Boolean useAreaInPath, String path, String filterJson)
 
GoogleMapRule createRule (String area, boolean useAreaInPath, String path, String jsonFilter)
 
String viewShowRoutes (Model model, String emessage)
 
String viewCreateRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String area, Boolean useAreaInPath, String path, String jsonFilter, String emessage)
 
String viewShowRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, String area, Boolean useAreaInPath, String path, String jsonFilter, String emessage)
 

Detailed Description

Manages the google maps routes and routing rules.

Author
Anders Henja

Constructor & Destructor Documentation

◆ GoogleMapRoutesController()

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

Default constructor

Member Function Documentation

◆ createRoute()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.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="area", required=false) String area,
@RequestParam(value="areapath", required=false) Boolean useAreaInPath,
@RequestParam(value="path", required=false) String path,
@RequestParam(value="filterJson", required=false) String filterJson )
inline

Invoked when creating a route.

Parameters
modelthe model
namethe name of the route to create
authorthe author
activeif active or not
descriptionthe description
recipientsat least one
areathe area identifier
paththe path
Returns

◆ createRule()

GoogleMapRule eu.baltrad.beastui.web.controller.GoogleMapRoutesController.createRule ( String area,
boolean useAreaInPath,
String path,
String jsonFilter )
inlineprotected

Creates a rule.

Parameters
areathe area id
paththe path
Returns
a google map rule
Exceptions
RuleExceptionif the google map rule not could be created

◆ modifyRoute()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.modifyRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String area,
Boolean useAreaInPath,
String path,
String filterJson )
inlineprotected

Modifies the route if possible

Parameters
modelthe model
namethe name of the route
authorthe author
activeif active or not
descriptionthe description
recipientsthe recipients
areathe area
paththe path
Returns
html page directive

◆ setAdaptorManager()

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

Sets the adaptor manager

Parameters
adaptormanager

◆ setManager()

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

Sets the router manager instance

Parameters
managerthe manager

◆ setPgfClientHelper()

void eu.baltrad.beastui.web.controller.GoogleMapRoutesController.setPgfClientHelper ( IPgfClientHelper pgfClientHelper)
inline
Parameters
pgfClientHelperthe pgf client helpler

◆ showRoute()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.showRoute ( 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="area", required=false) String area,
@RequestParam(value="areapath", required=false) Boolean areapath,
@RequestParam(value="path", required=false) String path,
@RequestParam(value="filterJson", required=false) String filterJson,
@RequestParam(value="submitButton", required=false) String operation )
inline

Initiated when showing a route

Parameters
model
name
author
active
description
recipients
area
path
operation
Returns

◆ viewCreateRoute()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.viewCreateRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String area,
Boolean useAreaInPath,
String path,
String jsonFilter,
String emessage )
inlineprotected

Setups the google map create view

Parameters
modelthe model
namethe name of the rule
authorthe authoer
activeif active or not
descriptiondescription about the rule
recipientsthe recipients
areathe area identifier
paththe path
emessage
Returns
googlemaproute_create

◆ viewShowRoute()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.viewShowRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
String area,
Boolean useAreaInPath,
String path,
String jsonFilter,
String emessage )
inlineprotected

The view for showing a gmap route rule

Parameters
modelthe model
namethe name of the rule
authorthe authoer
activeif active or not
descriptiondescription about the rule
recipientsthe recipients
areathe area identifier
paththe path
emessage
Returns
googlemaproute_show

◆ viewShowRoutes()

String eu.baltrad.beastui.web.controller.GoogleMapRoutesController.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: