public class RepositoryTypeHierarchyExporter extends PerApplicationExporter implements DimensionNameProvider
Created: November 16 2011
Type | Property and Description |
---|---|
protected boolean |
isTypeEndecaDimension
Gets the value of the property typeEndecaDimensionProperty.
|
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryTypeHierarchyExporter.OutputPropertyWrapper
A simple output property wrapper that overrides compare and equals
to insulate against cloning of OutputProperties.
|
PerApplicationExporter.MinimalBulkLoaderResults, PerApplicationExporter.MinimalIncrementalLoaderResults, PerApplicationExporter.RecordsSubmittedPostProcessor<T extends PerApplicationExporter>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
TEST_GENERATION_CONTEXT_ATTRIBUTE
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
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()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
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<RepositoryTypeHierarchyExporter.OutputPropertyWrapper> |
getTypeOutputProperties()
Returns property typeOutputProperties.
|
boolean |
isCreateRootNode()
Returns property createRootNode.
|
boolean |
isForceToBaseline()
The method is called before starting partial indexing job for all Indexable
to allow forcing the job to baseline indexing.
|
boolean |
isForceToBaselineOnChange()
Returns property forceToBaselineOnChange
|
boolean |
isNeededForIncremental()
Whether this Indexable is needed for an incremental update.
|
protected boolean |
isTypeEndecaDimensionProperty()
Gets the value of the property typeEndecaDimensionProperty.
|
protected java.lang.String |
or(java.lang.String... pStrings)
Returns the first non-null value.
|
atg.repository.search.indexing.LoaderResults |
performPartialUpdate(IndexingTask pTask)
Do an incremental load (that is, process any Queued incremental
updates.
|
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 |
setForceToBaselineOnChange(boolean pForceToBaselineOnChange)
Sets property forceToBaselineOnChange
|
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<RepositoryTypeHierarchyExporter.OutputPropertyWrapper> pTypeOutputProperties)
Sets property typeOutputProperties.
|
afterRecordSubmits, beforeSessionEnd, cancel, createAdminServlet, createContext, createExportRecordsAsXML, export, exportRecords, getApplicationKeyFromContext, getDefaultLanguageForRecordStores, getDocumentSubmitter, getIndexingApplicationConfiguration, getIndexingOutputConfig, getIndexingOutputConfigPaths, getLocales, getRecordsSubmittedPostProcessors, getXmlOutputTitle, initContext, isEchoRecordsToStdout, isEndecaDimensionProperty, isSingleLanguageOverride, isSupportsStatusCounts, mayNeedCleanup, performBaselineUpdate, postIndexingCleanup, restoreDynamoRequestLocale, setDefaultLanguageForRecordStores, setDocumentSubmitter, setDynamoRequestLocale, setEchoRecordsToStdout, setIndexables, setIndexingApplicationConfiguration, setIndexingOutputConfig, setRecordsSubmittedPostProcessors
addLogListener, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
protected boolean isTypeEndecaDimensionProperty
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<RepositoryTypeHierarchyExporter.OutputPropertyWrapper> pTypeOutputProperties)
public java.util.Set<RepositoryTypeHierarchyExporter.OutputPropertyWrapper> 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()
public boolean isForceToBaselineOnChange()
public void setForceToBaselineOnChange(boolean pForceToBaselineOnChange)
public boolean isNeededForIncremental()
Indexable
isNeededForIncremental
in interface Indexable
isNeededForIncremental
in class PerApplicationExporter
public atg.repository.search.indexing.LoaderResults performPartialUpdate(IndexingTask pTask) throws IndexingException
Indexable
performPartialUpdate
in interface Indexable
performPartialUpdate
in class PerApplicationExporter
pTask
- the indexing task invoking the update. May be null
if called via another means.IndexingException
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
createExportRecords
in class PerApplicationExporter
pContext
- the current indexing context.pLocale
- to locale for which to generate records.IndexingException
- if there is a problempublic boolean isForceToBaseline()
PerApplicationExporter
isForceToBaseline
in interface Indexable
isForceToBaseline
in class PerApplicationExporter
true
if the job should be forced to baseline.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
GenericService
doStartService
in class PerApplicationExporter
ServiceException
- if the Service had a problem starting uppublic java.lang.String getDimensionNameForProperty(atg.repository.search.indexing.specifier.OutputProperty pProperty)
DimensionNameProvider
getDimensionNameForProperty
in interface DimensionNameProvider
protected boolean isTypeEndecaDimensionProperty()