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$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD_COMMENT_INTERACTION_TYPE
static java.lang.String
EVENT_COMMENT
static java.lang.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, javax.servlet.http.HttpServletRequest request, java.lang.String targetObjectName, java.lang.String targetObjectId, java.lang.String targetObjectServiceInstance, java.lang.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(javax.servlet.http.HttpServletRequest request, Comment comment, ITransaction transaction)
Collects the add comment event.static void
collectRemoveComment(javax.servlet.http.HttpServletRequest request, Comment comment, ITransaction transaction)
Collects the remove comment event.protected java.lang.String
getActionId()
Returns the action identifier.protected java.lang.String
getActionName()
Returns the action name.protected int
getCount()
Returns the count value.protected java.lang.String
getCountFieldId()
Returns the count field identifier.protected java.lang.String
getEventId()
Returns the event identifier.protected java.lang.String
getInteractionName()
Returns the interaction name.protected java.lang.String
getInteractionType()
Returns the interaction type.protected java.lang.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 java.lang.String EVENT_COMMENT
- See Also:
- Constant Field Values
-
STRING_RESOURCE_PATH
public static final java.lang.String STRING_RESOURCE_PATH
- See Also:
- Constant Field Values
-
ADD_COMMENT_INTERACTION_TYPE
public static final java.lang.String ADD_COMMENT_INTERACTION_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentItMonitorUtil
public CommentItMonitorUtil(boolean isAdd, javax.servlet.http.HttpServletRequest request, java.lang.String targetObjectName, java.lang.String targetObjectId, java.lang.String targetObjectServiceInstance, java.lang.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 java.lang.String getEventId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the event identifier.- Specified by:
getEventId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the event identifier.
-
getInteractionName
protected java.lang.String getInteractionName()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the interaction name.- Specified by:
getInteractionName
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the interaction name.
-
getInteractionType
protected java.lang.String getInteractionType()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the interaction type.- Specified by:
getInteractionType
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the interaction type.
-
getStringResourcePath
protected java.lang.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 java.lang.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 java.lang.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(javax.servlet.http.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(javax.servlet.http.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 java.lang.String getActionId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action identifier.- Specified by:
getActionId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action identifier.
-
-