public abstract class BaseMoskitoUIAction
extends java.lang.Object
implements net.anotheria.maf.action.Action
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_IS_NAV_MENU_COLLAPSED
Attribute name for indication if menu navigation is collapsed or not.
|
static java.util.List<UnitBean> |
AVAILABLE_UNITS_LIST
List of the available units.
|
static java.lang.String |
BEAN_AUTORELOAD
Currently set autoreload interval.
|
static java.lang.String |
BEAN_INTERVAL
Bean name for currently selected interval.
|
static java.lang.String |
BEAN_SORT_TYPE_PREFIX
Stored sort type bean prefix name.
|
static java.lang.String |
BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
Prefix for producer sort type session storage.
|
static java.lang.String |
BEAN_UNIT
Bean name for currently selected unit.
|
static java.lang.String |
CUMULATED_STAT_NAME_VALUE
Cumulated caption value.
|
static java.lang.String |
DEFAULT_FORWARD
Default forward parameter if no forward has been specified.
|
static java.lang.String |
DEFAULT_INTERVAL
Default interval name.
|
static java.lang.String |
DEFAULT_TITLE
Default title string for the web page <title$gt; element.
|
static java.lang.String |
DEFAULT_UNIT
Default unit.
|
static UnitBean |
DEFAULT_UNIT_BEAN
Default unit.
|
static java.lang.String |
PARAM_CATEGORY
Parameter for producer category.
|
static java.lang.String |
PARAM_DECORATOR
Parameter for producer's decorator.
|
static java.lang.String |
PARAM_FILTER_ZERO
If set (to true) the zero request values will be removed from producer presentation.
|
static java.lang.String |
PARAM_FILTERING
If set to off the configured filtering of producer names will be switched off.
|
static java.lang.String |
PARAM_FORWARD
Constant for the forward parameter.
|
static java.lang.String |
PARAM_ID
General id parameter, for example for accumulators or thresholds.
|
static java.lang.String |
PARAM_INTERVAL
Parameter name for the interval.
|
static java.lang.String |
PARAM_PRODUCER_ID
Parameter producer id.
|
static java.lang.String |
PARAM_RELOAD_INTERVAL
Reload interval.
|
static java.lang.String |
PARAM_SORT_BY
SortBy usually accompanied by an integer that defines the sort method.
|
static java.lang.String |
PARAM_SORT_ORDER
Sort order, ASC or DESC.
|
static java.lang.String |
PARAM_SUBSYSTEM
Parameter for producer subsystem.
|
static java.lang.String |
PARAM_UNIT
Param for unit.
|
static java.lang.String |
PARAM_VALUE_FILTER_OFF
Value that switches filtering feature off.
|
static char[] |
WHITESPACES |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseMoskitoUIAction()
Creates a new action.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAlert(AlertBean bean) |
protected void |
addInfoMessage(java.lang.String message) |
protected boolean |
exportSupported()
Override and return true if your action supports csv/xml/json export.
|
protected AccumulatorAPI |
getAccumulatorAPI() |
protected AdditionalFunctionalityAPI |
getAdditionalFunctionalityAPI() |
protected java.lang.String |
getCurrentInterval(javax.servlet.http.HttpServletRequest req)
Returns the currently selected interval, either as parameter or from session.
|
protected java.lang.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 java.lang.String |
getForward(javax.servlet.http.HttpServletRequest req)
Returns the specified forward.
|
protected GaugeAPI |
getGaugeAPI() |
protected java.lang.String |
getInfoMessage()
Returns a previously set info message or null if no message has been set.
|
protected JourneyAPI |
getJourneyAPI() |
protected abstract java.lang.String |
getLinkToCurrentPage(javax.servlet.http.HttpServletRequest req)
Returns the link to the current page.
|
protected LoadFactorsAPI |
getLoadFactorsAPI() |
protected NowRunningAPI |
getNowRunningAPI() |
protected java.lang.String |
getPageName() |
protected ProducerAPI |
getProducerAPI() |
java.lang.String |
getProducerId() |
java.lang.String |
getProducerIdParameter(javax.servlet.http.HttpServletRequest request) |
java.lang.String |
getSubsystem() |
protected java.lang.String |
getSubTitle() |
protected TagAPI |
getTagAPI() |
protected ThresholdAPI |
getThresholdAPI() |
protected TracerAPI |
getTracerAPI() |
void |
postProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
prepareBasics(javax.servlet.http.HttpServletRequest req) |
void |
preProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected java.lang.String |
rebuildQueryStringWithoutParameter(java.lang.String source,
java.lang.String... params)
Rebuilds query string from source.
|
protected void |
setInfoMessage(java.lang.String message)
Sets an info message that can be shown on next screen.
|
public static final java.lang.String PARAM_FORWARD
public static final java.lang.String DEFAULT_FORWARD
public static final java.lang.String BEAN_INTERVAL
public static final java.lang.String PARAM_INTERVAL
public static final java.lang.String DEFAULT_INTERVAL
public static final java.lang.String BEAN_UNIT
public static final java.lang.String PARAM_UNIT
public static final java.lang.String DEFAULT_UNIT
public static final java.lang.String PARAM_ID
public static final java.lang.String PARAM_PRODUCER_ID
public static final java.lang.String PARAM_CATEGORY
public static final java.lang.String PARAM_SUBSYSTEM
public static final java.lang.String PARAM_DECORATOR
public static final java.lang.String PARAM_SORT_BY
public static final java.lang.String PARAM_SORT_ORDER
public static final java.lang.String PARAM_FILTER_ZERO
public static final java.lang.String PARAM_RELOAD_INTERVAL
public static final java.lang.String BEAN_AUTORELOAD
public static final java.lang.String ATTR_IS_NAV_MENU_COLLAPSED
public static final java.lang.String DEFAULT_TITLE
public static final java.lang.String PARAM_FILTERING
public static final java.lang.String PARAM_VALUE_FILTER_OFF
public static final java.lang.String CUMULATED_STAT_NAME_VALUE
public static final UnitBean DEFAULT_UNIT_BEAN
public static final java.util.List<UnitBean> AVAILABLE_UNITS_LIST
public static final java.lang.String BEAN_SORT_TYPE_PREFIX
public static final java.lang.String BEAN_SORT_TYPE_SINGLE_PRODUCER_PREFIX
public static final char[] WHITESPACES
public java.lang.String getSubsystem()
public java.lang.String getProducerId()
protected java.lang.String getForward(javax.servlet.http.HttpServletRequest req)
req - protected java.lang.String getCurrentInterval(javax.servlet.http.HttpServletRequest req)
req - protected java.lang.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.protected void prepareBasics(javax.servlet.http.HttpServletRequest req)
public void preProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
preProcess in interface net.anotheria.maf.action.Actionjava.lang.Exceptionpublic void postProcess(net.anotheria.maf.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
postProcess in interface net.anotheria.maf.action.Actionjava.lang.Exceptionprotected abstract java.lang.String getLinkToCurrentPage(javax.servlet.http.HttpServletRequest req)
req - protected static IDecoratorRegistry getDecoratorRegistry()
protected abstract NaviItem getCurrentNaviItem()
protected NaviItem getCurrentSubNaviItem()
protected java.lang.String rebuildQueryStringWithoutParameter(java.lang.String source,
java.lang.String... params)
source - original source.params - parameters that should be included in the query string.protected java.lang.String getPageName()
protected ProducerAPI getProducerAPI()
protected ThresholdAPI getThresholdAPI()
protected LoadFactorsAPI getLoadFactorsAPI()
protected NowRunningAPI getNowRunningAPI()
protected JourneyAPI getJourneyAPI()
protected AccumulatorAPI getAccumulatorAPI()
protected GaugeAPI getGaugeAPI()
protected AdditionalFunctionalityAPI getAdditionalFunctionalityAPI()
protected DashboardAPI getDashboardAPI()
protected TracerAPI getTracerAPI()
protected TagAPI getTagAPI()
protected java.lang.String getSubTitle()
protected boolean exportSupported()
protected void setInfoMessage(java.lang.String message)
message - the info message.protected java.lang.String getInfoMessage()
protected void addInfoMessage(java.lang.String message)
protected void addAlert(AlertBean bean)
public java.lang.String getProducerIdParameter(javax.servlet.http.HttpServletRequest request)
Copyright © 2010-2020 anotheria.net. All Rights Reserved.