Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.annotations.repository.listener
Class AnnotationFulltextEventListener

java.lang.Object
  extended by org.nuxeo.ecm.platform.annotations.repository.listener.AnnotationFulltextEventListener
All Implemented Interfaces:
EventListener

public class AnnotationFulltextEventListener
extends Object
implements EventListener

Extract the text of the body of the annotation to register it as a related text resource on the document for full-text indexing by the repository.


Field Summary
static String ANNOTATION_RESOURCE_ID_PREFIX
           
static String RELATED_TEXT_ID_PROPERTY
           
static String RELATED_TEXT_LIST_PROPERTY
           
static String RELATED_TEXT_PROPERTY
           
 
Constructor Summary
AnnotationFulltextEventListener()
           
 
Method Summary
 void handleEvent(Event event)
          Handle the given event.
static String makeResourceId(String annotationId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATED_TEXT_PROPERTY

public static final String RELATED_TEXT_PROPERTY
See Also:
Constant Field Values

RELATED_TEXT_ID_PROPERTY

public static final String RELATED_TEXT_ID_PROPERTY
See Also:
Constant Field Values

RELATED_TEXT_LIST_PROPERTY

public static final String RELATED_TEXT_LIST_PROPERTY
See Also:
Constant Field Values

ANNOTATION_RESOURCE_ID_PREFIX

public static final String ANNOTATION_RESOURCE_ID_PREFIX
See Also:
Constant Field Values
Constructor Detail

AnnotationFulltextEventListener

public AnnotationFulltextEventListener()
Method Detail

handleEvent

public void handleEvent(Event event)
                 throws ClientException
Description copied from interface: EventListener
Handle the given event. The listener can cancel the event by calling Event.cancel()

Specified by:
handleEvent in interface EventListener
Parameters:
event - the event
Throws:
ClientException

makeResourceId

public static String makeResourceId(String annotationId)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.