Class ActionRepositoryServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration>
-
- com.flowable.action.engine.impl.repository.ActionRepositoryServiceImpl
-
- All Implemented Interfaces:
ActionRepositoryService
public class ActionRepositoryServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRepositoryService
- Author:
- Joram Barrez, Tijs Rademakers
-
-
Constructor Summary
Constructors Constructor Description ActionRepositoryServiceImpl(ActionEngineConfiguration engineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDefinitionLinkaddActionDefinitionLink(java.lang.String actionDefinitionId, java.lang.String type, java.lang.String linkValue)Adds a newActionDefinitionLinkfor the given action definition id.java.lang.StringconvertActionDefinitionModelToJson(java.lang.String appDefinitionId)Returns theActionDefinitionModelas a JSON string.ActionDefinitionQuerycreateActionDefinitionQuery()Query case definitionsActionDeploymentBuildercreateDeployment()Starts creating a new deploymentActionDeploymentQuerycreateDeploymentQuery()Query deploymentsvoiddeleteActionDefinitionLink(java.lang.String actionDefinitionLinkId)Deletes anActionDefinitionLinkfor the given action definition link id.voiddeleteDeployment(java.lang.String deploymentId)Deletes the given deployment.ActionDeploymentdeploy(ActionDeploymentBuilderImpl deploymentBuilder)ActionDefinitiongetActionDefinition(java.lang.String appDefinitionId)Returns theActionDefinitionincluding all action information like additional Properties (e.g.ActionDefinitiongetActionDefinitionByKey(java.lang.String actionDefinitionKey)Returns theActionDefinitionincluding all action information like additional Properties (e.g.ActionDefinitiongetActionDefinitionByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)Returns theActionDefinitionincluding all action information like additional Properties (e.g.java.util.List<ActionDefinitionLink>getActionDefinitionLinks(java.lang.String actionDefinitionId)ReturnsActionDefinitionLinks for the given action definition id.ActionDefinitionModelgetActionDefinitionModel(java.lang.String actionDefinitionId)Returns theActionDefinitionModelincluding all action model info.ActionDefinitionModelgetActionDefinitionModelByKey(java.lang.String actionDefinitionKey)Returns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.ActionDefinitionModelgetActionDefinitionModelByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)Returns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.java.util.List<java.lang.String>getDeploymentResourceNames(java.lang.String deploymentId)Retrieves a list of deployment resources for the given deployment, ordered alphabetically.java.io.InputStreamgetResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Gives access to a deployment resource through a stream of bytes.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
-
-
-
Constructor Detail
-
ActionRepositoryServiceImpl
public ActionRepositoryServiceImpl(ActionEngineConfiguration engineConfiguration)
-
-
Method Detail
-
createDeployment
public ActionDeploymentBuilder createDeployment()
Description copied from interface:ActionRepositoryServiceStarts creating a new deployment- Specified by:
createDeploymentin interfaceActionRepositoryService
-
getDeploymentResourceNames
public java.util.List<java.lang.String> getDeploymentResourceNames(java.lang.String deploymentId)
Description copied from interface:ActionRepositoryServiceRetrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNamesin interfaceActionRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String deploymentId, java.lang.String resourceName)Description copied from interface:ActionRepositoryServiceGives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamin interfaceActionRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.resourceName- name of the resource, cannot be null.
-
deploy
public ActionDeployment deploy(ActionDeploymentBuilderImpl deploymentBuilder)
-
getActionDefinition
public ActionDefinition getActionDefinition(java.lang.String appDefinitionId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionincluding all action information like additional Properties (e.g. documentation).- Specified by:
getActionDefinitionin interfaceActionRepositoryService
-
getActionDefinitionByKey
public ActionDefinition getActionDefinitionByKey(java.lang.String actionDefinitionKey)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionincluding all action information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getActionDefinitionByKeyin interfaceActionRepositoryService
-
getActionDefinitionByKeyAndTenantId
public ActionDefinition getActionDefinitionByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionincluding all action information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getActionDefinitionByKeyAndTenantIdin interfaceActionRepositoryService
-
getActionDefinitionLinks
public java.util.List<ActionDefinitionLink> getActionDefinitionLinks(java.lang.String actionDefinitionId)
Description copied from interface:ActionRepositoryServiceReturnsActionDefinitionLinks for the given action definition id.- Specified by:
getActionDefinitionLinksin interfaceActionRepositoryService
-
addActionDefinitionLink
public ActionDefinitionLink addActionDefinitionLink(java.lang.String actionDefinitionId, java.lang.String type, java.lang.String linkValue)
Description copied from interface:ActionRepositoryServiceAdds a newActionDefinitionLinkfor the given action definition id.- Specified by:
addActionDefinitionLinkin interfaceActionRepositoryService
-
deleteActionDefinitionLink
public void deleteActionDefinitionLink(java.lang.String actionDefinitionLinkId)
Description copied from interface:ActionRepositoryServiceDeletes anActionDefinitionLinkfor the given action definition link id.- Specified by:
deleteActionDefinitionLinkin interfaceActionRepositoryService
-
getActionDefinitionModel
public ActionDefinitionModel getActionDefinitionModel(java.lang.String actionDefinitionId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelincluding all action model info.- Specified by:
getActionDefinitionModelin interfaceActionRepositoryService
-
getActionDefinitionModelByKey
public ActionDefinitionModel getActionDefinitionModelByKey(java.lang.String actionDefinitionKey)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.- Specified by:
getActionDefinitionModelByKeyin interfaceActionRepositoryService
-
getActionDefinitionModelByKeyAndTenantId
public ActionDefinitionModel getActionDefinitionModelByKeyAndTenantId(java.lang.String actionDefinitionKey, java.lang.String tenantId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.- Specified by:
getActionDefinitionModelByKeyAndTenantIdin interfaceActionRepositoryService
-
convertActionDefinitionModelToJson
public java.lang.String convertActionDefinitionModelToJson(java.lang.String appDefinitionId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelas a JSON string.- Specified by:
convertActionDefinitionModelToJsonin interfaceActionRepositoryService
-
deleteDeployment
public void deleteDeployment(java.lang.String deploymentId)
Description copied from interface:ActionRepositoryServiceDeletes the given deployment.- Specified by:
deleteDeploymentin interfaceActionRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
createDeploymentQuery
public ActionDeploymentQuery createDeploymentQuery()
Description copied from interface:ActionRepositoryServiceQuery deployments- Specified by:
createDeploymentQueryin interfaceActionRepositoryService
-
createActionDefinitionQuery
public ActionDefinitionQuery createActionDefinitionQuery()
Description copied from interface:ActionRepositoryServiceQuery case definitions- Specified by:
createActionDefinitionQueryin interfaceActionRepositoryService
-
-