Package lumis.service.commentit
Class CommentItMonitorUtil
- java.lang.Object
-
- lumis.service.abstractuserinteraction.AbstractObjectInteractionMonitorUtil
-
- lumis.service.commentit.CommentItMonitorUtil
-
public class CommentItMonitorUtil extends AbstractObjectInteractionMonitorUtil
Comment it monitor util.- Since:
- 9.0.0
- Version:
- $Revision: 21074 $ $Date: 2018-03-26 15:46:38 -0300 (Mon, 26 Mar 2018) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADD_COMMENT_INTERACTION_TYPE
static String
EVENT_COMMENT
static String
STRING_RESOURCE_PATH
-
Fields inherited from class lumis.service.abstractuserinteraction.AbstractObjectInteractionMonitorUtil
pageWebResource, request, serviceInstanceId, targetObjectId, targetObjectName, targetObjectServiceInstance, transaction, webResource
-
-
Constructor Summary
Constructors Constructor Description CommentItMonitorUtil(boolean isAdd, HttpServletRequest request, String targetObjectName, String targetObjectId, String targetObjectServiceInstance, String serviceInstanceId, ITransaction transaction)
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
collectAddComment(HttpServletRequest request, Comment comment, ITransaction transaction)
Collects the add comment event.static void
collectRemoveComment(HttpServletRequest request, Comment comment, ITransaction transaction)
Collects the remove comment event.protected String
getActionId()
Returns the action identifier.protected String
getActionName()
Returns the action name.protected int
getCount()
Returns the count value.protected String
getCountFieldId()
Returns the count field identifier.protected String
getEventId()
Returns the event identifier.protected String
getInteractionName()
Returns the interaction name.protected String
getInteractionType()
Returns the interaction type.protected String
getStringResourcePath()
Returns the interaction string resource path.-
Methods inherited from class lumis.service.abstractuserinteraction.AbstractObjectInteractionMonitorUtil
addMonitorValues, collect, getMonitor
-
-
-
-
Field Detail
-
EVENT_COMMENT
public static final String EVENT_COMMENT
- See Also:
- Constant Field Values
-
STRING_RESOURCE_PATH
public static final String STRING_RESOURCE_PATH
- See Also:
- Constant Field Values
-
ADD_COMMENT_INTERACTION_TYPE
public static final String ADD_COMMENT_INTERACTION_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentItMonitorUtil
public CommentItMonitorUtil(boolean isAdd, HttpServletRequest request, String targetObjectName, String targetObjectId, String targetObjectServiceInstance, String serviceInstanceId, ITransaction transaction) throws PortalException
Creates a new instance.- Parameters:
isAdd
- indicates whether it is an add comment event.request
- the request.targetObjectName
- the target object name.targetObjectId
- the target object identifier.targetObjectServiceInstance
- the target object service instance identifier.serviceInstanceId
- the service identifier.transaction
- the transaction.- Throws:
PortalException
- Since:
- 9.0.0
-
-
Method Detail
-
getEventId
protected String getEventId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the event identifier.- Specified by:
getEventId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the event identifier.
-
getInteractionName
protected String getInteractionName()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the interaction name.- Specified by:
getInteractionName
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the interaction name.
-
getInteractionType
protected String getInteractionType()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the interaction type.- Specified by:
getInteractionType
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the interaction type.
-
getStringResourcePath
protected String getStringResourcePath()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the interaction string resource path.- Specified by:
getStringResourcePath
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the interaction string resource path.
-
getActionName
protected String getActionName()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action name.- Specified by:
getActionName
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action name.
-
getCount
protected int getCount()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the count value.- Overrides:
getCount
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the count value.
-
getCountFieldId
protected String getCountFieldId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the count field identifier.- Specified by:
getCountFieldId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the count field identifier.
-
collectAddComment
public static void collectAddComment(HttpServletRequest request, Comment comment, ITransaction transaction) throws PortalException
Collects the add comment event.- Parameters:
webResource
- the web resource.comment
- the comment.transaction
- the transaction.- Throws:
PortalException
- Since:
- 9.0.0
-
collectRemoveComment
public static void collectRemoveComment(HttpServletRequest request, Comment comment, ITransaction transaction) throws PortalException
Collects the remove comment event.- Parameters:
webResource
- the web resource.comment
- the comment.transaction
- the transaction.- Throws:
PortalException
- Since:
- 9.0.0
-
getActionId
protected String getActionId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action identifier.- Specified by:
getActionId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action identifier.
-
-