Class 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.
    • 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 a PortalObjectNotFoundException 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>
      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 a IMonitorValuesProvider values map when the value for the given key can be null and is a optional value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • MonitorUtilInternal

        public MonitorUtilInternal()
    • 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 a IMonitorValuesProvider values map when the value for the given key can be null and is a optional value.
        Parameters:
        values - The current values map of the IMonitorValuesProvider.
        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 is null the value will not be inserted.
        Since:
        14.0.0
      • clearMonitorFilterCache

        public static void clearMonitorFilterCache()
        Clears the monitor filter cache.
        Since:
        14.2.0