org.apache.oodt.cas.workflow.util
Class XmlRpcStructFactory

java.lang.Object
  extended by org.apache.oodt.cas.workflow.util.XmlRpcStructFactory

public final class XmlRpcStructFactory
extends Object

A Struct Factory for creating and unpacking Workflow Objects to be sent and received across the XML-RPC wire.

Version:
$Revision$
Author:
mattmann

Method Summary
static WorkflowConditionConfiguration getWorkflowConditionConfigurationFromXmlRpc(Hashtable conf)
          Unravels a WorkflowConditionConfiguration from XML-RPC.
static WorkflowCondition getWorkflowConditionFromXmlRpc(Hashtable cond)
           Gets a WorkflowCondition from an XML-RPC Hashtable.
static List getWorkflowConditionsFromXmlRpc(Vector conds)
           Gets a List of WorkflowConditions from an XML-RPC Vector.
static Workflow getWorkflowFromXmlRpc(Hashtable w)
           Gets a Workflow from the XML-RPC Hashtable version.
static WorkflowInstance getWorkflowInstanceFromXmlRpc(Hashtable workflowInstance)
           
static WorkflowInstancePage getWorkflowInstancePageFromXmlRpc(Hashtable pageHash)
          Gets a WorkflowInstancePage off of the XML-RPC wire by converting the XML-RPC Hashtable representation of the page into a WorkflowInstancePage.
static List getWorkflowInstancesFromXmlRpc(Vector instsVector)
          Gets a List of WorkflowInstances from their representations as Hashtables in XML-RPC.
static WorkflowTaskConfiguration getWorkflowTaskConfigurationFromXmlRpc(Hashtable config)
           Gets a WorkflowTaskConfiguration from an XML-RPC Hashtable.
static WorkflowTask getWorkflowTaskFromXmlRpc(Hashtable task)
           Gets a WorkflowTask from an XML-RPC Hashtable sent over the wire.
static List getWorkflowTaskReqMetFieldsFromXmlRpc(Vector fields)
          Gets the required List of String met fields for this WorkflowTask.
static List getWorkflowTasksFromXmlRpc(Vector tsks)
           Gets a List of WorkflowTasks from an XML-RPC Vector .
static Hashtable getXmlRpcWorkflow(Workflow w)
           Gets a Hashtable representation of a Workflow to be sent across the XML-RPC wire.
static Hashtable getXmlRpcWorkflowCondition(WorkflowCondition c)
           Gets an XML-RPC Hashtable representation of the WorkflowCondition to send over the wire.
static Hashtable getXmlRpcWorkflowConditionConfig(WorkflowConditionConfiguration conf)
          Bulids an XML-RPC friendly version of a WorkflowConditionConfiguration.
static Vector getXmlRpcWorkflowConditions(List conditions)
           Gets a Vector representation of the List of WorkflowConditions to be sent across the XML-RPC wire.
static Hashtable getXmlRpcWorkflowInstance(WorkflowInstance wInst)
           Gets a Hashtable representation of a WorkflowInstance to be sent across the XML-RPC wire.
static Hashtable getXmlRpcWorkflowInstancePage(WorkflowInstancePage page)
          Gets a Hashtable representation of a WorkflowInstancePage that is serializable over the XML-RPC wire.
static Vector getXmlRpcWorkflowInstances(List wInsts)
          Gets an XML-RPC serializable Vector of Hashtable representations of WorkflowInstances.
static Hashtable getXmlRpcWorkflowTask(WorkflowTask t)
           Gets an XML-RPC version of the WorkflowTask to send over the wire.
static Hashtable getXmlRpcWorkflowTaskConfiguration(WorkflowTaskConfiguration config)
           Gets a Hashtable representation of the passed in WorkflowTaskConfiguration's Properties to be sent across the XML-RPC wire.
static Vector getXmlRpcWorkflowTaskReqMetFields(List metFields)
          Gets a List of Strings that are required Metadata fields for this WorkflowTask.
