org.nuxeo.ecm.core.search.api.events
Class IndexingEventDescriptor
java.lang.Object
org.nuxeo.ecm.core.search.api.events.IndexingEventDescriptor
- All Implemented Interfaces:
- Serializable, IndexingEventConf
public class IndexingEventDescriptor
- extends Object
- implements IndexingEventConf
- Author:
- Georges Racinet
- See Also:
- Serialized Form
IndexingEventDescriptor
public IndexingEventDescriptor()
IndexingEventDescriptor
public IndexingEventDescriptor(String action,
Set<String> resources,
boolean recursive,
String name)
IndexingEventDescriptor
public IndexingEventDescriptor(String action,
Set<String> resources,
boolean recursive,
String name,
String mode)
getAction
public String getAction()
- Description copied from interface:
IndexingEventConf
- Get the action to perform.
- Specified by:
getAction
in interface IndexingEventConf
- Returns:
- a string
getRelevantResources
public Set<String> getRelevantResources()
- Description copied from interface:
IndexingEventConf
- Lists the resources that are impacted by the event.
This allows to restrict the event to some resources. For instance,
the actions that the event signals can require a reindexing of security
policies without changing other resources, e.g, the full text, whose
indexing can be very costly.
- Specified by:
getRelevantResources
in interface IndexingEventConf
- Returns:
- the set of resource names, as registered against the Search
Service, or null to mean all.
isRecursive
public boolean isRecursive()
- Description copied from interface:
IndexingEventConf
- Must the operation recurse on documents ?
- Specified by:
isRecursive
in interface IndexingEventConf
- Returns:
- a boolean
getName
public String getName()
getMode
public String getMode()
- Description copied from interface:
IndexingEventConf
- Define the mode used to perform the operation
ONLY_ASYNC ="Asynchronous"
ONLY_SYNC ="Synchronous"
SYNC_ASYNC ="Both"
- Specified by:
getMode
in interface IndexingEventConf
- Returns:
- a String
Copyright © 2011 Nuxeo SAS. All Rights Reserved.