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.ObjectLog event
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectioncollectionCollection where the event occurredprotected java.util.DatedateDate of the eventprotected ProfileprofileProfile where the event occurredstatic java.lang.StringREQUEST_ID_NOTHINGString to use when there's no request idprotected java.lang.StringrequestIdRequest identifier, could be an IP, a hash, or nullstatic java.lang.StringUSER_ID_NOTHINGString to use when there's no user idprotected java.lang.StringuserIdUser identifier, may be null if sessions were not enabled on the search servicestatic org.apache.commons.lang3.time.FastDateFormatXML_DATE_FORMATDate 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 CollectiongetCollection()Collection where the event occurredjava.util.DategetDate()Date of the eventProfilegetProfile()Profile where the event occurredjava.lang.StringgetRequestId()Request identifier, could be an IP, a hash, or nulljava.lang.StringgetUserId()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
-
-