Class VendorIndexer
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.index.server.indexer.BaseIndexer<Party>
com.echothree.model.control.party.server.indexer.PartyIndexer
com.echothree.model.control.vendor.server.indexer.VendorIndexer
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class com.echothree.model.control.party.server.indexer.PartyIndexer
entityNameIndexField, partyType
Fields inherited from class com.echothree.model.control.index.server.indexer.BaseIndexer
coreControl, eea, entityAliasTypes, entityAttributes, entityType, index, indexControl, indexStatus, indexWriter, language, log, tagControl, tagScopes, workflowControl
-
Constructor Summary
ConstructorsConstructorDescriptionVendorIndexer
(ExecutionErrorAccumulator eea, Index index) Creates a new instance of VendorIndexer -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPartyFieldsToDocument
(Party party, String entityName, org.apache.lucene.document.Document document) protected org.apache.lucene.analysis.Analyzer
protected String
getEntityNameFromParty
(Party party) All PartyTypes have their own EntityName in addition to the partyName.Methods inherited from class com.echothree.model.control.party.server.indexer.PartyIndexer
convertToDocument, getEntity
Methods inherited from class com.echothree.model.control.index.server.indexer.BaseIndexer
addEntityToIndex, close, closeIndexWriter, forceReindex, getEntityType, getIndex, newDocumentWithEntityInstanceFields, open, openIndexWriter, removeEntityFromIndex, updateIndex
Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Constructor Details
-
VendorIndexer
Creates a new instance of VendorIndexer
-
-
Method Details
-
getAnalyzer
- Overrides:
getAnalyzer
in classPartyIndexer
-
getEntityNameFromParty
Description copied from class:PartyIndexer
All PartyTypes have their own EntityName in addition to the partyName. If null is returned for this field, it likely indicates that the Party has been deleted before indexing picked it up and it will be ignored.- Specified by:
getEntityNameFromParty
in classPartyIndexer
- Parameters:
party
- Party to return the EntityName for- Returns:
- String with the EntityName, or null if it was not found
-
addPartyFieldsToDocument
protected void addPartyFieldsToDocument(Party party, String entityName, org.apache.lucene.document.Document document) - Overrides:
addPartyFieldsToDocument
in classPartyIndexer
-