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

Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Constructor Summary
EmailMetadataSearchSimpleton()
           
 
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.
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailMetadataSearchSimpleton

public EmailMetadataSearchSimpleton()
Method Detail

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