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.Object
Search result base class when used in a session context- Since:
- 12.5
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
collection
private java.lang.String
indexUrl
URI of the result in the indexstatic int
MAX_LEN_METADATA
Size of the column holding metadata fieldsstatic int
MAX_LEN_SUMMARY
Size of the column holding the summaryprivate java.lang.String
summary
Summary of the results biased towards the query that generated this resultprivate java.lang.String
title
Title of the resultprivate java.lang.String
userId
ID 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.String
getCollection()
java.net.URI
getIndexUrl()
java.lang.String
getSummary()
Summary of the results biased towards the query that generated this resultjava.lang.String
getTitle()
Title of the resultjava.lang.String
getUserId()
ID of the user who clicked on the resultprotected void
prePersist()
Truncate summary to maximum size allowed in the database before saving to databasevoid
setCollection(java.lang.String collection)
void
setIndexUrl(java.net.URI uri)
void
setSummary(java.lang.String summary)
Summary of the results biased towards the query that generated this resultvoid
setTitle(java.lang.String title)
Title of the resultvoid
setUserId(java.lang.String userId)
ID of the user who clicked on the resultjava.lang.String
toString()
-
-
-
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:
toString
in 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
-
-