public class LikeItMonitorUtil extends AbstractObjectInteractionMonitorUtil
Modifier and Type | Field and Description |
---|---|
static String |
ADD_LIKE_INTERACTION_TYPE |
static String |
EVENT_LIKE |
static String |
STRING_RESOURCE_PATH |
pageWebResource, request, serviceInstanceId, targetObjectId, targetObjectName, targetObjectServiceInstance, transaction, webResource
Constructor and Description |
---|
LikeItMonitorUtil(boolean isLike,
HttpServletRequest request,
String targetObjectName,
String targetObjectId,
String targetObjectServiceInstance,
String serviceInstanceId,
ITransaction transaction)
Creates a new instance.
|
Modifier and Type | Method and 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.
|
addMonitorValues, collect, getMonitor
public static final String EVENT_LIKE
public static final String STRING_RESOURCE_PATH
public static final String ADD_LIKE_INTERACTION_TYPE
public LikeItMonitorUtil(boolean isLike, HttpServletRequest request, String targetObjectName, String targetObjectId, String targetObjectServiceInstance, String serviceInstanceId, ITransaction transaction) throws PortalException
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.PortalException
protected String getEventId()
AbstractObjectInteractionMonitorUtil
getEventId
in class AbstractObjectInteractionMonitorUtil
protected String getInteractionName()
AbstractObjectInteractionMonitorUtil
getInteractionName
in class AbstractObjectInteractionMonitorUtil
protected String getInteractionType()
AbstractObjectInteractionMonitorUtil
getInteractionType
in class AbstractObjectInteractionMonitorUtil
protected String getActionName()
AbstractObjectInteractionMonitorUtil
getActionName
in class AbstractObjectInteractionMonitorUtil
protected String getStringResourcePath()
AbstractObjectInteractionMonitorUtil
getStringResourcePath
in class AbstractObjectInteractionMonitorUtil
protected int getCount()
AbstractObjectInteractionMonitorUtil
getCount
in class AbstractObjectInteractionMonitorUtil
protected String getCountFieldId()
AbstractObjectInteractionMonitorUtil
getCountFieldId
in class AbstractObjectInteractionMonitorUtil
public static void collectLike(HttpServletRequest request, Like like, ITransaction transaction) throws PortalException
webResource
- the web resource.comment
- the comment.transaction
- the transaction.PortalException
public static void collectDislike(HttpServletRequest request, Like like, ITransaction transaction) throws PortalException
webResource
- the web resource.comment
- the comment.transaction
- the transaction.PortalException
protected String getActionId()
AbstractObjectInteractionMonitorUtil
getActionId
in class AbstractObjectInteractionMonitorUtil
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.