org.nuxeo.ecm.platform.annotations.repository.listener
Class AnnotationFulltextEventListener
java.lang.Object
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.
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
AnnotationFulltextEventListener
public AnnotationFulltextEventListener()
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)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.