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
The property 'textContent' can be updated or extended by a client.
Version:
1.0
Author:
Ralph Soika
  • Field Details

  • Constructor Details

    • IndexEvent

      public IndexEvent(int eventType, ItemCollection document)
  • Method Details

    • 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: