Class ContentServiceMonitorUtil


  • public class ContentServiceMonitorUtil
    extends Object
    Contains content service monitoring constants and utility methods.
    Since:
    4.1.0
    Version:
    $Revision: 24257 $ $Date: 2020-11-30 15:44:07 -0300 (Mon, 30 Nov 2020) $
    • Field Detail

      • STRING_RESOURCE_PATH

        public static final 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 String EVENT_CONTENT_VIEW
        Key for content view event.
        Since:
        4.1.0
        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