org.ow2.bonita.facade.def.element
Interface BusinessArchive

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BusinessArchiveImpl

public interface BusinessArchive
extends java.io.Serializable

A BusinessArchive contains all resources in order to manage a process.


Method Summary
 java.util.Map<java.lang.String,byte[]> getJarFiles()
          Obtains all JAR files containing in the business archive.
For each JAR file, the name and the content are returned
 java.util.Map<java.lang.String,byte[]> getOtherResources(java.lang.String regex)
          Obtains all resources which not match with the given regular expression.
 ProcessDefinition getProcessDefinition()
          Obtains the process definition depending on the business archive.
 ProcessDefinitionUUID getProcessUUID()
          Gets the process definition UUID related to the business archive.
 byte[] getResource(java.lang.String resourcePath)
          Gets a resource given by its path.
 java.util.Map<java.lang.String,byte[]> getResources()
          Returns all resources of the business archive.
 java.util.Map<java.lang.String,byte[]> getResources(java.lang.String regex)
          Obtains all resources which match with the given regular expression.
 

Method Detail

getProcessDefinition

ProcessDefinition getProcessDefinition()
Obtains the process definition depending on the business archive.

Returns:
the process definition of the business archive

getJarFiles

java.util.Map<java.lang.String,byte[]> getJarFiles()
Obtains all JAR files containing in the business archive.
For each JAR file, the name and the content are returned

Returns:
all JAR files

getResource

byte[] getResource(java.lang.String resourcePath)
Gets a resource given by its path.

Parameters:
resourcePath - the resource path
Returns:
the resource content

getResources

java.util.Map<java.lang.String,byte[]> getResources(java.lang.String regex)
Obtains all resources which match with the given regular expression.

Parameters:
regex - the regular expression
Returns:
all resources which match with the given regular expression

getResources

java.util.Map<java.lang.String,byte[]> getResources()
Returns all resources of the business archive.

Returns:
all resources of the business archive

getProcessUUID

ProcessDefinitionUUID getProcessUUID()
Gets the process definition UUID related to the business archive.

Returns:
the process definition UUID of the business archive.

getOtherResources

java.util.Map<java.lang.String,byte[]> getOtherResources(java.lang.String regex)
Obtains all resources which not match with the given regular expression.

Parameters:
regex - the regular expression
Returns:
all resources which not match with the given regular expression


Copyright © 2010 BonitaSoft. All Rights Reserved.