|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.SemanticView
public class SemanticView
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.
Field Summary | |
---|---|
static java.lang.String |
PERMANENT_GROUP_ALL_DN
|
static java.lang.String |
PERMANENT_GROUP_ALL_KEY
|
static java.lang.String |
PERMANENT_GROUP_OTHER_DN
|
static java.lang.String |
PERMANENT_GROUP_OTHER_KEY
|
Constructor Summary | |
---|---|
SemanticView()
Still required for JSON deserialization by components that store SemanticViews as a delta from application-wide defaults. |
|
SemanticView(java.lang.String viewKey)
Create a new SemanticView. |
Method Summary | |
---|---|
void |
addAllSourceCollections(java.util.Collection<CollectionBaseView> sources)
Adds all source collections at once. |
void |
addDependentSource(java.lang.String source)
|
SemanticView |
copyBPCs()
This method creates a shallow copy of SemanticView by cloning it's containers (attributes, predefinedMetrics, metadata, groups and GroupOrder). |
void |
generateDefaultAttributeKeyMap()
Function to generate mappings from attribute key to default locale attribute key |
java.util.HashMap<java.lang.String,Attribute> |
getAllAttributes()
This call returns the master list of all attributes including all attributes use for localization. |
Group |
getAllGroup()
Get all group, create the all group dynamically |
BPCFilter |
getAttributeFilter()
An AttributeSettings instance can contain pre-constructed BPC filters for attributes and groups. |
java.util.HashMap<java.lang.String,Attribute> |
getAttributes()
This returns the reduced attributes for default locale only |
java.lang.String |
getDefaultKey(java.lang.String attributeKey)
Function to get the default locale attribute key for the given attribute key. |
java.util.HashMap<java.lang.String,Attribute> |
getDefaultLocaleAttributes()
|
java.util.Set<java.lang.String> |
getDependentSources()
|
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()
|
java.lang.String |
getKey()
|
java.util.Locale |
getLocaleString(java.lang.String attributeKey,
java.util.Locale locale)
|
java.lang.String |
getLocalizedKey(java.lang.String attributeKey,
java.util.Locale locale)
Function to get the locale specific attribute key for the given attribute key and locale. |
ViewMetadata |
getMetadata()
|
java.util.List<java.lang.String> |
getOtherAttrKeys()
|
Group |
getOtherGroup()
Get other group, create the other group dynamically |
com.endeca.mdex.eql_parser.types.Query |
getParsedDefinition()
|
java.util.LinkedHashMap<java.lang.String,PredefinedMetric> |
getPredefinedMetrics()
|
Group |
getRealOtherGroup()
|
protected com.endeca.mdex.sconfig._2010.types.SemanticEntity |
getSemanticEntity()
|
java.util.Set<CollectionBaseView> |
getSourceCollections()
|
boolean |
hasLocalizedAttributes()
|
boolean |
isActive()
|
boolean |
isValid()
|
void |
reduceAttributes()
All in one method for trickling down locale specific attributes to just default attributes. |
void |
setActive(boolean isActive)
|
void |
setAllAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
|
void |
setAllGroup(Group allGroup)
|
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)
|
protected void |
setKey(java.lang.String viewKey)
|
void |
setMetadata(ViewMetadata metadata)
|
void |
setOtherGroup(Group otherGroup)
|
void |
setParsedDefinition(com.endeca.mdex.eql_parser.types.Query parsedDefinition)
|
void |
setPredefinedMetrics(java.util.LinkedHashMap<java.lang.String,PredefinedMetric> predefinedMetrics)
|
protected void |
setSemanticEntity(com.endeca.mdex.sconfig._2010.types.SemanticEntity se)
|
void |
setValid(boolean isValid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PERMANENT_GROUP_ALL_KEY
public static final java.lang.String PERMANENT_GROUP_ALL_DN
public static final java.lang.String PERMANENT_GROUP_OTHER_KEY
public static final java.lang.String PERMANENT_GROUP_OTHER_DN
Constructor Detail |
---|
public SemanticView()
public SemanticView(java.lang.String viewKey)
viewKey
- Method Detail |
---|
protected void setKey(java.lang.String viewKey)
public java.lang.String getKey()
protected void setSemanticEntity(com.endeca.mdex.sconfig._2010.types.SemanticEntity se)
protected com.endeca.mdex.sconfig._2010.types.SemanticEntity getSemanticEntity()
public void setAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
attributes
- the attributes to setpublic void setAllAttributes(java.util.HashMap<java.lang.String,Attribute> attributes)
attributes
- the attributes to setpublic java.util.HashMap<java.lang.String,Attribute> getAttributes()
public java.util.HashMap<java.lang.String,Attribute> getAllAttributes()
reduceAttributes
public void setGroups(java.util.HashMap<java.lang.String,Group> groups)
groups
- the groups to setpublic java.util.HashMap<java.lang.String,Group> getGroups()
public void setGroupOrder(java.util.List<java.lang.String> groupOrder)
groupOrder
- the groupOrder to setpublic java.util.List<java.lang.String> getGroupOrder()
public boolean isActive()
public void setActive(boolean isActive)
public boolean isValid()
public void setValid(boolean isValid)
public void setAttributeFilter(BPCFilter attributeFilter)
attributeFilter
- the attributeFilter to setpublic BPCFilter getAttributeFilter()
public void setGroupFilter(BPCFilter groupFilter)
groupFilter
- the groupFilter to setpublic BPCFilter getGroupFilter()
public java.util.LinkedHashMap<java.lang.String,PredefinedMetric> getPredefinedMetrics()
public void setPredefinedMetrics(java.util.LinkedHashMap<java.lang.String,PredefinedMetric> predefinedMetrics)
public ViewMetadata getMetadata()
public void setMetadata(ViewMetadata metadata)
public com.endeca.mdex.eql_parser.types.Query getParsedDefinition()
public void setParsedDefinition(com.endeca.mdex.eql_parser.types.Query parsedDefinition)
public void setAllGroup(Group allGroup)
allGroup
- public Group getAllGroup()
public void setOtherGroup(Group otherGroup)
public Group getOtherGroup()
public void addAllSourceCollections(java.util.Collection<CollectionBaseView> sources)
sourceCollections
- a Collection of CollectionBaseView
s
java.lang.IllegalArgumentException
- if specified Collection is nullpublic java.util.Set<CollectionBaseView> getSourceCollections()
public void addDependentSource(java.lang.String source)
public java.util.Set<java.lang.String> getDependentSources()
public java.util.List<java.lang.String> getOtherAttrKeys()
public Group getRealOtherGroup()
public SemanticView copyBPCs()
public java.lang.String getLocalizedKey(java.lang.String attributeKey, java.util.Locale locale)
AttributeKeyConverter
getLocalizedKey
in interface AttributeKeyConverter
public java.lang.String getDefaultKey(java.lang.String attributeKey)
AttributeKeyConverter
getDefaultKey
in interface AttributeKeyConverter
public java.util.Locale getLocaleString(java.lang.String attributeKey, java.util.Locale locale)
public java.util.HashMap<java.lang.String,Attribute> getDefaultLocaleAttributes()
public void generateDefaultAttributeKeyMap()
public boolean hasLocalizedAttributes()
public void reduceAttributes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |