Class CartResult


  • public class CartResult
    extends SessionResult
    A Cart result presented to the user.
    • Field Detail

      • addedDate

        private Date addedDate
        Date when the result was added to the cart
      • metaData

        private final Map<String,​String> metaData
        Metadata values for the result
    • Method Detail

      • getCollection

        public 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 class SessionResult
        Returns:
        the collection for which the result came from it must be a component collection not a meta collection.
      • getAddedDate

        public Date getAddedDate()
        Date when the result was added to the cart
      • setAddedDate

        public void setAddedDate​(Date addedDate)
        Date when the result was added to the cart
      • getMetaData

        public Map<String,​String> getMetaData()
        Metadata values for the result