Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.coremodel
Class BinaryTextListener

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.coremodel.BinaryTextListener
All Implemented Interfaces:
PostCommitEventListener

public class BinaryTextListener
extends java.lang.Object
implements PostCommitEventListener

Listener that does fulltext extraction from the blobs of documents whose ids have been recorded in the bundle's events.

Author:
Florent Guillaume, Stephane Lacoin

Field Summary
static java.lang.String EVENT_NAME
           
 
Constructor Summary
BinaryTextListener()
           
 
Method Summary
 java.lang.String getFulltextIndexSuffix(java.lang.String indexName)
           
 void handleEvent(EventBundle eventBundle)
          Handles the set of events that were raised during the life of an user operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_NAME

public static final java.lang.String EVENT_NAME
See Also:
Constant Field Values
Constructor Detail

BinaryTextListener

public BinaryTextListener()
                   throws ClientException
Throws:
ClientException
Method Detail

handleEvent

public void handleEvent(EventBundle eventBundle)
                 throws ClientException
Description copied from interface: PostCommitEventListener
Handles the set of events that were raised during the life of an user operation.

The events are fired as a BundleEvent after the transaction is committed.

Specified by:
handleEvent in interface PostCommitEventListener
Parameters:
eventBundle - the events to handle
Throws:
ClientException

getFulltextIndexSuffix

public java.lang.String getFulltextIndexSuffix(java.lang.String indexName)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.