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

Classes

enum  Operation
 

Public Member Functions

void setManager (IRouterManager manager)
 
String testRoute (Model model, @RequestParam(value="jsonTestFilter", required=false) String jsonTestFilter, @RequestParam(value="testType", required=false) String testType, @RequestParam(value="destination", required=false) String destination, @RequestParam(value="namingTemplate", required=false) String namingTemplate, @RequestParam(value="datafile", required=false) MultipartFile datafile)
 
String distributionRoute (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="destination", required=false) String destination, @RequestParam(value="namingTemplate", required=false) String namingTemplate, @RequestParam(value="filterJson", required=false) String filterJson, @RequestParam(value="datafile", required=false) MultipartFile datafile, @RequestParam(value="submitButton", required=false) String opString)
 
void setDatabase (Database database)
 

Protected Member Functions

void copyInputStreamToFile (InputStream src, File dst)
 
String addRoute (Model model, RouteDefinition routeDef, String destination, String namingTemplate, String filterJson)
 
String deleteRoute (Model model, String name)
 
String modifyRoute (Model model, RouteDefinition routeDef, String destination, String namingTemplate, String filterJson)
 
String viewShowRoute (Model model, RouteDefinition route, String destination, String namingTemplate, String filterJson, String emessage)
 
String viewShowRoutes (Model model, String emessage)
 
RouteDefinition createRoute (String name, String author, Boolean active, String description)
 
DistributionRule createRule (String destination, String namingTemplate, String filterJson)
 
void validateDefinition (RouteDefinition route)
 
void setObjectMapper (ObjectMapper mapper)
 
void setMetadataMatcher (MetadataMatcher matcher)
 

Protected Attributes

Database bdb = null
 

Detailed Description

Manages DistributionRule instances

Member Function Documentation

◆ createRoute()

RouteDefinition eu.baltrad.beastui.web.controller.DistributionRoutesController.createRoute ( String name,
String author,
Boolean active,
String description )
inlineprotected

create a RouteDefinition instance.

Parameters
namename of the route
authorauthor of the route
activeis the route active
descriptiondescription of the route

◆ createRule()

DistributionRule eu.baltrad.beastui.web.controller.DistributionRoutesController.createRule ( String destination,
String namingTemplate,
String filterJson )
inlineprotected

create a DistributionRule instance.

Parameters
destinationthe destination URI
filterJsonJSON string of the filter
Exceptions
RuleExceptionif the rule can't be created
Returns
the created instance

◆ setManager()

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

Set the router manager instance

◆ viewShowRoute()

String eu.baltrad.beastui.web.controller.DistributionRoutesController.viewShowRoute ( Model model,
RouteDefinition route,
String destination,
String namingTemplate,
String filterJson,
String emessage )
inlineprotected

Show the distributionroute view

◆ viewShowRoutes()

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

Shows the routes view

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

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