Class ContentServiceMonitorUtil


  • public class ContentServiceMonitorUtil
    extends java.lang.Object
    Contains content service monitoring constants and utility methods.
    Since:
    4.1.0
    Version:
    $Revision: 26003 $ $Date: 2023-11-22 10:31:25 -0300 (Wed, 22 Nov 2023) $
    • Field Detail

      • STRING_RESOURCE_PATH

        public static final java.lang.String STRING_RESOURCE_PATH
        The string resource path using for localizing content monitoring strings.
        Since:
        4.1.0
        See Also:
        Constant Field Values
      • EVENT_CONTENT_VIEW

        public static final java.lang.String EVENT_CONTENT_VIEW
        Key for content view event.
        Since:
        4.1.0
        See Also:
        Constant Field Values
      • EVENT_CONTENT_ADDED

        public static final java.lang.String EVENT_CONTENT_ADDED
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContentServiceMonitorUtil

        public ContentServiceMonitorUtil()
    • Method Detail

      • collectContentAdd

        public static void collectContentAdd​(ContentVersion version)
        Collects a content added event for the given content.
        Parameters:
        version - the content version.
        Since:
        12.0.0
      • populateContentObjectValuesProvider

        public static void populateContentObjectValuesProvider​(ContentVersion contentVersion,
                                                               MonitorHelper monitorHelper)
                                                        throws PortalException
        Populates the given monitor helper with content object fields based on the given content version.
        Parameters:
        contentVersion - the content version.
        monitorHelper - the monitor helper.
        Throws:
        PortalException
        Since:
        11.0.0