org.ow2.bonita.facade.impl
Class DefinitionAPIImpl

java.lang.Object
  extended by org.ow2.bonita.facade.impl.DefinitionAPIImpl
All Implemented Interfaces:
DefinitionAPI

public class DefinitionAPIImpl
extends java.lang.Object
implements DefinitionAPI


Constructor Summary
DefinitionAPIImpl()
           
 
Method Summary
 PackageDef getDeployedPackage(java.lang.String packageId)
           
 java.util.Set<? extends PackageDef> getDeployedPackages()
           
 ProcessDef getDeployedProcess(java.lang.String processId)
           
 java.util.Set<? extends ProcessDef> getDeployedProcesses()
           
 ProcessDefFullImpl getInternalProcess(java.lang.String processId, java.lang.String deploymentId)
           
 java.util.Set<ParticipantDefImpl> getInternalProcessParticipants(java.lang.String processId, java.lang.String deploymentId)
           
 PackageDef getLastPackage(java.lang.String packageId)
          Return the last deployed package for the specified package id.
 ProcessDef getLastProcess(java.lang.String processId)
          Return the last deployed process for the specified process id.
 PackageDef getPackage(java.lang.String packageId, java.lang.String deploymentId)
          Returns the package definition for the specified package and deployment.
 java.lang.String getPackageId(java.lang.String deploymentId, java.lang.String packageName)
          Returns the package id for the specified package name and deployment id.
 ProcessDef getPackageProcess(java.lang.String packageId, java.lang.String deploymentId, java.lang.String processId)
          Returns the process information for the specified package and deployment and process.
 java.util.Set<? extends ProcessDef> getPackageProcesses(java.lang.String packageId, java.lang.String deploymentId)
          Returns the set of definition information of all processes within the specified deployed package and the specified deployment.
 java.util.Set<? extends PackageDef> getPackages()
          Returns the set of definition informations for all deployed packages.
 java.util.Set<? extends PackageDef> getPackages(java.lang.String packageId)
          Returns the set of definition informations for all deployed packages for the specified package.
 ProcessDef getProcess(java.lang.String processId, java.lang.String deploymentId)
          Returns the process definition for the specified process id and deployment id.
 java.util.Set<? extends ActivityDef> getProcessActivities(java.lang.String processId, java.lang.String deploymentId)
          Returns the set of definition for process activities of the specified process and deployment.
 ActivityDef getProcessActivity(java.lang.String processId, java.lang.String deploymentId, java.lang.String activityId)
          Returns the definition for process activity of the specified process and deployment.
 java.lang.String getProcessActivityId(java.lang.String processId, java.lang.String deploymentId, java.lang.String activityName)
          Returns the activity id for the specified process id and deployment id and activity id.
 java.util.Set<? extends ProcessDef> getProcesses()
          Returns the set of definition information of all deployed processes.
 java.util.Set<? extends ProcessDef> getProcesses(java.lang.String processId)
          Returns the set of definition informations for the process with the specified id.
 java.lang.String getProcessId(java.lang.String deploymentId, java.lang.String processName)
          Returns the process id for the specified process name and deployment id.
 ParticipantDef getProcessParticipant(java.lang.String processId, java.lang.String deploymentId, java.lang.String participantId)
          Returns the participant definition for the specified process and deployment.
 java.lang.String getProcessParticipantId(java.lang.String processId, java.lang.String deploymentId, java.lang.String participantName)
          Returns the participant id for the specified process id and deployment id and participant name.
 java.util.Set<? extends ParticipantDef> getProcessParticipants(java.lang.String processId, java.lang.String deploymentId)
          Returns the set of participant definitions for the specified process and deployment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionAPIImpl

public DefinitionAPIImpl()
Method Detail

getInternalProcess

public ProcessDefFullImpl getInternalProcess(java.lang.String processId,
                                             java.lang.String deploymentId)

getInternalProcessParticipants

public java.util.Set<ParticipantDefImpl> getInternalProcessParticipants(java.lang.String processId,
                                                                        java.lang.String deploymentId)

getLastPackage

public PackageDef getLastPackage(java.lang.String packageId)
Description copied from interface: DefinitionAPI
Return the last deployed package for the specified package id.

Specified by:
getLastPackage in interface DefinitionAPI
Parameters:
packageId - the package id.
Returns:
the last deployed package for the specified package id.

getLastProcess

public ProcessDef getLastProcess(java.lang.String processId)
Description copied from interface: DefinitionAPI
Return the last deployed process for the specified process id.

Specified by:
getLastProcess in interface DefinitionAPI
Parameters:
processId - the process id.
Returns:
the last deployed process for the specified process id.

getPackage

public PackageDef getPackage(java.lang.String packageId,
                             java.lang.String deploymentId)
Description copied from interface: DefinitionAPI
Returns the package definition for the specified package and deployment.

Specified by:
getPackage in interface DefinitionAPI
Parameters:
packageId - the package id.
deploymentId - the deployment id.
Returns:
a packageDef interface.

getPackageProcess

public ProcessDef getPackageProcess(java.lang.String packageId,
                                    java.lang.String deploymentId,
                                    java.lang.String processId)
Description copied from interface: DefinitionAPI
Returns the process information for the specified package and deployment and process.

Specified by:
getPackageProcess in interface DefinitionAPI
Parameters:
packageId - the package id.
deploymentId - the deployment id.
processId - the process id.
Returns:
the ProcessDef interface for the specified package and deployment and process.

getPackageProcesses

public java.util.Set<? extends ProcessDef> getPackageProcesses(java.lang.String packageId,
                                                               java.lang.String deploymentId)
Description copied from interface: DefinitionAPI
Returns the set of definition information of all processes within the specified deployed package and the specified deployment.

