Class IndicatorManager
- java.lang.Object
-
- com.jalios.jcms.uicomponent.indicator.IndicatorManager
-
public class IndicatorManager extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Indicator
getIndicator(generated.PortletIndicator portletIndicator, IndicatorContext indicatorContext, java.lang.String userLang)
static IndicatorManager
getInstance()
Indicator
getManualIndicator(generated.PortletIndicator portlet, IndicatorContext indicatorContext)
java.util.Map<java.lang.String,java.lang.Object>
getMetricParametersMap(java.lang.String metricParameters)
Returns the map of key / values from the given metric parametersjava.util.Set<java.lang.String>
getMetricSet()
IndicatorPolicy
getPolicy(java.lang.String metric)
Returns the matchingIndicatorPolicy
from given metric name
-
-
-
Method Detail
-
getInstance
public static IndicatorManager getInstance()
-
getManualIndicator
public Indicator getManualIndicator(generated.PortletIndicator portlet, IndicatorContext indicatorContext)
-
getIndicator
public Indicator getIndicator(generated.PortletIndicator portletIndicator, IndicatorContext indicatorContext, java.lang.String userLang)
-
getMetricSet
public java.util.Set<java.lang.String> getMetricSet()
- Returns:
- a set of metric by looking into jcms properties
-
getPolicy
public IndicatorPolicy getPolicy(java.lang.String metric)
Returns the matchingIndicatorPolicy
from given metric name- Parameters:
metric
- the metric name- Returns:
- an
IndicatorPolicy
-
getMetricParametersMap
public java.util.Map<java.lang.String,java.lang.Object> getMetricParametersMap(java.lang.String metricParameters)
Returns the map of key / values from the given metric parameters- Parameters:
metricParameters
- as json- Returns:
- a Map of key/value from given json
-
-