com.opensymphony.workflow.util.ejb.remote
Class RemoteEJBValidator
java.lang.Object
com.opensymphony.workflow.util.ejb.remote.RemoteEJBValidator
- All Implemented Interfaces:
- Validator
public class RemoteEJBValidator
- extends Object
- implements Validator
Validate against a remote EJB that implements ValidatorRemote.
A required argument for this register is ejb.location, which specifies
the JNDI location to look up the remote EJB at.
Note that by default, the EJB will be looked up from a default InitialContext. It is
however possible to specify an environment for the initial context by specifying the
standard JNDI keys as arguments.
For example, specifying an argument with a name of java.naming.security.principal
and a value of testuser will result in an InitialContext being created with
the user specified as 'testuser'.
- Version:
- $Revision: 1.3 $
- Author:
- $Author: hani $
|
Method Summary |
void |
validate(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps)
Validates the user input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteEJBValidator
public RemoteEJBValidator()
validate
public void validate(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps)
throws InvalidInputException,
WorkflowException
- Description copied from interface:
Validator
- Validates the user input.
- Specified by:
validate in interface Validator
- Parameters:
transientVars - Variables that will not be persisted. These include inputs
given in the Workflow.initialize(java.lang.String, int, java.util.Map) and Workflow.doAction(long, int, java.util.Map) method calls.
There are a number of special variable names:
entry: (object type: WorkflowEntry)
The workflow instance
context:
(object type: WorkflowContext). The workflow context.
actionId: The Integer ID of the current action that was take (if applicable).
currentSteps: A Collection of the current steps in the workflow instance.
store: The WorkflowStore.
descriptor: The WorkflowDescriptor.
Also, any variable set as a Register), will also be
available in the transient map. These transient variables only last through
the method call that they were invoked in, such as Workflow.initialize(java.lang.String, int, java.util.Map)
and Workflow.doAction(long, int, java.util.Map).args - The properties for this function invocation. Properties are created
from arg nested elements within the xml, an arg element takes in a name attribute
which is the properties key, and the CDATA text contents of the element map to
the property value.ps - The persistent variables that are associated with the current
instance of the workflow. Any change made to the propertyset are persisted to
the propertyset implementation's persistent store.
- Throws:
InvalidInputException - if the input is deemed to be invalid
WorkflowException