Class AbstractObjectInteractionMonitorUtil
- java.lang.Object
-
- lumis.service.abstractuserinteraction.AbstractObjectInteractionMonitorUtil
-
- Direct Known Subclasses:
CommentItMonitorUtil
,LikeItMonitorUtil
public abstract class AbstractObjectInteractionMonitorUtil extends Object
Abstract object interaction monitor util.- Since:
- 9.0.0
- Version:
- $Revision: 21881 $ $Date: 2018-09-21 17:09:37 -0300 (Fri, 21 Sep 2018) $
-
-
Field Summary
Fields Modifier and Type Field Description protected PageWebResource
pageWebResource
protected HttpServletRequest
request
protected String
serviceInstanceId
protected String
targetObjectId
protected String
targetObjectName
protected String
targetObjectServiceInstance
protected ITransaction
transaction
protected WebResource
webResource
-
Constructor Summary
Constructors Constructor Description AbstractObjectInteractionMonitorUtil(HttpServletRequest request, String targetObjectName, String targetObjectId, String targetObjectServiceInstance, String serviceInstanceId, ITransaction transaction)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addMonitorValues(MonitorHelper monitorHelper)
Adds the monitoring values.void
collect()
Collects the data.protected abstract String
getActionId()
Returns the action identifier.protected abstract String
getActionName()
Returns the action name.protected int
getCount()
Returns the count value.protected abstract String
getCountFieldId()
Returns the count field identifier.protected abstract String
getEventId()
Returns the event identifier.protected abstract String
getInteractionName()
Returns the interaction name.protected abstract String
getInteractionType()
Returns the interaction type.protected IMonitor
getMonitor()
Returns the monitor.protected abstract String
getStringResourcePath()
Returns the interaction string resource path.
-
-
-
Field Detail
-
webResource
protected final WebResource webResource
-
request
protected final HttpServletRequest request
-
pageWebResource
protected final PageWebResource pageWebResource
-
targetObjectName
protected final String targetObjectName
-
targetObjectId
protected final String targetObjectId
-
targetObjectServiceInstance
protected final String targetObjectServiceInstance
-
serviceInstanceId
protected final String serviceInstanceId
-
transaction
protected final ITransaction transaction
-
-
Constructor Detail
-
AbstractObjectInteractionMonitorUtil
public AbstractObjectInteractionMonitorUtil(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
-
getCountFieldId
protected abstract String getCountFieldId()
Returns the count field identifier.- Returns:
- the count field identifier.
- Since:
- 11.0.0
-
collect
public void collect() throws PortalException
Collects the data.- Throws:
PortalException
- Since:
- 9.0.0
-
getCount
protected int getCount()
Returns the count value.- Returns:
- the count value.
- Since:
- 9.0.0
-
getMonitor
protected IMonitor getMonitor() throws PortalException
Returns the monitor.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 9.0.0
-
addMonitorValues
protected void addMonitorValues(MonitorHelper monitorHelper) throws PortalException
Adds the monitoring values.- Parameters:
context
- the context.- Throws:
PortalException
- Since:
- 9.0.0
-
getEventId
protected abstract String getEventId()
Returns the event identifier.- Returns:
- the event identifier.
- Since:
- 9.0.0
-
getInteractionName
protected abstract String getInteractionName()
Returns the interaction name.- Returns:
- the interaction name.
- Since:
- 9.0.0
-
getActionName
protected abstract String getActionName()
Returns the action name.- Returns:
- the action name.
- Since:
- 9.0.0
-
getActionId
protected abstract String getActionId()
Returns the action identifier.- Returns:
- the action identifier.
- Since:
- 10.2.0
-
getInteractionType
protected abstract String getInteractionType()
Returns the interaction type.- Returns:
- the interaction type.
- Since:
- 9.0.0
-
getStringResourcePath
protected abstract String getStringResourcePath()
Returns the interaction string resource path.- Returns:
- the interaction string resource path.
- Since:
- 9.0.0
-
-