public class DynamicPropertySchemaSynchronization extends atg.endeca.index.ExporterHelperIndexingSynchronization<SchemaExporter> implements atg.repository.search.indexing.IndexingSynchronization, atg.repository.search.indexing.ProcessingPropertiesCallback
Created: January 25 2012
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicPropertySchemaSynchronization.DynamicOutputPropertyInfo
A class that to track dynamic output property info.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_DYNAMIC_PROPERTIES
The context attribute used to store dynamic properties.
|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
DynamicPropertySchemaSynchronization() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSessionStart(Context pContext)
This method is invoked immediately after a DocumentSubmitter session
is started.
|
protected Records |
createAdditionalRecordsForCurrentApplication(EndecaContext pContext) |
void |
doStartService()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
java.util.Map<java.lang.String,java.lang.String> |
getEveryDynamicSchemaRecordProperties()
Returns property everyDynamicSchemaRecordProperties.
|
protected java.util.List<atg.repository.search.indexing.specifier.OutputProperty> |
getOutputPropertiesForApplication(java.util.Collection<DynamicPropertySchemaSynchronization.DynamicOutputPropertyInfo> pInfos,
java.lang.String pApplicationName)
Return the list of output properties associated with the specified
locale.
|
SchemaExporter |
getSchemaExporter()
Returns property schemaExporter.
|
java.lang.String |
getSchemaExporterPath()
Returns property schemaExporterPath.
|
protected void |
modifyRecords(java.util.List<atg.repository.search.indexing.specifier.OutputProperty> pSourceProperties,
Records pRecords,
java.util.Locale pLocale)
Make any modifications to the records generated by the specified locale.
|
protected void |
processDynamicOutputProperties(Context pContext,
RepositoryItem pItem,
atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier,
java.util.Collection<atg.repository.search.indexing.specifier.OutputProperty> pOutputProperties,
boolean pIsMeta)
Process any dynamic output properties by adding them to
ATTR_DYNAMIC_PROPERTIES as needed.
|
void |
processingProperties(Context pContext,
RepositoryItem pItem,
atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier,
atg.repository.search.indexing.specifier.OutputProperty[] pProperties,
boolean pIsMeta,
java.util.Map<atg.repository.search.indexing.specifier.OutputProperty,java.lang.Object> pGeneratorMap) |
void |
setEveryDynamicSchemaRecordProperties(java.util.Map<java.lang.String,java.lang.String> pEveryDynamicSchemaRecordProperties)
Sets property everyDynamicSchemaRecordProperties.
|
void |
setSchemaExporter(SchemaExporter pSchemaExporter)
Sets property schemaExporter.
|
void |
setSchemaExporterPath(java.lang.String pSchemaExporterPath)
Sets property schemaExporterPath.
|
protected boolean |
shouldSubmitAdditionalRecords(EndecaContext pEndecaContext) |
beforeSessionEnd, getCurrentApplicationKey, getCurrentApplicationName, getDocumentSubmitter, getExporter, getIndexingTaskOfExporter, setExporteraddLogListener, createAdminServlet, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public static final java.lang.String ATTR_DYNAMIC_PROPERTIES
public DynamicPropertySchemaSynchronization()
public void setEveryDynamicSchemaRecordProperties(java.util.Map<java.lang.String,java.lang.String> pEveryDynamicSchemaRecordProperties)
public java.util.Map<java.lang.String,java.lang.String> getEveryDynamicSchemaRecordProperties()
public void setSchemaExporter(SchemaExporter pSchemaExporter)
public SchemaExporter getSchemaExporter()
public void setSchemaExporterPath(java.lang.String pSchemaExporterPath)
public java.lang.String getSchemaExporterPath()
public void afterSessionStart(Context pContext) throws IndexingException
afterSessionStart in interface atg.repository.search.indexing.IndexingSynchronizationafterSessionStart in class atg.endeca.index.ExporterHelperIndexingSynchronization<SchemaExporter>pContext - the Context for the current indexing operation. The
DocumentSubmitterSession is available as a property, as is
the IndexingOutputConfig and other state information.IndexingExceptionprotected boolean shouldSubmitAdditionalRecords(EndecaContext pEndecaContext)
shouldSubmitAdditionalRecords in class atg.endeca.index.ExporterHelperIndexingSynchronization<SchemaExporter>protected Records createAdditionalRecordsForCurrentApplication(EndecaContext pContext)
createAdditionalRecordsForCurrentApplication in class atg.endeca.index.ExporterHelperIndexingSynchronization<SchemaExporter>protected void modifyRecords(java.util.List<atg.repository.search.indexing.specifier.OutputProperty> pSourceProperties,
Records pRecords,
java.util.Locale pLocale)
protected java.util.List<atg.repository.search.indexing.specifier.OutputProperty> getOutputPropertiesForApplication(java.util.Collection<DynamicPropertySchemaSynchronization.DynamicOutputPropertyInfo> pInfos, java.lang.String pApplicationName)
pTryWithoutVariantAndCountry. - If set to true tries to match the locale
firstly with the language_country_variant. If this is not successful try to
match without the variant and countrypublic void processingProperties(Context pContext, RepositoryItem pItem, atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier, atg.repository.search.indexing.specifier.OutputProperty[] pProperties, boolean pIsMeta, java.util.Map<atg.repository.search.indexing.specifier.OutputProperty,java.lang.Object> pGeneratorMap)
processingProperties in interface atg.repository.search.indexing.ProcessingPropertiesCallbackprotected void processDynamicOutputProperties(Context pContext, RepositoryItem pItem, atg.repository.search.indexing.specifier.OutputItemSpecifier pSpecifier, java.util.Collection<atg.repository.search.indexing.specifier.OutputProperty> pOutputProperties, boolean pIsMeta)
pContext - the current indexing context objectpItem - the current respository item (not directly used)pSpecifier - the parent output item specificpOutputProperties - the (presumably dynamic) output properties.public void doStartService()
throws ServiceException
GenericServicedoStartService in class GenericServiceServiceException - if the Service had a problem starting up