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

Classes

enum  SubmitOperation
 

Public Member Functions

 Site2dRoutesController ()
 
void setManager (IRouterManager manager)
 
void setAdaptorManager (IBltAdaptorManager adaptormanager)
 
void setRuleUtilities (IRuleUtilities utils)
 
void setAnomalyDetectorManager (IAnomalyDetectorManager anomalymanager)
 
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="byscan", required=false) Boolean byscan, @RequestParam(value="method", required=false) String method, @RequestParam(value="prodpar", required=false) String prodpar, @RequestParam(value="areaid", required=false) String areaid, @RequestParam(value="interval", required=false) Integer interval, @RequestParam(value="applygra", required=false) Boolean applygra, @RequestParam(value="ZR_A", required=false) Double ZR_A, @RequestParam(value="ZR_b", required=false) Double ZR_b, @RequestParam(value="ignore_malfunc", required=false) Boolean ignore_malfunc, @RequestParam(value="ctfilter", required=false) Boolean ctfilter, @RequestParam(value="pcsid", required=false) String pcsid, @RequestParam(value="xscale", required=false) Double xscale, @RequestParam(value="yscale", required=false) Double yscale, @RequestParam(value="sources", required=false) List< String > sources, @RequestParam(value="detectors", required=false) List< String > detectors, @RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode, @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="byscan", required=false) Boolean byscan, @RequestParam(value="method", required=false) String method, @RequestParam(value="prodpar", required=false) String prodpar, @RequestParam(value="areaid", required=false) String areaid, @RequestParam(value="interval", required=false) Integer interval, @RequestParam(value="applygra", required=false) Boolean applygra, @RequestParam(value="ZR_A", required=false) Double ZR_A, @RequestParam(value="ZR_b", required=false) Double ZR_b, @RequestParam(value="ignore_malfunc", required=false) Boolean ignore_malfunc, @RequestParam(value="ctfilter", required=false) Boolean ctfilter, @RequestParam(value="pcsid", required=false) String pcsid, @RequestParam(value="xscale", required=false) Double xscale, @RequestParam(value="yscale", required=false) Double yscale, @RequestParam(value="sources", required=false) List< String > sources, @RequestParam(value="detectors", required=false) List< String > detectors, @RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode, @RequestParam(value="filterJson", required=false) String filterJson, @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, Boolean byscan, String method, String prodpar, String areaid, Integer interval, Boolean applygra, Double ZR_A, Double ZR_b, Boolean ignore_malfunc, Boolean ctfilter, String pcsid, Double xscale, Double yscale, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter, String emessage)
 
String viewShowRoute (Model model, String name, String author, Boolean active, String description, List< String > recipients, Boolean byscan, String method, String prodpar, String areaid, Integer interval, Boolean applygra, Double ZR_A, Double ZR_b, Boolean ignore_malfunc, Boolean ctfilter, String pcsid, Double xscale, Double yscale, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter, String emessage)
 
List< AnomalyDetector > createOrderedDetectorList (List< AnomalyDetector > detectors, List< String > selectedDetectors)
 
String viewShowRoutes (Model model, String emessage)
 
String modifyRoute (Model model, String name, String author, Boolean active, String description, Boolean byscan, String method, String prodpar, List< String > recipients, String area, Integer interval, Boolean applygra, Double ZR_A, Double ZR_b, Boolean ignore_malfunc, Boolean ctfilter, String pcsid, Double xscale, Double yscale, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter)
 
List< Integer > getIntervals ()
 
Site2DRule createRule (String areaid, int interval, List< String > sources, List< String > detectors, int quality_control_mode, boolean byscan, String method, String prodpar, boolean applygra, double ZR_A, double ZR_b, boolean ignore_malfunc, boolean ctfilter, String pcsid, double xscale, double yscale, String jsonFilter)
 

Detailed Description

Manages the site2d routes and routing rules. Both scan based site2d and volume based site2d products are possible to generate but it is not possible to combine them both.

Author
Anders Henja

Constructor & Destructor Documentation

◆ Site2dRoutesController()

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

Default constructor

Member Function Documentation

◆ createOrderedDetectorList()

List< AnomalyDetector > eu.baltrad.beastui.web.controller.Site2dRoutesController.createOrderedDetectorList ( List< AnomalyDetector > detectors,
List< String > selectedDetectors )
inlineprotected

Organizes so that the selected detectors comes in order in the list of anomaly detectors. We are doing it like this since we don't want to have 2 different select lists where one contains the "not selected" and another containing the selected.

Parameters
detectorsall anomaly detectors
selectedDetectorsthe selected detectors
Returns
a reorganized list of detectors

◆ createRoute()