static Vector getXmlRpcWorkflowTasks(List tasks)
           Gets a Vector representation of a List of WorkflowTasks to be sent across the XML-RPC wire.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getXmlRpcWorkflowInstancePage

public static Hashtable getXmlRpcWorkflowInstancePage(WorkflowInstancePage page)
Gets a Hashtable representation of a WorkflowInstancePage that is serializable over the XML-RPC wire.

Parameters:
page - The WorkflowInstancePage to turn into a Hashtable.
Returns:
A Hashtable representation of a WorkflowInstancePage.

getWorkflowInstancePageFromXmlRpc

public static WorkflowInstancePage getWorkflowInstancePageFromXmlRpc(Hashtable pageHash)
Gets a WorkflowInstancePage off of the XML-RPC wire by converting the XML-RPC Hashtable representation of the page into a WorkflowInstancePage.

Parameters:
pageHash - The XML-RPC Hashtable representation of this WorkflowInstancePage.
Returns:
The WorkflowInstancePage that this XML-RPC Hashtable provided represents.

getXmlRpcWorkflowInstance

public static Hashtable getXmlRpcWorkflowInstance(WorkflowInstance wInst)

Gets a Hashtable representation of a WorkflowInstance to be sent across the XML-RPC wire.

Parameters:
wInst - The WorkflowInstance to turned into a java.util.Hashtable.
Returns:
A Hashtable representation of a WorkflowInstance.

getWorkflowInstanceFromXmlRpc

public static WorkflowInstance getWorkflowInstanceFromXmlRpc(Hashtable workflowInstance)

getWorkflowInstancesFromXmlRpc

public static List getWorkflowInstancesFromXmlRpc(Vector instsVector)
Gets a List of WorkflowInstances from their representations as Hashtables in XML-RPC.

Parameters:
instsVector - The Vector of Hashtable representations of WorkflowInstances.
Returns:
A List of WorkflowInstances from their representations as Hashtables in XML-RPC.

getXmlRpcWorkflowInstances

public static Vector getXmlRpcWorkflowInstances(List wInsts)
Gets an XML-RPC serializable Vector of Hashtable representations of WorkflowInstances.

Parameters:
wInsts - The List of WorkflowInstances to serialize.
Returns:
A XML-RPC serializable Vector of Hashtable representations of WorkflowInstances.

getXmlRpcWorkflow

public static Hashtable getXmlRpcWorkflow(Workflow w)

Gets a Hashtable representation of a Workflow to be sent across the XML-RPC wire.

Parameters:
w - The Workflow to be turned into a java.util.Hashtable
Returns:
A Hashtable representation of a Workflow.

getWorkflowFromXmlRpc

public static Workflow getWorkflowFromXmlRpc(Hashtable w)

Gets a Workflow from the XML-RPC Hashtable version.

Parameters:
w - The Hashtable to obtain a Workflow from.
Returns:
a Workflow from the XML-RPC Hashtable version.

getXmlRpcWorkflowTask

public static Hashtable getXmlRpcWorkflowTask(WorkflowTask t)

Gets an XML-RPC version of the WorkflowTask to send over the wire.

Parameters:
t - The WorkflowTask to obtain an XML-RPC Hashtable from.
Returns:
an XML-RPC version of the WorkflowTask to send over the wire.

getXmlRpcWorkflowTasks

public static Vector getXmlRpcWorkflowTasks(List tasks)

Gets a Vector representation of a List of WorkflowTasks to be sent across the XML-RPC wire.

Parameters:
tasks - The List of WorkflowTasks.
Returns:
A Vector representation of a List of WorkflowTasks.

getWorkflowTaskFromXmlRpc

public static WorkflowTask getWorkflowTaskFromXmlRpc(Hashtable task)

Gets a WorkflowTask from an XML-RPC Hashtable sent over the wire.

Parameters:
task - The XML-RPC Hashtable version of the WorkflowTask.
Returns:
a WorkflowTask from an XML-RPC Hashtable sent over the wire.

getWorkflowTasksFromXmlRpc

public static List getWorkflowTasksFromXmlRpc(Vector tsks)

