Class ContentZoneItem
java.lang.Object
com.broadleafcommerce.content.domain.ContentZoneItem
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If the membership type isContentItemMembershipType.RULE_BASED
, this rule defines what items to include.The content item membership type.The display order of this item in relation to other itemsThe display rule for the item to be displayed in the zone.getItem()
The ID of theContentItem
to display.int
hashCode()
void
setContentItemMembershipRule
(String contentItemMembershipRule) If the membership type isContentItemMembershipType.RULE_BASED
, this rule defines what items to include.void
setContentItemMembershipType
(String contentItemMembershipType) The content item membership type.void
setDisplayOrder
(Integer displayOrder) The display order of this item in relation to other itemsvoid
setDisplayRule
(String displayRule) The display rule for the item to be displayed in the zone.void
setItem
(ContentItem item) The ID of theContentItem
to display.toString()
-
Constructor Details
-
ContentZoneItem
public ContentZoneItem()
-
-
Method Details
-
getContentItemMembershipType
The content item membership type. Items can either be explicitly defined or be included based on a given rule. -
getContentItemMembershipRule
If the membership type isContentItemMembershipType.RULE_BASED
, this rule defines what items to include. -
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
The ID of theContentItem
to display.- Returns:
- The ID of the
ContentItem
to display.
-
getDisplayOrder
The display order of this item in relation to other items- Returns:
- the item's display order
-
setContentItemMembershipType
The content item membership type. Items can either be explicitly defined or be included based on a given rule. -
setContentItemMembershipRule
If the membership type isContentItemMembershipType.RULE_BASED
, this rule defines what items to include. -
setDisplayRule
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
The ID of theContentItem
to display.- Parameters:
itemId
- The ID of theContentItem
to display.
-
setDisplayOrder
The display order of this item in relation to other items- Parameters:
displayOrder
- the item's display order
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-