Package lumis.content.service
Class ContentServiceMonitorUtil
- java.lang.Object
-
- lumis.content.service.ContentServiceMonitorUtil
-
public class ContentServiceMonitorUtil extends java.lang.Object
Contains content service monitoring constants and utility methods.- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_CONTENT_ADDED
static java.lang.String
EVENT_CONTENT_VIEW
Key for content view event.static java.lang.String
EVENT_CONTENT_VIEW_STARTED
static java.lang.String
STRING_RESOURCE_PATH
The string resource path using for localizing content monitoring strings.
-
Constructor Summary
Constructors Constructor Description ContentServiceMonitorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collectContentAdd(ContentVersion version)
Collects a content added event for the given content.static void
collectContentView(PageWebResource pageWebResource, java.lang.String contentViewEventId, java.lang.String lumItemId, java.lang.Long duration)
Collects a content view event for the given content.static void
populateContentObjectValuesProvider(ContentVersion contentVersion, MonitorHelper monitorHelper)
Populates the given monitor helper with content object fields based on the given content version.
-
-
-
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_VIEW_STARTED
public static final java.lang.String EVENT_CONTENT_VIEW_STARTED
- See Also:
- Constant Field Values
-
EVENT_CONTENT_ADDED
public static final java.lang.String EVENT_CONTENT_ADDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
collectContentView
public static void collectContentView(PageWebResource pageWebResource, java.lang.String contentViewEventId, java.lang.String lumItemId, java.lang.Long duration) throws PortalException
Collects a content view event for the given content.- Parameters:
pageWebResource
- the page web resourcecontentViewEventId
- the content view event id to be collectedlumItemId
- the item Id of the contentduration
- the event duration- Throws:
PortalException
- Since:
- 17.1.0
-
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
-
-