public class ContentSlotConfig extends BasicContentItem
ContentSlotHandler
configuration model.
The ContentSlotConfig
is a ContentItem
that
describes where Experience Manager content should be retrieved from,
which types of content to retrieve, and how many items are required.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ContentSlotConfig()
Constructor that sets the type to "ContentSlot".
|
ContentSlotConfig(ContentItem pContentItem)
Creates a
ContentSlotConfig and copies the configuration present
in the input ContentItem . |
ContentSlotConfig(String pType)
Creates a
ContentSlotConfig . |
ContentSlotConfig(String pContentCollection,
int pRuleLimit)
Deprecated.
|
ContentSlotConfig(String pType,
String pContentCollection,
int pRuleLimit)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentCollection()
Deprecated.
Use
getContentPaths() instead |
List<String> |
getContentPaths()
Returns the paths which will be searched for content items to be
considered for inclusion in this slot.
|
int |
getRuleLimit()
Returns the maximum number of rules that can fire for this slot.
|
List<String> |
getTemplateIds()
Returns the template IDs from which content items must have been
created in order to be considered for inclusion in this slot.
|
List<String> |
getTemplateTypes()
Returns the template types from which content items must have been
created in order to be considered for inclusion in this slot.
|
void |
setContentCollection(String contentCollection)
Deprecated.
Use
setContentPaths(java.util.List) instead |
void |
setContentPaths(List<String> contentPaths)
Sets which paths will be searched for content items to be
considered for inclusion in this slot.
|
void |
setRuleLimit(int ruleLimit)
Sets the maximum number of rules that can fire for this slot.
|
void |
setTemplateIds(List<String> templateIds)
Sets the template IDs from which content items must have been
created in order to be considered for inclusion in this slot.
|
void |
setTemplateTypes(List<String> templateTypes)
Sets the template types from which content items must have been
created in order to be considered for inclusion in this slot.
|
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
@Deprecated public ContentSlotConfig(String pContentCollection, int pRuleLimit)
ContentSlotConfig()
ContentSlotConfig
with type "ContentSlot" and specified
content collection and rule limit.pContentCollection
- the content collectionpRuleLimit
- the maximum number of rules that can fire for this slot@Deprecated public ContentSlotConfig(String pType, String pContentCollection, int pRuleLimit)
ContentSlotConfig(String)
ContentSlotConfig
.pType
- the type for this config objectpContentCollection
- the content collectionpRuleLimit
- the maximum number of rules that can fire for this slotpublic ContentSlotConfig(ContentItem pContentItem)
ContentSlotConfig
and copies the configuration present
in the input ContentItem
.pContentItem
- the contents for this instancepublic ContentSlotConfig()
public ContentSlotConfig(String pType)
ContentSlotConfig
.pType
- the type for this config object@Deprecated public String getContentCollection()
getContentPaths()
instead@Deprecated public void setContentCollection(String contentCollection)
setContentPaths(java.util.List)
insteadpublic List<String> getContentPaths()
public void setContentPaths(List<String> contentPaths)
public List<String> getTemplateTypes()
public void setTemplateTypes(List<String> templateTypes)
public List<String> getTemplateIds()
public void setTemplateIds(List<String> templateIds)
public int getRuleLimit()
1
.public void setRuleLimit(int ruleLimit)
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.