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$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD_LIKE_INTERACTION_TYPE
static java.lang.String
EVENT_LIKE
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 LikeItMonitorUtil(boolean isLike, 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
collectDislike(javax.servlet.http.HttpServletRequest request, Like like, ITransaction transaction)
Collects the event data.static void
collectLike(javax.servlet.http.HttpServletRequest request, Like like, ITransaction transaction)
Collects the event data.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_LIKE
public static final java.lang.String EVENT_LIKE
- See Also:
- Constant Field Values
-
STRING_RESOURCE_PATH
public static final java.lang.String STRING_RESOURCE_PATH
- See Also:
- Constant Field Values
-
ADD_LIKE_INTERACTION_TYPE
public static final java.lang.String ADD_LIKE_INTERACTION_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LikeItMonitorUtil
public LikeItMonitorUtil(boolean isLike, 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:
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.
-
getActionName
protected java.lang.String getActionName()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action name.- Specified by:
getActionName
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action name.
-
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.
-
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.
-
collectLike
public static void collectLike(javax.servlet.http.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(javax.servlet.http.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 java.lang.String getActionId()
Description copied from class:AbstractObjectInteractionMonitorUtil
Returns the action identifier.- Specified by:
getActionId
in classAbstractObjectInteractionMonitorUtil
- Returns:
- the action identifier.
-
-