BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.log.controller.BrowseMessagesController Class Reference

Public Member Functions

String processSubmit (ModelMap model, @RequestParam(value="selected_page", required=false) String selectedPage, @RequestParam(value="logger", required=false) String logger, @RequestParam(value="level", required=false) String level, @RequestParam(value="startDate", required=false) String startDate, @RequestParam(value="startHour", required=false) String startHour, @RequestParam(value="startMinutes", required=false) String startMinutes, @RequestParam(value="startSeconds", required=false) String startSeconds, @RequestParam(value="endDate", required=false) String endDate, @RequestParam(value="endHour", required=false) String endHour, @RequestParam(value="endMinutes", required=false) String endMinutes, @RequestParam(value="endSeconds", required=false) String endSeconds, @RequestParam(value="phrase", required=false) String phrase) throws Exception
 
String setupForm (ModelMap model) throws Exception
 
List< String > getLevels ()
 
List< String > getLoggers ()
 
int getMessageBrowserScrollRange ()
 
int getCurrentPage ()
 
void setCurrentPage (int page)
 
void nextPage (LogParameter param) throws Exception
 
void previousPage ()
 
void firstPage ()
 
void lastPage (LogParameter param) throws Exception
 
void setLogManager (LogManager logManager)
 
void setConfigManager (ConfigurationManager configManager)
 

Static Public Attributes

static final int ENTRIES_PER_PAGE = 20
 
static final int SCROLL_RANGE = 11
 

Protected Member Functions

LogParameter createLogParameter (String logger, String level, String startDate, String startHour, String startMinutes, String startSeconds, String endDate, String endHour, String endMinutes, String endSeconds, String phrase)
 
int[] getPages (LogParameter param) throws Exception
 

Detailed Description

Implements functionality allowing to browse and search system messages.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.6.1
Since
0.1.6

Member Function Documentation

◆ firstPage()

void eu.baltrad.dex.log.controller.BrowseMessagesController.firstPage ( )
inline

Sets page number to the first page.

◆ getCurrentPage()

int eu.baltrad.dex.log.controller.BrowseMessagesController.getCurrentPage ( )
inline

Gets current page number.

Returns
Current page number

◆ getLevels()

List< String > eu.baltrad.dex.log.controller.BrowseMessagesController.getLevels ( )
inline

Creates list of levels.

Returns
List of levels

◆ getLoggers()

List< String > eu.baltrad.dex.log.controller.BrowseMessagesController.getLoggers ( )
inline

Creates list of loggers.

Returns
List of loggers

◆ getPages()

int[] eu.baltrad.dex.log.controller.BrowseMessagesController.getPages ( LogParameter param) throws Exception
inlineprotected

Get page numbers for a current set of entries.

Parameters
paramLog parameter
Returns
Numbers of first, last and current page for a log parameter

◆ lastPage()

void eu.baltrad.dex.log.controller.BrowseMessagesController.lastPage ( LogParameter param) throws Exception
inline

Sets page number to the last page.

Parameters
paramLog parameter

◆ nextPage()

void eu.baltrad.dex.log.controller.BrowseMessagesController.nextPage ( LogParameter param) throws Exception
inline

Sets page number to the next page number.

Parameters
paramLog parameter

◆ previousPage()

void eu.baltrad.dex.log.controller.BrowseMessagesController.previousPage ( )
inline

Sets page number to the previous page number.

◆ processSubmit()

String eu.baltrad.dex.log.controller.BrowseMessagesController.processSubmit ( ModelMap model,
@RequestParam(value="selected_page", required=false) String selectedPage,
@RequestParam(value="logger", required=false) String logger,
@RequestParam(value="level", required=false) String level,
@RequestParam(value="startDate", required=false) String startDate,
@RequestParam(value="startHour", required=false) String startHour,
@RequestParam(value="startMinutes", required=false) String startMinutes,
@RequestParam(value="startSeconds", required=false) String startSeconds,
@RequestParam(value="endDate", required=false) String endDate,
@RequestParam(value="endHour", required=false) String endHour,
@RequestParam(value="endMinutes", required=false) String endMinutes,
@RequestParam(value="endSeconds", required=false) String endSeconds,
@RequestParam(value="phrase", required=false) String phrase ) throws Exception
inline

Process form submission.

Parameters
modelModel map
selectedPageSelected page
loggerLogger name
levelMessage level
startDateStart date
startHourStart hour
startMinutesStart minutes
startSecondsStart seconds
endDateEnd date
endHourEnd hour
endMinutesEnd minutes
endSecondsEnd seconds
phraseMessage phrase
Returns
View name

◆ setConfigManager()

void eu.baltrad.dex.log.controller.BrowseMessagesController.setConfigManager ( ConfigurationManager configManager)
inline
Parameters
configManagerthe configManager to set

◆ setCurrentPage()

void eu.baltrad.dex.log.controller.BrowseMessagesController.setCurrentPage ( int page)
inline

Sets current page number.

Parameters
pageCurrent page number to set

◆ setLogManager()

void eu.baltrad.dex.log.controller.BrowseMessagesController.setLogManager ( LogManager logManager)
inline
Parameters
logManagerthe logManager to set

◆ setupForm()

String eu.baltrad.dex.log.controller.BrowseMessagesController.setupForm ( ModelMap model) throws Exception
inline

Set up form.

Parameters
modelModel map
Returns
View name

Member Data Documentation

◆ ENTRIES_PER_PAGE

final int eu.baltrad.dex.log.controller.BrowseMessagesController.ENTRIES_PER_PAGE = 20
static

Number of log entries per page

◆ SCROLL_RANGE

final int eu.baltrad.dex.log.controller.BrowseMessagesController.SCROLL_RANGE = 11
static

Number of pages in the scroll bar, must be an odd number >= 3


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