Class ContentZoneItem

java.lang.Object
com.broadleafcommerce.content.domain.ContentZoneItem
All Implemented Interfaces:
Serializable

public class ContentZoneItem extends Object implements Serializable
Represents a link between a ContentItem and a ContentZone where the item should be displayed if the request context matches the displayRule.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • ContentZoneItem

      public ContentZoneItem()
  • Method Details

    • getContentItemMembershipType

      public String getContentItemMembershipType()
      The content item membership type. Items can either be explicitly defined or be included based on a given rule.
    • getContentItemMembershipRule

      public String getContentItemMembershipRule()
      If the membership type is ContentItemMembershipType.RULE_BASED, this rule defines what items to include.
    • getDisplayRule

      public String getDisplayRule()
      The display rule for the item to be displayed in the zone.
      Returns:
      The display rule for the item to be displayed in the zone.
    • getItem

      public ContentItem getItem()
      The ID of the ContentItem to display.
      Returns:
      The ID of the ContentItem to display.
    • getDisplayOrder

      public Integer getDisplayOrder()
      The display order of this item in relation to other items
      Returns:
      the item's display order
    • setContentItemMembershipType

      public void setContentItemMembershipType(String contentItemMembershipType)
      The content item membership type. Items can either be explicitly defined or be included based on a given rule.
    • setContentItemMembershipRule

      public void setContentItemMembershipRule(String contentItemMembershipRule)
      If the membership type is ContentItemMembershipType.RULE_BASED, this rule defines what items to include.
    • setDisplayRule

      public void setDisplayRule(String displayRule)
      The display rule for the item to be displayed in the zone.
      Parameters:
      displayRule - The display rule for the item to be displayed in the zone.
    • setItem

      public void setItem(ContentItem item)
      The ID of the ContentItem to display.
      Parameters:
      itemId - The ID of the ContentItem to display.
    • setDisplayOrder

      public void setDisplayOrder(Integer displayOrder)
      The display order of this item in relation to other items
      Parameters:
      displayOrder - the item's display order
    • 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