Gets a List of WorkflowTasks from an XML-RPC Vector .

Parameters:
tsks - The Vector of WorkflowTasks.
Returns:
A List of WorkflowTasks from an XML-RPC Vector.

getXmlRpcWorkflowCondition

public static Hashtable getXmlRpcWorkflowCondition(WorkflowCondition c)

Gets an XML-RPC Hashtable representation of the WorkflowCondition to send over the wire.

Parameters:
c - The WorkflowCondition to turn into an XML-RPC Hashtable.
Returns:
an XML-RPC Hashtable representation of the WorkflowCondition to send over the wire.

getXmlRpcWorkflowConditionConfig

public static Hashtable getXmlRpcWorkflowConditionConfig(WorkflowConditionConfiguration conf)
Bulids an XML-RPC friendly version of a WorkflowConditionConfiguration.

Parameters:
conf - The WorkflowConditionConfiguration to transform into an XML-RPC Hashtable.
Returns:
an XML-RPC friendly version of a WorkflowConditionConfiguration.

getXmlRpcWorkflowConditions

public static Vector getXmlRpcWorkflowConditions(List conditions)

Gets a Vector representation of the List of WorkflowConditions to be sent across the XML-RPC wire.

Parameters:
conditions - The List of WorkflowConditions to turn into a Vector.
Returns:
A Vector representation of a List of WorkflowConditions.

getWorkflowTaskReqMetFieldsFromXmlRpc

public static List getWorkflowTaskReqMetFieldsFromXmlRpc(Vector fields)
Gets the required List of String met fields for this WorkflowTask.

Parameters:
fields - The fields required for this task.
Returns:
The List of String met fields for this WorkflowTask.

getXmlRpcWorkflowTaskReqMetFields

public static Vector getXmlRpcWorkflowTaskReqMetFields(List metFields)
Gets a List of Strings that are required Metadata fields for this WorkflowTask.

Parameters:
metFields - The required Metadata fields.
Returns:
A List of Strings that are required for this WorkflowTask.

getWorkflowConditionFromXmlRpc

public static WorkflowCondition getWorkflowConditionFromXmlRpc(Hashtable cond)

Gets a WorkflowCondition from an XML-RPC Hashtable.

Parameters:
cond - The Hashtable to turn into a real WorkflowCondition.
Returns:
a WorkflowCondition from an XML-RPC Hashtable.

getWorkflowConditionConfigurationFromXmlRpc

public static WorkflowConditionConfiguration getWorkflowConditionConfigurationFromXmlRpc(Hashtable conf)
Unravels a WorkflowConditionConfiguration from XML-RPC.

Parameters:
conf - XML-RPC friendly Hashtable representing a WorkflowConditionConfiguration.
Returns:
A WorkflowConditionConfiguration from XML-RPC.

getWorkflowConditionsFromXmlRpc

public static List getWorkflowConditionsFromXmlRpc(Vector conds)

Gets a List of WorkflowConditions from an XML-RPC Vector.

Parameters:
conds - The Vector of WorkflowConditions.
Returns:
A List of WorkflowConditions from an XML-RPC Vector.

getXmlRpcWorkflowTaskConfiguration

public static Hashtable getXmlRpcWorkflowTaskConfiguration(WorkflowTaskConfiguration config)

Gets a Hashtable representation of the passed in WorkflowTaskConfiguration's Properties to be sent across the XML-RPC wire.

Parameters:
config - The WorkflowTaskConfiguration to convert to a Hashtable.
Returns:
A Hashtable representation of the passed in WorkflowTaskConfiguration's Properties.

getWorkflowTaskConfigurationFromXmlRpc

public static WorkflowTaskConfiguration getWorkflowTaskConfigurationFromXmlRpc(Hashtable config)

Gets a WorkflowTaskConfiguration from an XML-RPC Hashtable.

Parameters:
config - The original Hashtable version of the WorkflowTaskConfiguration.
Returns:
A WorkflowTaskConfiguration from an XML-RPC Hashtable.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.