public class RepositoryTypeHierarchyExporter extends PerApplicationExporter implements DimensionNameProvider
Created: November 16 2011
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
RepositoryTypeHierarchyExporter() |
Modifier and Type | Method and Description |
---|---|
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.lang.String |
getRootParentSpecifier()
Returns property getRootParentSpecifier.
|
java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> |
getTypeOutputProperties()
Returns property typeOutputProperties.
|
boolean |
isCreateRootNode()
Returns property createRootNode.
|
protected java.lang.String |
or(java.lang.String... pStrings)
Returns the first non-null value.
|
void |
setCreateRootNode(boolean pCreateRootNode)
Sets property createRootNode.
|
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 |
setRootParentSpecifier(java.lang.String pRootParentSpecifier)
Sets property getRootParentSpecifier.
|
void |
setTypeOutputProperties(java.util.Set<atg.repository.search.indexing.specifier.OutputProperty> pTypeOutputProperties)
Sets property typeOutputProperties.
|
public void setCreateRootNode(boolean pCreateRootNode)
public boolean isCreateRootNode()
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()
public void setRootParentSpecifier(java.lang.String pRootParentSpecifier)
public java.lang.String getRootParentSpecifier()
protected java.util.Set<RepositoryItemDescriptor> getAllReferencedTypes() throws IndexingException
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 IndexingException
pContext
- the current indexing context.pLocale
- to locale for which to generate records.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