Class UserRecommendation

java.lang.Object
com.broadleafcommerce.recommendationengine.domain.UserRecommendation
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class UserRecommendation extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
See Also:
  • Constructor Details

    • UserRecommendation

      public UserRecommendation()
  • Method Details

    • getId

      public String getId()
    • getUserId

      public String getUserId()
      Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations. JpaCustomerReference.getNumericId()
    • getName

      public String getName()
    • getType

      public String getType()
    • getItems

      public List<UserRecommendationItem> getItems()
    • getActiveStartDate

      public Instant getActiveStartDate()
    • getActiveEndDate

      public Instant getActiveEndDate()
    • getAttributes

      public Map<String,Object> getAttributes()
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
    • setUserId

      public void setUserId(String userId)
      Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations. JpaCustomerReference.getNumericId()
    • setName

      public void setName(String name)
    • setType

      public void setType(String type)
    • setItems

      public void setItems(List<UserRecommendationItem> items)
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object