Specified by:
getPackageProcesses in interface DefinitionAPI
Parameters:
packageId - the package id.
deploymentId - the deployment id.
Returns:
set of ProcessDef of all the processes within the specified deployed package and the specified deployment.

getPackages

public java.util.Set<? extends PackageDef> getPackages()
Description copied from interface: DefinitionAPI
Returns the set of definition informations for all deployed packages.

Specified by:
getPackages in interface DefinitionAPI
Returns:
a set of PackageDef in unspecified order that have been deployed.

getPackages

public java.util.Set<? extends PackageDef> getPackages(java.lang.String packageId)
Description copied from interface: DefinitionAPI
Returns the set of definition informations for all deployed packages for the specified package.

Specified by:
getPackages in interface DefinitionAPI
Parameters:
packageId - the package id.
Returns:
a set of PackageDef in unspecified order that have been deployed for the package with specified packageId.

getProcess

public ProcessDef getProcess(java.lang.String processId,
                             java.lang.String deploymentId)
Description copied from interface: DefinitionAPI
Returns the process definition for the specified process id and deployment id.

Specified by:
getProcess in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deployment id.
Returns:
the ProcessDef interface for the specified process id and deployment id.

getProcessActivities

public java.util.Set<? extends ActivityDef> getProcessActivities(java.lang.String processId,
                                                                 java.lang.String deploymentId)
Description copied from interface: DefinitionAPI
Returns the set of definition for process activities of the specified process and deployment.

Specified by:
getProcessActivities in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deployment id.
Returns:
the set of ActivityDef for the specified process id and deployment id.

getProcessActivity

public ActivityDef getProcessActivity(java.lang.String processId,
                                      java.lang.String deploymentId,
                                      java.lang.String activityId)
Description copied from interface: DefinitionAPI
Returns the definition for process activity of the specified process and deployment.

Specified by:
getProcessActivity in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deployment id.
activityId - the activity id.
Returns:
the ActivityDef for the specified process id and deployment id and activity id.

getProcessParticipant

public ParticipantDef getProcessParticipant(java.lang.String processId,
                                            java.lang.String deploymentId,
                                            java.lang.String participantId)
Description copied from interface: DefinitionAPI
Returns the participant definition for the specified process and deployment.

Specified by:
getProcessParticipant in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deployment id.
participantId - the participant id.
Returns:
the ParticipantDef for the specified process id and deployment id and participant id.

getProcessParticipants

public java.util.Set<? extends ParticipantDef> getProcessParticipants(java.lang.String processId,
                                                                      java.lang.String deploymentId)
Description copied from interface: DefinitionAPI
Returns the set of participant definitions for the specified process and deployment.

Specified by:
getProcessParticipants in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deployment id.
Returns:
the set of ParticipantDef for the specified process id and deployment id.

getProcesses

public java.util.Set<? extends ProcessDef> getProcesses()
Description copied from interface: DefinitionAPI
Returns the set of definition information of all deployed processes.

Specified by:
getProcesses in interface DefinitionAPI
Returns:
set of ProcessDef of all deployed processes.

getProcesses

public java.util.Set<? extends ProcessDef> getProcesses(java.lang.String processId)
Description copied from interface: DefinitionAPI
Returns the set of definition informations for the process with the specified id. These process informations are searched into the current recorded informations and into the archived informations. A process with a given id could have been deployed and undeployed several times.

Specified by:
getProcesses in interface DefinitionAPI
Returns:
set of ProcessDef of the specified process id.

getProcessParticipantId

public java.lang.String getProcessParticipantId(java.lang.String processId,
                                                java.lang.String deploymentId,
                                                java.lang.String participantName)
Description copied from interface: DefinitionAPI
Returns the participant id for the specified process id and deployment id and participant name.

Specified by:
getProcessParticipantId in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deploymenet id.
participantName - the participant name.
Returns:
the participant id for the specified process id and deployment id and participant name.

getProcessActivityId

public java.lang.String getProcessActivityId(java.lang.String processId,
                                             java.lang.String deploymentId,
                                             java.lang.String activityName)
Description copied from interface: DefinitionAPI
Returns the activity id for the specified process id and deployment id and activity id.

Specified by:
getProcessActivityId in interface DefinitionAPI
Parameters:
processId - the process id.
deploymentId - the deploymenet id.
activityName - the activity name.
Returns:
the activity id for the specified process id and deployment id and activity id.

getProcessId

public java.lang.String getProcessId(java.lang.String deploymentId,
                                     java.lang.String processName)
Description copied from interface: DefinitionAPI
Returns the process id for the specified process name and deployment id.

Specified by:
getProcessId in interface DefinitionAPI
Parameters:
deploymentId - the deployment id.
processName - the process name.
Returns:
the process id for the specified process name and deployment id.

getPackageId

public java.lang.String getPackageId(java.lang.String deploymentId,
                                     java.lang.String packageName)
Description copied from interface: DefinitionAPI
Returns the package id for the specified package name and deployment id.

Specified by:
getPackageId in interface DefinitionAPI
Parameters:
deploymentId - the deployment id.
packageName - the package name.
Returns:
the package id for the specified package name and deployment id.

getDeployedPackage

public PackageDef getDeployedPackage(java.lang.String packageId)
Specified by:
getDeployedPackage in interface DefinitionAPI

getDeployedPackages

public java.util.Set<? extends PackageDef> getDeployedPackages()
Specified by:
getDeployedPackages in interface DefinitionAPI

getDeployedProcess

public ProcessDef getDeployedProcess(java.lang.String processId)
Specified by:
getDeployedProcess in interface DefinitionAPI

getDeployedProcesses

public java.util.Set<? extends ProcessDef> getDeployedProcesses()
Specified by:
getDeployedProcesses in interface DefinitionAPI