org.activiti.engine.impl
类 RepositoryServiceImpl

java.lang.Object
  继承者 org.activiti.engine.impl.ServiceImpl
      继承者 org.activiti.engine.impl.RepositoryServiceImpl
所有已实现的接口:
RepositoryService

public class RepositoryServiceImpl
extends ServiceImpl
implements RepositoryService

作者:
Tom Baeyens, Falko Menge, Joram Barrez

字段摘要
 
从类 org.activiti.engine.impl.ServiceImpl 继承的字段
commandExecutor
 
构造方法摘要
RepositoryServiceImpl()
           
 
方法摘要
 void activateProcessDefinitionById(String processDefinitionId)
          Activates the process definition with the given id.
 void activateProcessDefinitionById(String processDefinitionId, boolean activateProcessInstances, Date activationDate)
          Activates the process definition with the given id.
 void activateProcessDefinitionByKey(String processDefinitionKey)
          Activates the process definition with the given key (=id in the bpmn20.xml file).
 void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate)
          Activates the process definition with the given key (=id in the bpmn20.xml file).
 void addCandidateStarterGroup(String processDefinitionId, String groupId)
          Authorizes a candidate group for a process definition.
 void addCandidateStarterUser(String processDefinitionId, String userId)
          Authorizes a candidate user for a process definition.
 void addModelEditorSource(String modelId, byte[] bytes)
          Saves the model editor source for a model
 void addModelEditorSourceExtra(String modelId, byte[] bytes)
          Saves the model editor source extra for a model
 DeploymentBuilder createDeployment()
          Starts creating a new deployment
 DeploymentQuery createDeploymentQuery()
          Query deployment.
 ModelQuery createModelQuery()
          Query models.
 NativeDeploymentQuery createNativeDeploymentQuery()
          Returns a new NativeQuery for deployment.
 NativeModelQuery createNativeModelQuery()
          Returns a new NativeQuery for process definitions.
 NativeProcessDefinitionQuery createNativeProcessDefinitionQuery()
          Returns a new NativeQuery for process definitions.
 ProcessDefinitionQuery createProcessDefinitionQuery()
          Query process definitions.
 void deleteCandidateStarterGroup(String processDefinitionId, String groupId)
          Removes the authorization of a candidate group for a process definition.
 void deleteCandidateStarterUser(String processDefinitionId, String userId)
          Removes the authorization of a candidate user for a process definition.
 void deleteDeployment(String deploymentId)
          Deletes the given deployment.
 void deleteDeployment(String deploymentId, boolean cascade)
          Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.
 void deleteDeploymentCascade(String deploymentId)
          Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.
 void deleteModel(String modelId)
           
 Deployment deploy(DeploymentBuilderImpl deploymentBuilder)
           
 org.activiti.bpmn.model.BpmnModel getBpmnModel(String processDefinitionId)
          Returns the BpmnModel corresponding with the process definition with the provided process definition id.
 ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId)
           
 List<String> getDeploymentResourceNames(String deploymentId)
          Retrieves a list of deployment resources for the given deployment, ordered alphabetically.
 List<IdentityLink> getIdentityLinksForProcessDefinition(String processDefinitionId)
          Retrieves the IdentityLinks associated with the given process definition.
 Model getModel(String modelId)
          Returns the Model
 byte[] getModelEditorSource(String modelId)
          Returns the model editor source as a byte array
 byte[] getModelEditorSourceExtra(String modelId)
          Returns the model editor source extra as a byte array
 ProcessDefinition getProcessDefinition(String processDefinitionId)
          Returns the ProcessDefinition including all BPMN information like additional Properties (e.g. documentation).
 InputStream getProcessDiagram(String processDefinitionId)
          Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.
 DiagramLayout getProcessDiagramLayout(String processDefinitionId)
          Provides positions and dimensions of elements in a process diagram as provided by RepositoryService.getProcessDiagram(String).
 InputStream getProcessModel(String processDefinitionId)
          Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.
 InputStream getResourceAsStream(String deploymentId, String resourceName)
          Gives access to a deployment resource through a stream of bytes.
 Model newModel()
          Creates a new model.
 void saveModel(Model model)
          Saves the model.
 void setDeploymentCategory(String deploymentId, String category)
          Sets the category of the deployment.
 void setProcessDefinitionCategory(String processDefinitionId, String category)
          Sets the category of the process definition.
 void suspendProcessDefinitionById(String processDefinitionId)
          Suspends the process definition with the given id.
 void suspendProcessDefinitionById(String processDefinitionId, boolean suspendProcessInstances, Date suspensionDate)
          Suspends the process definition with the given id.
 void suspendProcessDefinitionByKey(String processDefinitionKey)
          Suspends the all process definitions with the given key (= id in the bpmn20.xml file).
 void suspendProcessDefinitionByKey(String processDefinitionKey, boolean suspendProcessInstances, Date suspensionDate)
          Suspends the all process definitions with the given key (= id in the bpmn20.xml file).
 
