Class CartResult
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.session.SessionResult
-
- com.funnelback.publicui.search.model.transaction.session.CartResult
-
public class CartResult extends SessionResult
A Cart result presented to the user.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Date
addedDate
Date when the result was added to the cartprivate java.util.Map<java.lang.String,java.lang.String>
metaData
Metadata values for the result-
Fields inherited from class com.funnelback.publicui.search.model.transaction.session.SessionResult
MAX_LEN_METADATA, MAX_LEN_SUMMARY
-
-
Constructor Summary
Constructors Constructor Description CartResult()
CartResult(java.lang.String userId, java.lang.String collection, java.lang.String indexUrl, java.lang.String title, java.lang.String summary, java.util.Date addedDate, java.util.Map<java.lang.String,java.lang.String> metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CartResult
from(CartResultDBModel dbmodel)
static CartResult
fromResult(Result r)
java.util.Date
getAddedDate()
Date when the result was added to the cartjava.lang.String
getCollection()
Since 15.18 this is set to the collection the result came from rather than the collection the search ran on.java.util.Map<java.lang.String,java.lang.String>
getMetaData()
Metadata values for the resultvoid
setAddedDate(java.util.Date addedDate)
Date when the result was added to the cart-
Methods inherited from class com.funnelback.publicui.search.model.transaction.session.SessionResult
getIndexUrl, getSummary, getTitle, getUserId, prePersist, setCollection, setIndexUrl, setSummary, setTitle, setUserId, toString
-
-
-
-
Method Detail
-
getCollection
public java.lang.String getCollection()
Since 15.18 this is set to the collection the result came from rather than the collection the search ran on. After an upgrade from 15.16 or earlier this may still be the meta collection, as the entry in the DB will needed to be updated.
- Overrides:
getCollection
in classSessionResult
- Returns:
- the collection for which the result came from it must be a component collection not a meta collection.
-
from
public static CartResult from(CartResultDBModel dbmodel)
-
fromResult
public static CartResult fromResult(Result r)
-
getAddedDate
public java.util.Date getAddedDate()
Date when the result was added to the cart
-
setAddedDate
public void setAddedDate(java.util.Date addedDate)
Date when the result was added to the cart
-
getMetaData
public java.util.Map<java.lang.String,java.lang.String> getMetaData()
Metadata values for the result
-
-