syntheticoperation
Class SearchAuthors

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

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

Perform "search for author" command.

This class implements an operation event handler which conditionally rewrites an attribute to perform a "search for author" command. This involves reading the attribute containing the search term and rewriting it as an author 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
SearchAuthors()
           
 
Method Summary
 void executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
          Search for titles written by a given author.
 
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

SearchAuthors

public SearchAuthors()
Method Detail

executeOperation

public void executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
                      throws com.wrq.apptrieve.agent.ApptrieveException
Search for titles written by a given author.

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