org.jbpm.api
Interface NewDeployment

All Superinterfaces:
Deployment

public interface NewDeployment
extends Deployment

extends a Deployment with method for creating a new deployment.

Author:
Tom Baeyens
See Also:
RepositoryService.createDeployment()

Field Summary
 
Fields inherited from interface org.jbpm.api.Deployment
STATE_ACTIVE, STATE_SUSPENDED
 
Method Summary
 NewDeployment addResourceFromClasspath(java.lang.String resourceName)
          adds a resource as a resource from the classpath
 NewDeployment addResourceFromFile(java.io.File file)
          adds a resource from a file
 NewDeployment addResourceFromInputStream(java.lang.String resourceName, java.io.InputStream inputStream)
          adds a resource as a string
 NewDeployment addResourceFromString(java.lang.String resourceName, java.lang.String string)
          adds a resource as a string
 NewDeployment addResourceFromUrl(java.net.URL url)
          adds a resource as a url
 NewDeployment addResourcesFromZipInputStream(java.util.zip.ZipInputStream zipInputStream)
          adds a resource as a zip stream
 java.lang.String deploy()
          after adding resources, this will perform the actual deployment.
 NewDeployment setName(java.lang.String name)
          typically correspond to the file name or url or some other form of identifying the source archive file for this deployment.
 NewDeployment setTimestamp(long timestamp)
          the timestamp can optionally be given and represents the last updated timestamp of the archive file that is being deployed.
 
Methods inherited from interface org.jbpm.api.Deployment
getId, getName, getState, getTimestamp
 

Method Detail

setName

NewDeployment setName(java.lang.String name)
typically correspond to the file name or url or some other form of identifying the source archive file for this deployment.


setTimestamp

NewDeployment setTimestamp(long timestamp)
the timestamp can optionally be given and represents the last updated timestamp of the archive file that is being deployed. JBoss deployer makes use of this to remember if a file is already deployed or not.


addResourceFromString

NewDeployment addResourceFromString(java.lang.String resourceName,
                                    java.lang.String string)
adds a resource as a string


addResourceFromInputStream

NewDeployment addResourceFromInputStream(java.lang.String resourceName,
                                         java.io.InputStream inputStream)
adds a resource as a string


addResourceFromClasspath

NewDeployment addResourceFromClasspath(java.lang.String resourceName)
adds a resource as a resource from the classpath


addResourceFromUrl

NewDeployment addResourceFromUrl(java.net.URL url)
adds a resource as a url


addResourcesFromZipInputStream

NewDeployment addResourcesFromZipInputStream(java.util.zip.ZipInputStream zipInputStream)
adds a resource as a zip stream


addResourceFromFile

NewDeployment addResourceFromFile(java.io.File file)
adds a resource from a file


deploy

java.lang.String deploy()
after adding resources, this will perform the actual deployment.

Returns:
the generated deploymentId identification for this deployment in the repository.


Copyright © 2010 JBoss Community. All Rights Reserved.