Class SessionResult
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.session.SessionResult
-
- Direct Known Subclasses:
CartResult,CartResultDBModel,ClickHistory
@MappedSuperclass public abstract class SessionResult extends java.lang.ObjectSearch result base class when used in a session context- Since:
- 12.5
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcollectionprivate java.lang.StringindexUrlURI of the result in the indexstatic intMAX_LEN_METADATASize of the column holding metadata fieldsstatic intMAX_LEN_SUMMARYSize of the column holding the summaryprivate java.lang.StringsummarySummary of the results biased towards the query that generated this resultprivate java.lang.StringtitleTitle of the resultprivate java.lang.StringuserIdID of the user who clicked on the result
-
Constructor Summary
Constructors Constructor Description SessionResult()SessionResult(java.lang.String userId, java.lang.String collection, java.lang.String indexUrl, java.lang.String title, java.lang.String summary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCollection()java.net.URIgetIndexUrl()java.lang.StringgetSummary()Summary of the results biased towards the query that generated this resultjava.lang.StringgetTitle()Title of the resultjava.lang.StringgetUserId()ID of the user who clicked on the resultprotected voidprePersist()Truncate summary to maximum size allowed in the database before saving to databasevoidsetCollection(java.lang.String collection)voidsetIndexUrl(java.net.URI uri)voidsetSummary(java.lang.String summary)Summary of the results biased towards the query that generated this resultvoidsetTitle(java.lang.String title)Title of the resultvoidsetUserId(java.lang.String userId)ID of the user who clicked on the resultjava.lang.StringtoString()
-
-
-
Field Detail
-
MAX_LEN_SUMMARY
public static final int MAX_LEN_SUMMARY
Size of the column holding the summary- See Also:
- Constant Field Values
-
MAX_LEN_METADATA
public static final int MAX_LEN_METADATA
Size of the column holding metadata fields- See Also:
- Constant Field Values
-
userId
private java.lang.String userId
ID of the user who clicked on the result
-
collection
private java.lang.String collection
-
indexUrl
private java.lang.String indexUrl
URI of the result in the index
-
title
@NonNull private java.lang.String title
Title of the result
-
summary
@NonNull private java.lang.String summary
Summary of the results biased towards the query that generated this result
-
-
Method Detail
-
getIndexUrl
public java.net.URI getIndexUrl()
- Returns:
- URI of the result in the index
-
setIndexUrl
public void setIndexUrl(java.net.URI uri)
- Parameters:
uri- Sets the URI of the result in the index
-
prePersist
protected void prePersist()
Truncate summary to maximum size allowed in the database before saving to database
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getUserId
public java.lang.String getUserId()
ID of the user who clicked on the result
-
setUserId
public void setUserId(java.lang.String userId)
ID of the user who clicked on the result
-
getCollection
public java.lang.String getCollection()
-
setCollection
public void setCollection(java.lang.String collection)
-
getTitle
@NonNull public java.lang.String getTitle()
Title of the result
-
setTitle
public void setTitle(@NonNull java.lang.String title)Title of the result
-
getSummary
@NonNull public java.lang.String getSummary()
Summary of the results biased towards the query that generated this result
-
setSummary
public void setSummary(@NonNull java.lang.String summary)Summary of the results biased towards the query that generated this result
-
-