com.endeca.portal.attributes.model
Class AttributeSettings

java.lang.Object
  extended by com.endeca.portal.attributes.model.AttributeSettings

public class AttributeSettings
extends java.lang.Object

This class represents the top-level container for the Unified Attribute Model (UAM). It contains attribute and group hash map collections, as well as an ordered list representing the order of groups. Instances of this class can be converted to JSON using Jackson.

Author:
Endeca Technologies,, Inc

Constructor Summary
AttributeSettings()
           
 
Method Summary
 AttributeSettings copyBPCs()
          This method creates a shallow copy of AttributeSettings by cloning it's containers (attributes, groups and GroupOrder).
 BPCFilter getAttributeFilter()
          An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups.
 java.util.HashMap<java.lang.String,Attribute> getAttributes()
           
 BPCFilter getGroupFilter()
          An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups.
 java.util.List<java.lang.String> getGroupOrder()
           
 java.util.HashMap<java.lang.String,Group> getGroups()
           
 void setAttributeFilter(BPCFilter attributeFilter)
           
 void setAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
           
 void setGroupFilter(BPCFilter groupFilter)
           
 void setGroupOrder(java.util.List<java.lang.String> groupOrder)
           
 void setGroups(java.util.HashMap<java.lang.String,Group> groups)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSettings

public AttributeSettings()
Method Detail

setAttributes

public void setAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
Parameters:
attributes - the attributes to set

getAttributes

public java.util.HashMap<java.lang.String,Attribute> getAttributes()
Returns:
the attributes

setGroups

public void setGroups(java.util.HashMap<java.lang.String,Group> groups)
Parameters:
groups - the groups to set

getGroups

public java.util.HashMap<java.lang.String,Group> getGroups()
Returns:
the groups

setGroupOrder

public void setGroupOrder(java.util.List<java.lang.String> groupOrder)
Parameters:
groupOrder - the groupOrder to set

getGroupOrder

public java.util.List<java.lang.String> getGroupOrder()
Returns:
the groupOrder

setAttributeFilter

public void setAttributeFilter(BPCFilter attributeFilter)
Parameters:
attributeFilter - the attributeFilter to set

getAttributeFilter

public BPCFilter getAttributeFilter()
An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups. These filter objects can be used as a convenience mechanism for storing a filter constructed based on the information contained in the global settings. These filter objects will be cached along with this AttributeSettings instance and can be reused by various portlets during merging.

Returns:
the attribute filter or null if it has not been set

setGroupFilter

public void setGroupFilter(BPCFilter groupFilter)
Parameters:
groupFilter - the groupFilter to set

getGroupFilter

public BPCFilter getGroupFilter()
An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups. These filter objects can be used as a convenience mechanism for storing a filter constructed based on the information contained in the global settings. These filter objects will be cached along with this AttributeSettings instance and can be reused by various portlets during merging.

Returns:
the group filter or null if it has not been set

copyBPCs

public AttributeSettings copyBPCs()
This method creates a shallow copy of AttributeSettings by cloning it's containers (attributes, groups and GroupOrder). The members of these containers are added by reference, so any change to these will be changed in both the new copy and the existing version. However, this method will allow you to add/delete members of these containers without effecting the original version.

Returns:
AttributeSettings