com.endeca.infront.cartridge
Class ContentSlotConfig

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by com.endeca.infront.assembler.BasicContentItem
              extended by com.endeca.infront.cartridge.ContentSlotConfig
All Implemented Interfaces:
ContentItem, Serializable, Cloneable, Map<String,Object>

public class ContentSlotConfig
extends BasicContentItem

ContentSlotHandler configuration model.

The ContentSlotConfig is a ContentItem that contains the name of the content collection from which to retrieve Experience Manager XML content, and the maximum number of rules to retrieve for that content collection.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
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 pContentCollection, int pRuleLimit)
          Creates a ContentSlotConfig with type "ContentSlot" and specified content collection and rule limit.
ContentSlotConfig(String pType, String pContentCollection, int pRuleLimit)
          Creates a ContentSlotConfig.
 
Method Summary
 String getContentCollection()
          Returns the content collection name.
 int getRuleLimit()
          Returns the maximum number of rules that can fire for this slot.
 void setContentCollection(String contentCollection)
          Sets the content collection name.
 void setRuleLimit(int ruleLimit)
          Sets the maximum number of rules that can fire for this slot.
 
Methods inherited from class com.endeca.infront.assembler.BasicContentItem
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ContentSlotConfig

public ContentSlotConfig(String pContentCollection,
                         int pRuleLimit)
Creates a ContentSlotConfig with type "ContentSlot" and specified content collection and rule limit.

Parameters:
pContentCollection - the content collection
pRuleLimit - the maximum number of rules that can fire for this slot

ContentSlotConfig

public ContentSlotConfig(String pType,
                         String pContentCollection,
                         int pRuleLimit)
Creates a ContentSlotConfig.

Parameters:
pType - the type for this config object
pContentCollection - the content collection
pRuleLimit - the maximum number of rules that can fire for this slot

ContentSlotConfig

public ContentSlotConfig(ContentItem pContentItem)
Creates a ContentSlotConfig and copies the configuration present in the input ContentItem.

Parameters:
pContentItem - the contents for this instance

ContentSlotConfig

public ContentSlotConfig()
Constructor that sets the type to "ContentSlot".

Method Detail

getContentCollection

public String getContentCollection()
Returns the content collection name.


setContentCollection

public void setContentCollection(String contentCollection)
Sets the content collection name.


getRuleLimit

public int getRuleLimit()
Returns the maximum number of rules that can fire for this slot. The default value is 1.


setRuleLimit

public void setRuleLimit(int ruleLimit)
Sets the maximum number of rules that can fire for this slot.



Copyright © 2012, Oracle and/or its affiliates. All rights reserved.