syntheticoperation
Class SearchKeywords

java.lang.Object
  extended by com.wrq.vhi.script.api.OperationEventHandler
      extended by syntheticoperation.SearchKeywords
All Implemented Interfaces:
com.wrq.vhi.script.api.EventHandler

public class SearchKeywords
extends com.wrq.vhi.script.api.OperationEventHandler

Perform "search for keywords" command.

This class implements an operation event handler which conditionally rewrites an attribute to perform a "search for keyword" command. This involves reading the attribute containing the search term and rewriting it as a keyword search.


Field Summary
static java.lang.String description
           
static int executeOperationTimeout
          Timeout in seconds for the executeOperation() event.
 
Fields inherited from interface com.wrq.vhi.script.api.EventHandler
DEFAULT_TIMEOUT
 
Constructor Summary
SearchKeywords()
           
 
Method Summary
 void executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
          Search for titles of books which contain a certain keyword.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

public static final java.lang.String description
See Also:
Constant Field Values

executeOperationTimeout

public static final int executeOperationTimeout
Timeout in seconds for the executeOperation() event. A value of DEFAULT_TIMEOUT means the event will use the model defined default event timeout.

See Also:
Constant Field Values
Constructor Detail

SearchKeywords

public SearchKeywords()
Method Detail

executeOperation

public void executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
                      throws com.wrq.apptrieve.agent.ApptrieveException
Search for titles of books which contain a certain keyword.

This method first executes the default operation (to provide a default search in the Design Tool), and then delegates to SearchCommand.rewrite to do the heavy lifting.

Overrides:
executeOperation in class com.wrq.vhi.script.api.OperationEventHandler
Parameters:
event - the event instance
Throws:
com.wrq.apptrieve.agent.ApptrieveException