从类 org.activiti.engine.impl.ServiceImpl 继承的方法
getCommandExecutor, setCommandExecutor
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RepositoryServiceImpl

public RepositoryServiceImpl()
方法详细信息

createDeployment

public DeploymentBuilder createDeployment()
从接口 RepositoryService 复制的描述
Starts creating a new deployment

指定者:
接口 RepositoryService 中的 createDeployment

deploy

public Deployment deploy(DeploymentBuilderImpl deploymentBuilder)

deleteDeployment

public void deleteDeployment(String deploymentId)
从接口 RepositoryService 复制的描述
Deletes the given deployment.

指定者:
接口 RepositoryService 中的 deleteDeployment
参数:
deploymentId - id of the deployment, cannot be null.

deleteDeploymentCascade

public void deleteDeploymentCascade(String deploymentId)
从接口 RepositoryService 复制的描述
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.

指定者:
接口 RepositoryService 中的 deleteDeploymentCascade
参数:
deploymentId - id of the deployment, cannot be null.

deleteDeployment

public void deleteDeployment(String deploymentId,
                             boolean cascade)
从接口 RepositoryService 复制的描述
Deletes the given deployment and cascade deletion to process instances, history process instances and jobs.

指定者:
接口 RepositoryService 中的 deleteDeployment
参数:
deploymentId - id of the deployment, cannot be null.

setDeploymentCategory

public void setDeploymentCategory(String deploymentId,
                                  String category)
从接口 RepositoryService 复制的描述
Sets the category of the deployment. Deployments can be queried by category: see DeploymentQuery.deploymentCategory(String).

指定者:
接口 RepositoryService 中的 setDeploymentCategory

createProcessDefinitionQuery

public ProcessDefinitionQuery createProcessDefinitionQuery()
从接口 RepositoryService 复制的描述
Query process definitions.

指定者:
接口 RepositoryService 中的 createProcessDefinitionQuery

createNativeProcessDefinitionQuery

public NativeProcessDefinitionQuery createNativeProcessDefinitionQuery()
从接口 RepositoryService 复制的描述
Returns a new NativeQuery for process definitions.

指定者:
接口 RepositoryService 中的 createNativeProcessDefinitionQuery

getDeploymentResourceNames

public List<String> getDeploymentResourceNames(String deploymentId)
从接口 RepositoryService 复制的描述
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.

指定者:
接口 RepositoryService 中的 getDeploymentResourceNames
参数:
deploymentId - id of the deployment, cannot be null.

getResourceAsStream

public InputStream getResourceAsStream(String deploymentId,
                                       String resourceName)
从接口 RepositoryService 复制的描述
Gives access to a deployment resource through a stream of bytes.

指定者:
接口 RepositoryService 中的 getResourceAsStream
参数:
deploymentId - id of the deployment, cannot be null.
resourceName - name of the resource, cannot be null.

createDeploymentQuery

public DeploymentQuery createDeploymentQuery()
从接口 RepositoryService 复制的描述
Query deployment.

指定者:
接口 RepositoryService 中的 createDeploymentQuery

createNativeDeploymentQuery

public NativeDeploymentQuery createNativeDeploymentQuery()
从接口 RepositoryService 复制的描述
Returns a new NativeQuery for deployment.

指定者:
接口 RepositoryService 中的 createNativeDeploymentQuery

getProcessDefinition

public ProcessDefinition getProcessDefinition(String processDefinitionId)
从接口 RepositoryService 复制的描述
Returns the ProcessDefinition including all BPMN information like additional Properties (e.g. documentation).

指定者:
接口 RepositoryService 中的 getProcessDefinition

getBpmnModel

public org.activiti.bpmn.model.BpmnModel getBpmnModel(String processDefinitionId)
从接口 RepositoryService 复制的描述
Returns the BpmnModel corresponding with the process definition with the provided process definition id. The BpmnModel is a pojo versions of the BPMN 2.0 xml and can be used to introspect the process definition using regular Java.

指定者:
接口 RepositoryService 中的 getBpmnModel

getDeployedProcessDefinition

public ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId)

suspendProcessDefinitionById

public void suspendProcessDefinitionById(String processDefinitionId)
从接口 RepositoryService 复制的描述
Suspends the process definition with the given id. If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition. Note: all the process instances of the process definition will still be active (ie. not suspended)!

