public abstract class BasicSearchIndexerUpdateStrategy extends AbstractSearchIndexerUpdateStrategy
AbstractSearchIndexerUpdateStrategy
with a simple
implementation for isResponsible(SearchIndexerSource)
using a fixed
set of update-strategies
.Modifier and Type | Field and Description |
---|---|
private String[] |
responsibleStrategies |
CONTEXT_VARIABLE_ENTRY_UPDATE_VISITOR, CONTEXT_VARIABLE_RESOURCE_URI_SET
Constructor and Description |
---|
BasicSearchIndexerUpdateStrategy(String... responsibleStrategies)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isResponsible(SearchIndexerSource source)
This method determines if this
SearchIndexerUpdateStrategy is
responsible for indexing the given
source . |
createEntryUpdateVisitor, doInitialize, getChangeType, getEntryUpdateVisitor, getIndexerDependencies, index, index, indexRecursive, indexRecursive, isFullIndexing, postIndex, preIndex, setIndexerDependencies
createLogger, getLogger
doInitialized, getInitializationState, initialize
private final String[] responsibleStrategies
isResponsible(SearchIndexerSource)
public BasicSearchIndexerUpdateStrategy(String... responsibleStrategies)
responsibleStrategies
- are the
update-strategies
this
SearchIndexerUpdateStrategy
is responsible
for.public boolean isResponsible(SearchIndexerSource source)
SearchIndexerUpdateStrategy
is
responsible for indexing
the given
source
. update-strategy
matches a
specific value.source
- is the SearchIndexerSource
to index (incremental)
according to its update-type
.true
SearchIndexerUpdateStrategyManager.getStrategy(SearchIndexerSource)
Copyright © 2001–2016 mmm-Team. All rights reserved.