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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
getItems()
getName()
getType()
Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations.int
hashCode()
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAttributes
(Map<String, Object> attributes) void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
void
setItems
(List<UserRecommendationItem> items) void
void
void
Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations.toString()
-
Constructor Details
-
UserRecommendation
public UserRecommendation()
-
-
Method Details
-
getId
-
getUserId
Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations.JpaCustomerReference.getNumericId()
-
getName
-
getType
-
getItems
-
getActiveStartDate
-
getActiveEndDate
-
getAttributes
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
-
setUserId
Generally refers to the numerical Customer Reference Identifier which is used by the ALS training model to provide recommendations.JpaCustomerReference.getNumericId()
-
setName
-
setType
-
setItems
-
setActiveStartDate
-
setActiveEndDate
-
setAttributes
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-