指定者:
接口 RepositoryService 中的 suspendProcessDefinitionById

suspendProcessDefinitionById

public void suspendProcessDefinitionById(String processDefinitionId,
                                         boolean suspendProcessInstances,
                                         Date suspensionDate)
从接口 RepositoryService 复制的描述
Suspends the process definition with the given id. If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition.

指定者:
接口 RepositoryService 中的 suspendProcessDefinitionById
suspendProcessInstances - If true, all the process instances of the provided process definition will be suspended too.
suspensionDate - The date on which the process definition will be suspended. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!

suspendProcessDefinitionByKey

public void suspendProcessDefinitionByKey(String processDefinitionKey)
从接口 RepositoryService 复制的描述
Suspends the all process definitions with the given key (= id in the bpmn20.xml file). If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition. Note: all the process instances of the process definition will still be active (ie. not suspended)!

指定者:
接口 RepositoryService 中的 suspendProcessDefinitionByKey

suspendProcessDefinitionByKey

public void suspendProcessDefinitionByKey(String processDefinitionKey,
                                          boolean suspendProcessInstances,
                                          Date suspensionDate)
从接口 RepositoryService 复制的描述
Suspends the all process definitions with the given key (= id in the bpmn20.xml file). If a process definition is in state suspended, it will not be possible to start new process instances based on the process definition.

指定者:
接口 RepositoryService 中的 suspendProcessDefinitionByKey
suspendProcessInstances - If true, all the process instances of the provided process definition will be suspended too.
suspensionDate - The date on which the process definition will be suspended. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!

activateProcessDefinitionById

public void activateProcessDefinitionById(String processDefinitionId)
从接口 RepositoryService 复制的描述
Activates the process definition with the given id.

指定者:
接口 RepositoryService 中的 activateProcessDefinitionById

activateProcessDefinitionById

public void activateProcessDefinitionById(String processDefinitionId,
                                          boolean activateProcessInstances,
                                          Date activationDate)
从接口 RepositoryService 复制的描述
Activates the process definition with the given id.

指定者:
接口 RepositoryService 中的 activateProcessDefinitionById
activationDate - The date on which the process definition will be activated. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!

activateProcessDefinitionByKey

public void activateProcessDefinitionByKey(String processDefinitionKey)
从接口 RepositoryService 复制的描述
Activates the process definition with the given key (=id in the bpmn20.xml file).

指定者:
接口 RepositoryService 中的 activateProcessDefinitionByKey

activateProcessDefinitionByKey

public void activateProcessDefinitionByKey(String processDefinitionKey,
                                           boolean activateProcessInstances,
                                           Date activationDate)
从接口 RepositoryService 复制的描述
Activates the process definition with the given key (=id in the bpmn20.xml file).

指定者:
接口 RepositoryService 中的 activateProcessDefinitionByKey
activationDate - The date on which the process definition will be activated. If null, the process definition is suspended immediately. Note: The job executor needs to be active to use this!

setProcessDefinitionCategory

public void setProcessDefinitionCategory(String processDefinitionId,
                                         String category)
从接口 RepositoryService 复制的描述
Sets the category of the process definition. Process definitions can be queried by category: see ProcessDefinitionQuery.processDefinitionCategory(String).

指定者:
接口 RepositoryService 中的 setProcessDefinitionCategory

getProcessModel

public InputStream getProcessModel(String processDefinitionId)
从接口 RepositoryService 复制的描述
Gives access to a deployed process model, e.g., a BPMN 2.0 XML file, through a stream of bytes.

指定者:
接口 RepositoryService 中的 getProcessModel
参数:
processDefinitionId - id of a ProcessDefinition, cannot be null.

getProcessDiagram

public InputStream getProcessDiagram(String processDefinitionId)
从接口 RepositoryService 复制的描述
Gives access to a deployed process diagram, e.g., a PNG image, through a stream of bytes.

指定者:
接口 RepositoryService 中的 getProcessDiagram
参数:
processDefinitionId - id of a ProcessDefinition, cannot be null.
返回:
null when the diagram resource name of a ProcessDefinition is null.

getProcessDiagramLayout

public DiagramLayout getProcessDiagramLayout(String processDefinitionId)
从接口 RepositoryService 复制的描述
Provides positions and dimensions of elements in a process diagram as provided by RepositoryService.getProcessDiagram(String). This method requires a process model and a diagram image to be deployed.

指定者:
接口 RepositoryService 中的 getProcessDiagramLayout
参数:
processDefinitionId - id of a ProcessDefinition, cannot be null.
返回:
Map with process element ids as keys and positions and dimensions as values.

