Class ContentZoneItemList
java.lang.Object
com.broadleafcommerce.content.domain.ContentZoneItemList
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
,com.broadleafcommerce.translation.mapping.SubIdentifiable
,Serializable
public class ContentZoneItemList
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware, com.broadleafcommerce.translation.mapping.SubIdentifiable
Represents a collection of
ContentZoneItems
related to a
ContentZone
that should be returned together when the displayRule
matches the
request context.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Field Summary
Fields inherited from interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
DEFAULT_FIELD_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
A subset ofTracking
information to expose the context state for this object.The display rule required to be matched by requests for the list to be displayed in the zone.getId()
The id for this list.getItems()
TheContentItems
in this list.getName()
The name of this list.int
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setDisplayRule
(String displayRule) The display rule required to be matched by requests for the list to be displayed in the zone.void
The id for this list.void
setItems
(List<ContentZoneItem> items) TheContentItems
in this list.void
The name of this list.toString()
-
Constructor Details
-
ContentZoneItemList
public ContentZoneItemList()
-
-
Method Details
-
getItems
TheContentItems
in this list.- Returns:
- The
ContentItems
in this list.
-
getId
The id for this list. Should be unique for the parentContentZone
.- Specified by:
getId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- Returns:
- The id for this list.
-
getName
The name of this list. This is used in the admin UI.- Returns:
- The name of this list.
-
getDisplayRule
The display rule required to be matched by requests for the list to be displayed in the zone.- Returns:
- The display rule required to be matched by requests for the list to be displayed in the zone.
-
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()A subset ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setItems
TheContentItems
in this list.- Parameters:
items
- TheContentItems
in this list.
-
setId
The id for this list. Should be unique for the parentContentZone
.- Specified by:
setId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- Parameters:
id
- The id for this list.
-
setName
The name of this list. This is used in the admin UI.- Parameters:
name
- The name of this list.
-
setDisplayRule
The display rule required to be matched by requests for the list to be displayed in the zone.- Parameters:
displayRule
- The display rule required to be matched by requests for the list to be displayed in the zone.
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-