it.eng.spago.workflow.worklist.modules
Class AvailablePackageModules

java.lang.Object
  extended by AbstractBasicListModule
      extended by it.eng.spago.workflow.worklist.modules.AvailablePackageModules

public class AvailablePackageModules
extends AbstractBasicListModule

Author:
zoppello A Spago List module that retrieve the list of the packages available for loading but not already loaded in the engine

Constructor Summary
AvailablePackageModules()
           
 
Method Summary
protected  SourceBean adapt(IWorkflowPackage wfPackage)
          Transform a simple IWorkflowPackage object in source bean form
 ListIFace getList(SourceBean arg0, SourceBean arg1)
          Ovverride the getList method to get The packages list from Workflow Engine
protected  SourceBean packagesListToSourceBean(java.util.List aPackageList)
          Transform a Package List in Source Bean form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailablePackageModules

public AvailablePackageModules()
Method Detail

packagesListToSourceBean

protected SourceBean packagesListToSourceBean(java.util.List aPackageList)
                                       throws SourceBeanException,
                                              WorkflowEngineException
Transform a Package List in Source Bean form

Parameters:
aPackageList - The java.util.List of IWorkflowPackage Object
Returns:
the source bean form of the package list
Throws:
SourceBeanException - if some errors occurs during source bean population
WorkflowEngineException - if some errors occurs

adapt

protected SourceBean adapt(IWorkflowPackage wfPackage)
                    throws SourceBeanException,
                           WorkflowEngineException
Transform a simple IWorkflowPackage object in source bean form

Parameters:
wfPackage - - The object to be transformed in source bean
Returns:
The source bean form of IWorkflowPackage
Throws:
SourceBeanException - if some errors occurs during source bean population
WorkflowEngineException - if some errors occurs

getList

public ListIFace getList(SourceBean arg0,
                         SourceBean arg1)
                  throws java.lang.Exception
Ovverride the getList method to get The packages list from Workflow Engine

Throws:
java.lang.Exception