Package lumis.portal.monitor
Class MonitorUtilInternal
- java.lang.Object
-
- lumis.portal.monitor.MonitorUtilInternal
-
public class MonitorUtilInternal extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MONITOR_FIELD
Big data monitor field identifier.
-
Constructor Summary
Constructors Constructor Description MonitorUtilInternal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearMonitorFilterCache()
Clears the monitor filter cache.static java.util.Map<java.lang.String,java.io.Serializable>
createStringFieldValue(java.lang.String string)
Creates a string field value structure, given a string.static java.lang.String
getDocumentTypeFieldId(java.lang.String fieldId)
Returns the normalized full field identifier.static IMonitorField
getFieldFromCache(java.lang.String fieldId)
Returns the field from cache and throws aPortalObjectNotFoundException
if the field was not found.static IMonitorFilter
getMonitorFilter()
Returns the monitor filter.static java.lang.String
getNormalizedToken(java.lang.String string)
Returns the string normalized token version if string is not null, otherwise returns null.static java.lang.String
getReversedNormalizedToken(java.lang.String normalizedToken)
Returns the string reversed normalized token version if normalizedToken is not null, otherwise returns null.static <T extends java.io.Serializable>
voidputOptionalProviderValue(java.util.Map<java.lang.String,java.util.List<? extends java.io.Serializable>> values, java.lang.String key, T value)
Helper method for populating aIMonitorValuesProvider
values map when the value for the given key can benull
and is a optional value.
-
-
-
Field Detail
-
MONITOR_FIELD
public static final java.lang.String MONITOR_FIELD
Big data monitor field identifier.- Since:
- 11.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
createStringFieldValue
public static java.util.Map<java.lang.String,java.io.Serializable> createStringFieldValue(java.lang.String string)
Creates a string field value structure, given a string.- Parameters:
string
- the string to value- Returns:
- the string field value structure for the given string
- Since:
- 11.0.0
-
getNormalizedToken
public static java.lang.String getNormalizedToken(java.lang.String string)
Returns the string normalized token version if string is not null, otherwise returns null.- Parameters:
string
- the string to be normalized.- Returns:
- the string normalized token version.
- Since:
- 11.0.0
-
getReversedNormalizedToken
public static java.lang.String getReversedNormalizedToken(java.lang.String normalizedToken)
Returns the string reversed normalized token version if normalizedToken is not null, otherwise returns null.- Parameters:
normalizedToken
- the string normalized token version to be reversed.- Returns:
- the string reversed normalized token version.
- Since:
- 11.0.0
-
getDocumentTypeFieldId
public static java.lang.String getDocumentTypeFieldId(java.lang.String fieldId)
Returns the normalized full field identifier.- Parameters:
fieldId
- the raw field identifier.- Returns:
- the normalized full field identifier.
- Since:
- 11.1.0
-
putOptionalProviderValue
public static <T extends java.io.Serializable> void putOptionalProviderValue(java.util.Map<java.lang.String,java.util.List<? extends java.io.Serializable>> values, java.lang.String key, T value)
Helper method for populating aIMonitorValuesProvider
values map when the value for the given key can benull
and is a optional value.- Parameters:
values
- The current values map of theIMonitorValuesProvider
.key
- The key to be used in the map.value
- The value to put in the map, it will be inserted as a list containing the value, if the value isnull
the value will not be inserted.- Since:
- 14.0.0
-
getFieldFromCache
public static IMonitorField getFieldFromCache(java.lang.String fieldId) throws PortalException
Returns the field from cache and throws aPortalObjectNotFoundException
if the field was not found. This is a helper function that wrapsIMonitorManagerSPI.getFieldFromCache(String)
and throws the exception when the field is not found to act as an in-place replacement forIMonitorManager.getField(String)
.- Parameters:
fieldId
- the field identifier.- Returns:
- the field
- Throws:
PortalException
- Since:
- 14.2.0
-
getMonitorFilter
public static IMonitorFilter getMonitorFilter() throws PortalException
Returns the monitor filter.- Returns:
- the monitor filter.
- Throws:
PortalException
- Since:
- 14.2.0
-
clearMonitorFilterCache
public static void clearMonitorFilterCache()
Clears the monitor filter cache.- Since:
- 14.2.0
-
-