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 Details

    • StarredItem

      public StarredItem()
  • Method Details

    • getOwnerIdentifier

      public String getOwnerIdentifier()
      Specified by:
      getOwnerIdentifier in interface com.broadleafcommerce.data.tracking.core.policy.Owned
    • getId

      public String getId()
      The system ID of the content item.
      Returns:
      the system ID of the content item
    • getUserId

      public String getUserId()
      The ID of the user who starred the item.
      Returns:
      he ID of the user
    • getContentItemId

      public String 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 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)
      The system ID of the content item.
      Parameters:
      id - the system ID of the content item
    • setUserId

      public void setUserId(String userId)
      The ID of the user who starred the item.
      Parameters:
      id - he ID of the user
    • setContentItemId

      public void setContentItemId(String contentItemId)
      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 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