Class PartyIndexer
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
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
CustomerIndexer,EmployeeIndexer,VendorIndexer,WarehouseIndexer
-
Field Summary
FieldsFields inherited from class com.echothree.model.control.index.server.indexer.BaseIndexer
appearanceControl, componentControl, eea, entityAliasControl, entityAliasTypes, entityAttributes, entityType, entityTypeControl, eventControl, index, indexControl, indexStatus, indexWriter, language, log, tagControl, tagScopes, workflowControlFields inherited from class com.echothree.util.server.control.BaseLogic
coreControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPartyFieldsToDocument(Party party, String entityName, org.apache.lucene.document.Document document) protected org.apache.lucene.document.DocumentconvertToDocument(EntityInstance entityInstance, Party party) protected org.apache.lucene.analysis.Analyzerprotected PartygetEntity(EntityInstance entityInstance) protected abstract StringgetEntityNameFromParty(Party party) All PartyTypes have their own EntityName in addition to the partyName.protected BaseIndexer<Party> setup(ExecutionErrorAccumulator eea, Index index, String partyTypeName, String entityNameIndexField) Methods inherited from class com.echothree.model.control.index.server.indexer.BaseIndexer
addEntityInstanceFieldsToDocument, addEntityInstanceToDocument, addEntityToIndex, close, closeIndexWriter, forceReindex, getEntityType, getIndex, newDocumentWithEntityInstanceFields, open, openIndexWriter, removeEntityFromIndex, setup, updateIndexMethods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Field Details
-
partyType
-
entityNameIndexField
-
-
Constructor Details
-
PartyIndexer
public PartyIndexer()
-
-
Method Details
-
setup
protected BaseIndexer<Party> setup(ExecutionErrorAccumulator eea, Index index, String partyTypeName, String entityNameIndexField) -
getEntity
- Specified by:
getEntityin classBaseIndexer<Party>
-
getAnalyzer
- Overrides:
getAnalyzerin classBaseIndexer<Party>
-
getEntityNameFromParty
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.- 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) -
convertToDocument
protected org.apache.lucene.document.Document convertToDocument(EntityInstance entityInstance, Party party) - Specified by:
convertToDocumentin classBaseIndexer<Party>
-