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 booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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.inthashCode()voidsetActiveEndDate(Instant activeEndDate) voidsetActiveStartDate(Instant activeStartDate) voidsetAttributes(Map<String, Object> attributes) voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidvoidsetItems(List<UserRecommendationItem> items) voidvoidvoidGenerally 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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-