org.datamanager.simpleton
Class EmailMetadataSearchSimpleton
java.lang.Object
|
+--org.datamanager.kernel.Simpleton
|
+--org.datamanager.simpleton.EmailMetadataSearchSimpleton
- All Implemented Interfaces:
- EventHandler
- public class EmailMetadataSearchSimpleton
- extends Simpleton
- implements EventHandler
This class handles the EmailMetadataSearchEvent. It will get the field/query
out from the EmailMatadataSearchEvent and build the SearchRequestEvent and
fire it. The SearchHandlerSimpleton will handle the SearchRequestEVent and
Fire the SearchResultFoundEvent to the target.
- Author:
- Xi Rao
Method Summary |
void |
handle(DataManagerEvent dataManagerEvent)
Handles the EmailMetadataSearchEvent, get the field and query out to
build a complicated query to guarantee the search result correct. |
void |
process()
Runs this simpleton by subscribing it to the EmailMetadataSearchEvent. |
EmailMetadataSearchSimpleton
public EmailMetadataSearchSimpleton()
process
public void process()
- Runs this simpleton by subscribing it to the EmailMetadataSearchEvent.
- Specified by:
process
in class Simpleton
handle
public void handle(DataManagerEvent dataManagerEvent)
- Handles the EmailMetadataSearchEvent, get the field and query out to
build a complicated query to guarantee the search result correct.
- Specified by:
handle
in interface EventHandler
- Parameters:
dataManagerEvent
- the EmailMetadataSearchEvent fire with
"field"(entity name) * and "query"(entity value)
See the Helium Website