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 Date
clickDate
Date when the click was performedprivate Map<String,String>
metaData
Metadata values for the result at the time the result was first clicked by the user.private 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 Instance Methods Concrete Methods Modifier and Type Method Description Date
getClickDate()
Date when the click was performedMap<String,String>
getMetaData()
Metadata values for the result at the time the result was first clicked by the user.String
getQuery()
Query that returned this resultprotected void
prePersist()
Truncate metadata to maximum size allowed in the database before saving to databasevoid
setClickDate(Date clickDate)
Date when the click was performedvoid
setQuery(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
-
-
-
-
Method Detail
-
prePersist
protected void prePersist()
Truncate metadata to maximum size allowed in the database before saving to database- Overrides:
prePersist
in classSessionResult
-
getClickDate
public Date getClickDate()
Date when the click was performed
-
setClickDate
public void setClickDate(Date clickDate)
Date when the click was performed
-
getQuery
public String getQuery()
Query that returned this result
Might be null if there was no referer available.
-
setQuery
public void setQuery(String query)
Query that returned this result
Might be null if there was no referer available.
-
-