Package org.imixs.workflow.engine.index
Class IndexEvent
- java.lang.Object
-
- org.imixs.workflow.engine.index.IndexEvent
-
public class IndexEvent extends Object
The IndexEvent provides a CDI event fired immediately before a document is indexed by the search service implementation.An observer CDI bean can change or extend the text content to be indexed. The IndexEvent defines only one event type:
- ON_INDEX_UPDATE - is send immediately before a document will be indexed
- Version:
- 1.0
- Author:
- Ralph Soika
-
-
Field Summary
Fields Modifier and Type Field Description static int
ON_INDEX_UPDATE
-
Constructor Summary
Constructors Constructor Description IndexEvent(int eventType, ItemCollection document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemCollection
getDocument()
Returns the document to be indexedint
getEventType()
String
getTextContent()
Returns the textContent for the given document to be indexed.void
setTextContent(String textContent)
Update the textContent for the given document to be indexed.
-
-
-
Field Detail
-
ON_INDEX_UPDATE
public static final int ON_INDEX_UPDATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexEvent
public IndexEvent(int eventType, ItemCollection document)
-
-
Method Detail
-
getTextContent
public String getTextContent()
Returns the textContent for the given document to be indexed.- Returns:
-
setTextContent
public void setTextContent(String textContent)
Update the textContent for the given document to be indexed.
-
getEventType
public int getEventType()
-
getDocument
public ItemCollection getDocument()
Returns the document to be indexed- Returns:
-
-