public abstract class BaseMoskitoUIAction extends Object implements net.anotheria.maf.action.Action
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_IS_NAV_MENU_COLLAPSED
Attribute name for indication if menu navigation is collapsed or not.
|
static List<UnitBean> |
AVAILABLE_UNITS_LIST
List of the available units.
|
static String |
BEAN_AUTORELOAD
Currently set autoreload interval.
|
static String |
BEAN_CHART_ENGINE
Bean name for the session bean (been in http session) for chart engine selection.
|
static String |
BEAN_INTERVAL
Bean name for currently selected interval.
|
static String |
BEAN_SORT_TYPE_PREFIX
Stored sort type bean prefix name.
|
static String |
BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
Prefix for producer sort type session storage.
|
static String |
BEAN_UNIT
Bean name for currently selected unit.
|
static String |
DEFAULT_FORWARD
Default forward parameter if no forward has been specified.
|
static String |
DEFAULT_INTERVAL
Default interval name.
|
static String |
DEFAULT_TITLE
Default title string for the web page <title$gt; element.
|
static String |
DEFAULT_UNIT
Default unit.
|
static UnitBean |
DEFAULT_UNIT_BEAN
Default unit.
|
static String |
PARAM_CATEGORY
Parameter for producer category.
|
static String |
PARAM_CHART_ENGINE
Parameter name for the chart engine selection parameter.
|
static String |
PARAM_FILTER_ZERO
If set (to true) the zero request values will be removed from producer presentation.
|
static String |
PARAM_FORWARD
Constant for the forward parameter.
|
static String |
PARAM_ID
General id parameter, for example for accumulators or thresholds.
|
static String |
PARAM_INTERVAL
Parameter name for the interval.
|
static String |
PARAM_PRODUCER_ID
Parameter producer id.
|
static String |
PARAM_RELOAD_INTERVAL
Reload interval.
|
static String |
PARAM_SORT_BY
SortBy usually accompanied by an integer that defines the sort method.
|
static String |
PARAM_SORT_ORDER
Sort order, ASC or DESC.
|
static String |
PARAM_SUBSYSTEM
Parameter for producer subsystem.
|
static String |
PARAM_UNIT
Param for unit.
|
static char[] |
WHITESPACES |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseMoskitoUIAction()
Creates a new action.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exportSupported()
Override and return true if your action supports csv/xml/json export.
|
protected AccumulatorAPI |
getAccumulatorAPI() |
protected AdditionalFunctionalityAPI |
getAdditionalFunctionalityAPI() |
protected String |
getCurrentInterval(javax.servlet.http.HttpServletRequest req)
Returns the currently selected interval, either as parameter or from session.
|
protected String |
getCurrentInterval(javax.servlet.http.HttpServletRequest req,
boolean saveToSession)
Returns the currently selected interval, either as parameter or from session.
|
protected abstract NaviItem |
getCurrentNaviItem()
Returns the highlighted navigation item.
|
protected NaviItem |
getCurrentSubNaviItem()
Returns the highlighted sub navigation item, if subnavigation is active.
|
protected UnitBean |
getCurrentUnit(javax.servlet.http.HttpServletRequest req)
Returns the currently selected unit either from request or session.
|
protected UnitBean |
getCurrentUnit(javax.servlet.http.HttpServletRequest req,
boolean saveToSession)
Returns the currently selected unit either from request or session.
|
protected DashboardAPI |
getDashboardAPI() |
protected static IDecoratorRegistry |
getDecoratorRegistry() |
protected String |
getForward(javax.servlet.http.HttpServletRequest req)
Returns the specified forward.
|
protected GaugeAPI |
getGaugeAPI() |
protected JourneyAPI |
getJourneyAPI() |
protected abstract String |
getLinkToCurrentPage(javax.servlet.http.HttpServletRequest req)
Returns the link to the current page.
|
protected String |
getPageName() |
protected ProducerAPI |
getProducerAPI() |
String |
getProducerId() |
String |
getSubsystem() |
protected String |
getSubTitle() |
protected ThresholdAPI |
getThresholdAPI() |
void |
postProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
void |
preProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected String |
rebuildQueryStringWithoutParameter(String source,
String... params)
Rebuilds query string from source.
|
public static final String PARAM_FORWARD
public static final String DEFAULT_FORWARD
public static final String BEAN_INTERVAL
public static final String PARAM_INTERVAL
public static final String DEFAULT_INTERVAL
public static final String BEAN_UNIT
public static final String PARAM_UNIT
public static final String DEFAULT_UNIT
public static final String PARAM_ID
public static final String PARAM_PRODUCER_ID
public static final String PARAM_CATEGORY
public static final String PARAM_SUBSYSTEM
public static final String PARAM_SORT_BY
public static final String PARAM_SORT_ORDER
public static final String PARAM_FILTER_ZERO
public static final String PARAM_RELOAD_INTERVAL
public static final String BEAN_AUTORELOAD
public static final String PARAM_CHART_ENGINE
public static final String ATTR_IS_NAV_MENU_COLLAPSED
public static final String BEAN_CHART_ENGINE
public static final String DEFAULT_TITLE
public static final UnitBean DEFAULT_UNIT_BEAN
public static final List<UnitBean> AVAILABLE_UNITS_LIST
public static final String BEAN_SORT_TYPE_PREFIX
public static final String BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
public static char[] WHITESPACES
public String getSubsystem()
public String getProducerId()
protected String getForward(javax.servlet.http.HttpServletRequest req)
req - protected String getCurrentInterval(javax.servlet.http.HttpServletRequest req)
req - protected String getCurrentInterval(javax.servlet.http.HttpServletRequest req, boolean saveToSession)
req - saveToSession - - if true the value from request will be stored to session.protected UnitBean getCurrentUnit(javax.servlet.http.HttpServletRequest req)
req - protected UnitBean getCurrentUnit(javax.servlet.http.HttpServletRequest req, boolean saveToSession)
req - saveToSession - - if true the request parameter will be saved into session.public void preProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws Exception
preProcess in interface net.anotheria.maf.action.ActionExceptionpublic void postProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws Exception
postProcess in interface net.anotheria.maf.action.ActionExceptionprotected abstract String getLinkToCurrentPage(javax.servlet.http.HttpServletRequest req)
req - protected static IDecoratorRegistry getDecoratorRegistry()
protected abstract NaviItem getCurrentNaviItem()
protected NaviItem getCurrentSubNaviItem()
protected String rebuildQueryStringWithoutParameter(String source, String... params)
source - original source.params - parameters that should be included in the query string.protected String getPageName()
protected ProducerAPI getProducerAPI()
protected ThresholdAPI getThresholdAPI()
protected JourneyAPI getJourneyAPI()
protected AccumulatorAPI getAccumulatorAPI()
protected GaugeAPI getGaugeAPI()
protected AdditionalFunctionalityAPI getAdditionalFunctionalityAPI()
protected DashboardAPI getDashboardAPI()
protected String getSubTitle()
protected boolean exportSupported()
Copyright © 2010-2015 anotheria.net. All Rights Reserved.