Class Log
- java.lang.Object
-
- com.funnelback.publicui.search.model.log.Log
-
- Direct Known Subclasses:
CartClickLog
,ClickLog
,ContextualNavigationLog
,FacetedNavigationLog
,InteractionLog
,PublicUIWarningLog
public abstract class Log extends java.lang.Object
Log event
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection
collection
Collection where the event occurredprotected java.util.Date
date
Date of the eventprotected Profile
profile
Profile where the event occurredstatic java.lang.String
REQUEST_ID_NOTHING
String to use when there's no request idprotected java.lang.String
requestId
Request identifier, could be an IP, a hash, or nullstatic java.lang.String
USER_ID_NOTHING
String to use when there's no user idprotected java.lang.String
userId
User identifier, may be null if sessions were not enabled on the search servicestatic org.apache.commons.lang3.time.FastDateFormat
XML_DATE_FORMAT
Date format used in the XML logs
-
Constructor Summary
Constructors Constructor Description Log(java.util.Date date, Collection collection, Profile profile, java.lang.String requestId, java.lang.String userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection
getCollection()
Collection where the event occurredjava.util.Date
getDate()
Date of the eventProfile
getProfile()
Profile where the event occurredjava.lang.String
getRequestId()
Request identifier, could be an IP, a hash, or nulljava.lang.String
getUserId()
User identifier, may be null if sessions were not enabled on the search service
-
-
-
Field Detail
-
XML_DATE_FORMAT
public static final org.apache.commons.lang3.time.FastDateFormat XML_DATE_FORMAT
Date format used in the XML logs
-
REQUEST_ID_NOTHING
public static final java.lang.String REQUEST_ID_NOTHING
String to use when there's no request id- See Also:
- Constant Field Values
-
USER_ID_NOTHING
public static final java.lang.String USER_ID_NOTHING
String to use when there's no user id- See Also:
- Constant Field Values
-
date
protected final java.util.Date date
Date of the event
-
collection
protected final Collection collection
Collection where the event occurred
-
profile
protected final Profile profile
Profile where the event occurred
-
requestId
protected final java.lang.String requestId
Request identifier, could be an IP, a hash, or null
-
userId
protected final java.lang.String userId
User identifier, may be null if sessions were not enabled on the search service
-
-
Constructor Detail
-
Log
public Log(java.util.Date date, Collection collection, Profile profile, java.lang.String requestId, java.lang.String userId)
-
-
Method Detail
-
getDate
public java.util.Date getDate()
Date of the event
-
getCollection
public Collection getCollection()
Collection where the event occurred
-
getProfile
public Profile getProfile()
Profile where the event occurred
-
getRequestId
public java.lang.String getRequestId()
Request identifier, could be an IP, a hash, or null
-
getUserId
public java.lang.String getUserId()
User identifier, may be null if sessions were not enabled on the search service
-
-