Package lumis.portal.monitor
Class MonitorUtilInternal
- java.lang.Object
-
- lumis.portal.monitor.MonitorUtilInternal
-
public class MonitorUtilInternal extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static 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 Map<String,Serializable>
createStringFieldValue(String string)
Creates a string field value structure, given a string.static String
getDocumentTypeFieldId(String fieldId)
Returns the normalized full field identifier.static String
getNormalizedToken(String string)
Returns the string normalized token version if string is not null, otherwise returns null.static String
getReversedNormalizedToken(String normalizedToken)
Returns the string reversed normalized token version if normalizedToken is not null, otherwise returns null.static <T extends Serializable>
voidputOptionalProviderValue(Map<String,List<? extends Serializable>> values, 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 String MONITOR_FIELD
Big data monitor field identifier.- Since:
- 11.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
createStringFieldValue
public static Map<String,Serializable> createStringFieldValue(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 String getNormalizedToken(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 String getReversedNormalizedToken(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 String getDocumentTypeFieldId(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 Serializable> void putOptionalProviderValue(Map<String,List<? extends Serializable>> values, 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
-
-