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 CommonEngineServiceImpl<ActionEngineConfiguration> implements ActionRepositoryService
- Author:
- Joram Barrez, Tijs Rademakers
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description ActionRepositoryServiceImpl(ActionEngineConfiguration engineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDefinitionLinkaddActionDefinitionLink(String actionDefinitionId, String type, String linkValue)Adds a newActionDefinitionLinkfor the given action definition id.StringconvertActionDefinitionModelToJson(String appDefinitionId)Returns theActionDefinitionModelas a JSON string.ActionDefinitionQuerycreateActionDefinitionQuery()Query case definitionsActionDeploymentBuildercreateDeployment()Starts creating a new deploymentActionDeploymentQuerycreateDeploymentQuery()Query deploymentsvoiddeleteActionDefinitionLink(String actionDefinitionLinkId)Deletes anActionDefinitionLinkfor the given action definition link id.voiddeleteDeployment(String deploymentId)Deletes the given deployment.ActionDeploymentdeploy(ActionDeploymentBuilderImpl deploymentBuilder)ActionDefinitiongetActionDefinition(String appDefinitionId)Returns theActionDefinitionincluding all action information like additional Properties (e.g.ActionDefinitiongetActionDefinitionByKey(String actionDefinitionKey)Returns theActionDefinitionincluding all action information like additional Properties (e.g.ActionDefinitiongetActionDefinitionByKeyAndTenantId(String actionDefinitionKey, String tenantId)Returns theActionDefinitionincluding all action information like additional Properties (e.g.List<ActionDefinitionLink>getActionDefinitionLinks(String actionDefinitionId)ReturnsActionDefinitionLinks for the given action definition id.ActionDefinitionModelgetActionDefinitionModel(String actionDefinitionId)Returns theActionDefinitionModelincluding all action model info.ActionDefinitionModelgetActionDefinitionModelByKey(String actionDefinitionKey)Returns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.ActionDefinitionModelgetActionDefinitionModelByKeyAndTenantId(String actionDefinitionKey, String tenantId)Returns theActionDefinitionModelincluding all action model info, using the action definition key and resolving the key to the latest version.List<String>getDeploymentResourceNames(String deploymentId)Retrieves a list of deployment resources for the given deployment, ordered alphabetically.InputStreamgetResourceAsStream(String deploymentId, 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
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
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 List<String> getDeploymentResourceNames(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 InputStream getResourceAsStream(String deploymentId, 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(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(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(String actionDefinitionKey, 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 List<ActionDefinitionLink> getActionDefinitionLinks(String actionDefinitionId)
Description copied from interface:ActionRepositoryServiceReturnsActionDefinitionLinks for the given action definition id.- Specified by:
getActionDefinitionLinksin interfaceActionRepositoryService
-
addActionDefinitionLink
public ActionDefinitionLink addActionDefinitionLink(String actionDefinitionId, String type, String linkValue)
Description copied from interface:ActionRepositoryServiceAdds a newActionDefinitionLinkfor the given action definition id.- Specified by:
addActionDefinitionLinkin interfaceActionRepositoryService
-
deleteActionDefinitionLink
public void deleteActionDefinitionLink(String actionDefinitionLinkId)
Description copied from interface:ActionRepositoryServiceDeletes anActionDefinitionLinkfor the given action definition link id.- Specified by:
deleteActionDefinitionLinkin interfaceActionRepositoryService
-
getActionDefinitionModel
public ActionDefinitionModel getActionDefinitionModel(String actionDefinitionId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelincluding all action model info.- Specified by:
getActionDefinitionModelin interfaceActionRepositoryService
-
getActionDefinitionModelByKey
public ActionDefinitionModel getActionDefinitionModelByKey(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(String actionDefinitionKey, 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 String convertActionDefinitionModelToJson(String appDefinitionId)
Description copied from interface:ActionRepositoryServiceReturns theActionDefinitionModelas a JSON string.- Specified by:
convertActionDefinitionModelToJsonin interfaceActionRepositoryService
-
deleteDeployment
public void deleteDeployment(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
-
-