newModel

public Model newModel()
从接口 RepositoryService 复制的描述
Creates a new model. The model is transient and must be saved using RepositoryService.saveModel(Model).

指定者:
接口 RepositoryService 中的 newModel

saveModel

public void saveModel(Model model)
从接口 RepositoryService 复制的描述
Saves the model. If the model already existed, the model is updated otherwise a new model is created.

指定者:
接口 RepositoryService 中的 saveModel
参数:
model - model to save, cannot be null.

deleteModel

public void deleteModel(String modelId)
指定者:
接口 RepositoryService 中的 deleteModel
参数:
modelId - id of model to delete, cannot be null. When an id is passed for an unexisting model, this operation is ignored.

addModelEditorSource

public void addModelEditorSource(String modelId,
                                 byte[] bytes)
从接口 RepositoryService 复制的描述
Saves the model editor source for a model

指定者:
接口 RepositoryService 中的 addModelEditorSource
参数:
modelId - id of model to delete, cannot be null. When an id is passed for an unexisting model, this operation is ignored.

addModelEditorSourceExtra

public void addModelEditorSourceExtra(String modelId,
                                      byte[] bytes)
从接口 RepositoryService 复制的描述
Saves the model editor source extra for a model

指定者:
接口 RepositoryService 中的 addModelEditorSourceExtra
参数:
modelId - id of model to delete, cannot be null. When an id is passed for an unexisting model, this operation is ignored.

createModelQuery

public ModelQuery createModelQuery()
从接口 RepositoryService 复制的描述
Query models.

指定者:
接口 RepositoryService 中的 createModelQuery

createNativeModelQuery

public NativeModelQuery createNativeModelQuery()
从接口 RepositoryService 复制的描述
Returns a new NativeQuery for process definitions.

指定者:
接口 RepositoryService 中的 createNativeModelQuery

getModel

public Model getModel(String modelId)
从接口 RepositoryService 复制的描述
Returns the Model

指定者:
接口 RepositoryService 中的 getModel
参数:
modelId - id of model

getModelEditorSource

public byte[] getModelEditorSource(String modelId)
从接口 RepositoryService 复制的描述
Returns the model editor source as a byte array

指定者:
接口 RepositoryService 中的 getModelEditorSource
参数:
modelId - id of model

getModelEditorSourceExtra

public byte[] getModelEditorSourceExtra(String modelId)
从接口 RepositoryService 复制的描述
Returns the model editor source extra as a byte array

指定者:
接口 RepositoryService 中的 getModelEditorSourceExtra
参数:
modelId - id of model

addCandidateStarterUser

public void addCandidateStarterUser(String processDefinitionId,
                                    String userId)
从接口 RepositoryService 复制的描述
Authorizes a candidate user for a process definition.

指定者:
接口 RepositoryService 中的 addCandidateStarterUser
参数:
processDefinitionId - id of the process definition, cannot be null.
userId - id of the user involve, cannot be null.

addCandidateStarterGroup

public void addCandidateStarterGroup(String processDefinitionId,
                                     String groupId)
从接口 RepositoryService 复制的描述
Authorizes a candidate group for a process definition.

指定者:
接口 RepositoryService 中的 addCandidateStarterGroup
参数:
processDefinitionId - id of the process definition, cannot be null.
groupId - id of the group involve, cannot be null.

deleteCandidateStarterGroup

public void deleteCandidateStarterGroup(String processDefinitionId,
                                        String groupId)
从接口 RepositoryService 复制的描述
Removes the authorization of a candidate group for a process definition.

指定者:
接口 RepositoryService 中的 deleteCandidateStarterGroup
参数:
processDefinitionId - id of the process definition, cannot be null.
groupId - id of the group involve, cannot be null.

deleteCandidateStarterUser

public void deleteCandidateStarterUser(String processDefinitionId,
                                       String userId)
从接口 RepositoryService 复制的描述
Removes the authorization of a candidate user for a process definition.

指定者:
接口 RepositoryService 中的 deleteCandidateStarterUser
参数:
processDefinitionId - id of the process definition, cannot be null.
userId - id of the user involve, cannot be null.

getIdentityLinksForProcessDefinition

public List<IdentityLink> getIdentityLinksForProcessDefinition(String processDefinitionId)
从接口 RepositoryService 复制的描述
Retrieves the IdentityLinks associated with the given process definition. Such an IdentityLink informs how a certain identity (eg. group or user) is authorized for a certain process definition

指定者:
接口 RepositoryService 中的 getIdentityLinksForProcessDefinition


Copyright © 2013 Alfresco. All rights reserved.