String eu.baltrad.beastui.web.controller.Site2dRoutesController.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="byscan", required=false) Boolean byscan,
@RequestParam(value="method", required=false) String method,
@RequestParam(value="prodpar", required=false) String prodpar,
@RequestParam(value="areaid", required=false) String areaid,
@RequestParam(value="interval", required=false) Integer interval,
@RequestParam(value="applygra", required=false) Boolean applygra,
@RequestParam(value="ZR_A", required=false) Double ZR_A,
@RequestParam(value="ZR_b", required=false) Double ZR_b,
@RequestParam(value="ignore_malfunc", required=false) Boolean ignore_malfunc,
@RequestParam(value="ctfilter", required=false) Boolean ctfilter,
@RequestParam(value="pcsid", required=false) String pcsid,
@RequestParam(value="xscale", required=false) Double xscale,
@RequestParam(value="yscale", required=false) Double yscale,
@RequestParam(value="sources", required=false) List< String > sources,
@RequestParam(value="detectors", required=false) List< String > detectors,
@RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode,
@RequestParam(value="filterJson", required=false) String filterJson )
inline

Handles create route requests

Parameters
modelthe model
namethe name of the route
authorthe author
activeif route is active or not
descriptionthe description of this route
recipientsthe recipients
byscanif composite should affect scans or volumes
areaidthe composite area to be generated
intervalthe interval
applygraif gra correction should be applied or not
ZR_Athe ZR A coefficient to use when converting between reflectivity and MM/H
ZR_bthe ZR b coefficient to use when converting between reflectivity and MM/H
ignore_malfuncif how/malfunc should be used when determining scans to be included
ctfilterif ct-filtering should be performed or not
sourcesthe sources this rule should affect
detectorsthe detectors that should be used for this rule
Returns
a jsp page string or redirect

◆ modifyRoute()

String eu.baltrad.beastui.web.controller.Site2dRoutesController.modifyRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Boolean byscan,
String method,
String prodpar,
List< String > recipients,
String area,
Integer interval,
Boolean applygra,
Double ZR_A,
Double ZR_b,
Boolean ignore_malfunc,
Boolean ctfilter,
String pcsid,
Double xscale,
Double yscale,
List< String > sources,
List< String > detectors,
Integer quality_control_mode,
String jsonFilter )
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.Site2dRoutesController.setAdaptorManager ( IBltAdaptorManager adaptormanager)
inline
Parameters
adaptormanagerthe adaptor manager to set

◆ setAnomalyDetectorManager()

void eu.baltrad.beastui.web.controller.Site2dRoutesController.setAnomalyDetectorManager ( IAnomalyDetectorManager anomalymanager)
inline
Parameters
anomalymanagerthe anomaly manager to set

◆ setManager()

void eu.baltrad.beastui.web.controller.Site2dRoutesController.setManager ( IRouterManager manager)
inline
Parameters
managerthe manager to set

◆ setPgfClientHelper()

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

◆ setRuleUtilities()

void eu.baltrad.beastui.web.controller.Site2dRoutesController.setRuleUtilities ( IRuleUtilities utils)
inline
Parameters
templatethe jdbc operations to set

◆ showRoute()

String eu.baltrad.beastui.web.controller.Site2dRoutesController.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="byscan", required=false) Boolean byscan,
@RequestParam(value="method", required=false) String method,
@RequestParam(value="prodpar", required=false) String prodpar,
@RequestParam(value="areaid", required=false) String areaid,
@RequestParam(value="interval", required=false) Integer interval,
@RequestParam(value="applygra", required=false) Boolean applygra,
@RequestParam(value="ZR_A", required=false) Double ZR_A,
@RequestParam(value="ZR_b", required=false) Double ZR_b,
@RequestParam(value="ignore_malfunc", required=false) Boolean ignore_malfunc,
@RequestParam(value="ctfilter", required=false) Boolean ctfilter,
@RequestParam(value="pcsid", required=false) String pcsid,
@RequestParam(value="xscale", required=false) Double xscale,
@RequestParam(value="yscale", required=false) Double yscale,
@RequestParam(value="sources", required=false) List< String > sources,
@RequestParam(value="detectors", required=false) List< String > detectors,
@RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode,
@RequestParam(value="filterJson", required=false) String filterJson,
@RequestParam(value="submitButton", required=false) String operation )
inline

Supports modification of a routing rule

Parameters
modelthe model
namethe name of the route
authorthe author
activeif route is active or not
descriptionthe description of this route
recipientsthe recipients
byscanif composite should affect scans or volumes
areaidthe composite area to be generated
intervalthe interval
sourcesthe sources this rule should affect
Returns
a jsp page string or redirect

◆ viewCreateRoute()

String eu.baltrad.beastui.web.controller.Site2dRoutesController.viewCreateRoute ( Model model,
String name,
String author,
Boolean active,
String description,
List< String > recipients,
Boolean byscan,
String method,
String prodpar,
String areaid,
Integer interval,
Boolean applygra,
Double ZR_A,
Double ZR_b,
Boolean ignore_malfunc,
Boolean ctfilter,
String pcsid,
Double xscale,
Double yscale,
List< String > sources,
List< String > detectors,
Integer quality_control_mode,
String jsonFilter,
String emessage )
inlineprotected

Sets up the model for directing to the site2d create page page

Parameters
modelthe model
namethe name of the route
authorthe author
activeif active or not
descriptionthe description
recipientsthe recipients
areaidthe area for the composite
intervalthe interval
sourcesthe sources
emessageif a message should be shown
Returns
compositeroute_create

◆ viewShowRoutes()

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