|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PerApplicationExporter atg.endeca.index.dimension.RepositoryTypeHierarchyExporter
public class RepositoryTypeHierarchyExporter
This class exports the repository hierarchy of any items referrred to by an IndexingOutputConfig as an Endeca dimension hierarchy.
Created: November 16 2011
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
RepositoryTypeHierarchyExporter()
|
Method Summary | |
---|---|
protected void |
addParentAndChildTypes(java.util.Set<RepositoryItemDescriptor> pTypes,
RepositoryItemDescriptor pType)
Add pType and any supertypes and sub-types of pType to pTypes. |
protected void |
addReferencedTypes(java.util.Set<RepositoryItemDescriptor> pTypes,
atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier)
Add the types referenced by OutputItemSpecifiers to pTypes, and do the same for any subItem OutputItemSpecifiers. |
protected Records |
createExportRecords(EndecaContext pContext,
java.util.Locale pLocale)
Create the export records for the specified locale. |
protected Record |
createMultiLanguageNodeFromType(RepositoryItemDescriptor pItemDescriptor)
Create a dimvals Record from the specified RepositoryItemDescriptor type and all given locales |
protected Record |
createNodeFromType(RepositoryItemDescriptor pItemDescriptor,
java.util.Locale pLocale)
Create a dimvals Record from the specified RepositoryItemDescriptor type. |
protected Record |
createRootNode(java.util.Locale pLocale)
Create a dimvals root node Record |
void |
doStartService()
|
protected java.util.Set<RepositoryItemDescriptor> |
getAllReferencedTypes()
Get the set of all the types mentioned in the IndexingOutputConfig, and all the parents and children of those types. |
java.lang.String |
getDimensionDisplayName()
Returns property dimensionDisplayName. |
java.lang.String |
getDimensionDisplayNameFromResource()
Returns property dimensionDisplayNameFromResource. |
protected java.lang.String |
getDimensionDisplayNameFromResource(java.util.Locale pLocale)
|
java.lang.String |
getDimensionName()
Returns property dimensionName. |
java.lang.String |
getDimensionNameForProperty(atg.repository.search.indexing.specifier.OutputProperty pProperty)
Get the dimension name for the specified property. |
boolean |
getMultiLanguageSynonyms()
Returns property multiLanguageSynonyms |
java.lang.String |
getResourceBundleName()
Returns property resourceBundleName. |
java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> |
getTypeOutputProperties()
Returns property typeOutputProperties. |
protected java.lang.String |
or(java.lang.String... pStrings)
Returns the first non-null value. |
void |
setDimensionDisplayName(java.lang.String pDimensionDisplayName)
Sets property dimensionDisplayName. |
void |
setDimensionName(java.lang.String pDimensionName)
Sets property dimensionName. |
void |
setMultiLanguageSynonyms(boolean pMultiLanguageSynonyms)
Sets property multiLanguageSynonyms. |
void |
setResourceBundleName(java.lang.String pResourceBundleName)
Sets property resourceBundleName. |
void |
setTypeOutputProperties(java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> pTypeOutputProperties)
Sets property typeOutputProperties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RepositoryTypeHierarchyExporter()
Method Detail |
---|
public void setResourceBundleName(java.lang.String pResourceBundleName)
public java.lang.String getResourceBundleName()
public void setDimensionName(java.lang.String pDimensionName)
public java.lang.String getDimensionName()
public void setDimensionDisplayName(java.lang.String pDimensionDisplayName)
public java.lang.String getDimensionDisplayName()
public void setTypeOutputProperties(java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> pTypeOutputProperties)
public java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> getTypeOutputProperties()
public java.lang.String getDimensionDisplayNameFromResource()
protected java.lang.String getDimensionDisplayNameFromResource(java.util.Locale pLocale)
public void setMultiLanguageSynonyms(boolean pMultiLanguageSynonyms)
public boolean getMultiLanguageSynonyms()
protected java.util.Set<RepositoryItemDescriptor> getAllReferencedTypes() throws atg.repository.search.indexing.IndexingException
atg.repository.search.indexing.IndexingException
protected void addReferencedTypes(java.util.Set<RepositoryItemDescriptor> pTypes, atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier)
pTypes
- the set of types to add to.pSpecifier
- the specifier whose referenced type to add,
as well as the types referenced by any sub-items.protected void addParentAndChildTypes(java.util.Set<RepositoryItemDescriptor> pTypes, RepositoryItemDescriptor pType) throws RepositoryException
pTypes
- the set of types to add to.pType
- the type to add.
RepositoryException
protected Records createExportRecords(EndecaContext pContext, java.util.Locale pLocale) throws atg.repository.search.indexing.IndexingException
pContext
- the current indexing context.pLocale
- to locale for which to generate records.
atg.repository.search.indexing.IndexingException
protected Record createNodeFromType(RepositoryItemDescriptor pItemDescriptor, java.util.Locale pLocale)
pItemDescriptor
- the repository item type to create
a dimvals Record for.pLocale
- the locale to which we are currently exporting.protected Record createMultiLanguageNodeFromType(RepositoryItemDescriptor pItemDescriptor)
pItemDescriptor
- the repository item type to create
a dimvals Record for.protected Record createRootNode(java.util.Locale pLocale)
pLocale
- the locale to which we are exporting.protected java.lang.String or(java.lang.String... pStrings)
public void doStartService() throws ServiceException
ServiceException
public java.lang.String getDimensionNameForProperty(atg.repository.search.indexing.specifier.OutputProperty pProperty)
DimensionNameProvider
getDimensionNameForProperty
in interface DimensionNameProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |