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

Public Member Functions

 SupervisorController ()
 
void setSupervisor (ISystemSupervisor supervisor)
 
void setHostManager (IHostFilterManager hostManager)
 
void setUserManager (IUserManager userManager)
 
String supervisorSettings (Model model, HttpServletRequest request)
 
String addSupervisorSetting (Model model, @RequestParam(value="filter", required=false) String filter, HttpServletRequest request)
 
String removeSupervisorSetting (Model model, @RequestParam(value="filter", required=false) String filter, HttpServletRequest request)
 
void supervisorStatus ( @RequestParam(value="format", required=false) String format, @RequestParam(value="reporters", required=false) String reportersstr, @RequestParam(value="sources", required=false) String sources, @RequestParam(value="areas", required=false) String areas, @RequestParam(value="peers", required=false) String peers, @RequestParam(value="objects", required=false) String objects, @RequestParam(value="minutes", required=false) String minutes, HttpServletRequest request, HttpServletResponse response)
 

Protected Member Functions

Map< String, Object > createMap (String sources, String areas, String peers, String objects, String minutes)
 
String createValueString (String reporter, String sources, String areas, String peers, String objects, String minutes, Map< String, String > optional)
 
XmlSystemStatusGenerator getXmlGenerator ()
 
boolean isAuthorized (HttpServletRequest request)
 

Detailed Description

Controller providing supervisor status information.

Author
Anders Henja

Constructor & Destructor Documentation

◆ SupervisorController()

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

Default constructor

Member Function Documentation

◆ createMap()

Map< String, Object > eu.baltrad.beastui.web.controller.SupervisorController.createMap ( String sources,
String areas,
String peers,
String objects,
String minutes )
inlineprotected

Creates a hash map to be used for passing values to the supervisor

Parameters
sourcesthe sources
areasthe areas
peersthe peers
objectsthe objects
minutesthe minutes
Returns
the map

◆ createValueString()

String eu.baltrad.beastui.web.controller.SupervisorController.createValueString ( String reporter,
String sources,
String areas,
String peers,
String objects,
String minutes,
Map< String, String > optional )
inlineprotected

Creates the value string that should exist in the xml report

Parameters
reporterthe reporter
sourcesthe sources if any
areasthe areas if any
peersthe peers if any
objectsthe objects if any
minutesthe minutes if any
Returns
the string

◆ getXmlGenerator()

XmlSystemStatusGenerator eu.baltrad.beastui.web.controller.SupervisorController.getXmlGenerator ( )
inlineprotected
Returns
a fresh xml generator instance

◆ isAuthorized()

boolean eu.baltrad.beastui.web.controller.SupervisorController.isAuthorized ( HttpServletRequest request)
inlineprotected

Returns if this request is allowed to be processed.

Parameters
requestthe request
Returns
true if this request can be handled.

◆ supervisorStatus()

void eu.baltrad.beastui.web.controller.SupervisorController.supervisorStatus ( @RequestParam(value="format", required=false) String format,
@RequestParam(value="reporters", required=false) String reportersstr,
@RequestParam(value="sources", required=false) String sources,
@RequestParam(value="areas", required=false) String areas,
@RequestParam(value="peers", required=false) String peers,
@RequestParam(value="objects", required=false) String objects,
@RequestParam(value="minutes", required=false) String minutes,
HttpServletRequest request,
HttpServletResponse response )
inline

The actual supervisor.htm interface for producing information to the user

Parameters
format
system
radars
request
response

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