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 boolean
boolean
The system ID of the content item.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information 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.int
hashCode()
void
setContentItemId
(String contentItemId) The system ID of the content item.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
The system ID of the content item.void
The ID of the user who starred the item.toString()
-
Constructor Details
-
StarredItem
public StarredItem()
-
-
Method Details
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifier
in 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 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
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 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
-