Class StarredItem
java.lang.Object
com.broadleafcommerce.content.domain.StarredItem
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,com.broadleafcommerce.data.tracking.core.policy.Owned,Serializable
public class StarredItem
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware, com.broadleafcommerce.data.tracking.core.policy.Owned
A domain indicating that a
ContentItem is marked as starred.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe system ID of the content item.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.getId()The system ID of the content item.The ID of the user who starred the item.inthashCode()voidsetContentItemId(String contentItemId) The system ID of the content item.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidThe system ID of the content item.voidThe ID of the user who starred the item.toString()
-
Constructor Details
-
StarredItem
public StarredItem()
-
-
Method Details
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifierin interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getId
The system ID of the content item.- Returns:
- the system ID of the content item
-
getUserId
The ID of the user who starred the item.- Returns:
- he ID of the user
-
getContentItemId
The system ID of the content item.- Returns:
- the system ID of the content item
-
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
The system ID of the content item.- Parameters:
id- the system ID of the content item
-
setUserId
The ID of the user who starred the item.- Parameters:
id- he ID of the user
-
setContentItemId
The system ID of the content item.- Parameters:
contentItemId- the system ID of the content item
-
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
-