Package lumis.service.likeit
Class LikeItMonitorUtil
- java.lang.Object
-
- lumis.service.abstractuserinteraction.AbstractObjectInteractionMonitorUtil
-
- lumis.service.likeit.LikeItMonitorUtil
-
public class LikeItMonitorUtil 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_LIKE_INTERACTION_TYPE
static String
EVENT_LIKE
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 LikeItMonitorUtil(boolean isLike, 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
collectDislike(HttpServletRequest request, Like like, ITransaction transaction)
Collects the event data.static void
collectLike(HttpServletRequest request, Like like, ITransaction transaction)
Collects the event data.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_LIKE
public static final String EVENT_LIKE
- See Also:
- Constant Field Values
-
STRING_RESOURCE_PATH
public static final String STRING_RESOURCE_PATH
- See Also:
- Constant Field Values
-
ADD_LIKE_INTERACTION_TYPE
public static final String ADD_LIKE_INTERACTION_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LikeItMonitorUtil
public LikeItMonitorUtil(boolean isLike, HttpServletRequest request, String targetObjectName, String targetObjectId, String targetObjectServiceInstance, String serviceInstanceId, ITransaction transaction) throws PortalException
Creates a new instance.- Parameters:
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.
-
getActionName
protected String getActionName()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action name.- Specified by:
getActionName
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action name.
-
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.
-
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.
-
collectLike
public static void collectLike(HttpServletRequest request, Like like, ITransaction transaction) throws PortalException
Collects the event data.- Parameters:
webResource
- the web resource.comment
- the comment.transaction
- the transaction.- Throws:
PortalException
- Since:
- 9.0.0
-
collectDislike
public static void collectDislike(HttpServletRequest request, Like like, ITransaction transaction) throws PortalException
Collects the event data.- 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.
-
-