Class ClickHistory
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.session.SessionResult
-
- com.funnelback.publicui.search.model.transaction.session.ClickHistory
-
@Entity public class ClickHistory extends SessionResult
A single entry in the user's click history- Since:
- 12.5
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Date
clickDate
Date when the click was performedprivate java.util.Map<java.lang.String,java.lang.String>
metaData
Metadata values for the result at the time the result was first clicked by the user.private java.lang.String
query
Query that returned this result-
Fields inherited from class com.funnelback.publicui.search.model.transaction.session.SessionResult
MAX_LEN_METADATA, MAX_LEN_SUMMARY
-
-
Constructor Summary
Constructors Constructor Description ClickHistory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClickHistory
fromResult(Result r, java.util.Set<java.lang.String> metadataClassToRecord)
Builds aClickHistory
from aResult
java.util.Date
getClickDate()
Date when the click was performedjava.util.Map<java.lang.String,java.lang.String>
getMetaData()
Metadata values for the result at the time the result was first clicked by the user.java.lang.String
getQuery()
Query that returned this resultprotected void
prePersist()
Truncate metadata to maximum size allowed in the database before saving to databasevoid
setClickDate(java.util.Date clickDate)
Date when the click was performedvoid
setQuery(java.lang.String query)
Query that returned this result-
Methods inherited from class com.funnelback.publicui.search.model.transaction.session.SessionResult
getCollection, getIndexUrl, getSummary, getTitle, getUserId, setCollection, setIndexUrl, setSummary, setTitle, setUserId, toString
-
-
-
-
Field Detail
-
clickDate
private java.util.Date clickDate
Date when the click was performed
-
query
private java.lang.String query
Query that returned this result
Might be null if there was no referer available.
-
metaData
private final java.util.Map<java.lang.String,java.lang.String> metaData
Metadata values for the result at the time the result was first clicked by the user.
-
-
Method Detail
-
fromResult
public static ClickHistory fromResult(Result r, java.util.Set<java.lang.String> metadataClassToRecord)
Builds aClickHistory
from aResult
- Parameters:
r
- TheResult
to build from- Returns:
- A
ClickHistory
-
prePersist
protected void prePersist()
Truncate metadata to maximum size allowed in the database before saving to database- Overrides:
prePersist
in classSessionResult
-
getClickDate
public java.util.Date getClickDate()
Date when the click was performed
-
setClickDate
public void setClickDate(java.util.Date clickDate)
Date when the click was performed
-
getQuery
public java.lang.String getQuery()
Query that returned this result
Might be null if there was no referer available.
-
setQuery
public void setQuery(java.lang.String query)
Query that returned this result
Might be null if there was no referer available.
-
getMetaData
public java.util.Map<java.lang.String,java.lang.String> getMetaData()
Metadata values for the result at the time the result was first clicked by the user.
-
-