Package com.flowable.app.engine.impl
Class AppRepositoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<AppEngineConfiguration>
com.flowable.app.engine.impl.AppRepositoryServiceImpl
- All Implemented Interfaces:
CoreAppRepositoryService
,AppRepositoryService
public class AppRepositoryServiceImpl
extends CommonEngineServiceImpl<AppEngineConfiguration>
implements CoreAppRepositoryService
- 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
-
Method Summary
Modifier and TypeMethodDescriptionconvertAppModelToJson
(String appDefinitionId) void
deleteDeployment
(String deploymentId, boolean cascade) void
deleteVariable
(String appKey, String variableName) Delete a variable for an app definition.void
deleteVariable
(String appKey, String tenantId, String variableName) Delete a variable for an app definition.void
deleteVariables
(String appKey, String tenantId, Collection<String> variableNames) Delete variables for an app definition.void
deleteVariables
(String appKey, Collection<String> variableNames) Delete variables for an app definition.deploy
(AppDeploymentBuilderImpl deploymentBuilder) getAppDefinition
(String appDefinitionId) getAppModel
(String appDefinitionId) getCoreAppDefinition
(String appDefinitionId) getCoreAppModel
(String appDefinitionId) getCorePageModel
(String appDefinitionKey, String tenantId, String pageDefinitionRef) getDeploymentResourceNames
(String deploymentId) getPageDefinitionsForApp
(String appDefinitionKey) getPageDefinitionsForApp
(String appDefinitionKey, String tenantId) getResourceAsStream
(String deploymentId, String resourceName) getVariables
(String appKey) Get all variables for given app key.getVariables
(String appKey, String tenantId) Get all variables for given app key and tenant id.getVariableValue
(String appKey, String variableName) Get variable value for given app key and variable name.getVariableValue
(String appKey, String tenantId, String variableName) Get variable value for given app key and variable name.void
setAppDefinitionCategory
(String appDefinitionId, String category) void
setVariable
(String appKey, String variableName, Object value) Update or create a variable for an app definition.void
setVariable
(String appKey, String tenantId, String variableName, Object value) Update or create a variable for an app definition.void
Update or create a variable for an app definition.void
setVariables
(String appKey, Map<String, Object> variables) Update or create a variable for an app definition.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 Details
-
AppRepositoryServiceImpl
-
-
Method Details
-
createDeployment
- Specified by:
createDeployment
in interfaceAppRepositoryService
-
getDeploymentResourceNames
- Specified by:
getDeploymentResourceNames
in interfaceAppRepositoryService
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfaceAppRepositoryService
-
deploy
-
getAppDefinition
- Specified by:
getAppDefinition
in interfaceAppRepositoryService
-
getCoreAppDefinition
- Specified by:
getCoreAppDefinition
in interfaceCoreAppRepositoryService
-
getAppModel
- Specified by:
getAppModel
in interfaceAppRepositoryService
-
getCoreAppModel
- Specified by:
getCoreAppModel
in interfaceCoreAppRepositoryService
-
getPageDefinitionsForApp
- Specified by:
getPageDefinitionsForApp
in interfaceCoreAppRepositoryService
-
getPageDefinitionsForApp
- Specified by:
getPageDefinitionsForApp
in interfaceCoreAppRepositoryService
-
getCorePageModel
public CorePageModel getCorePageModel(String appDefinitionKey, String tenantId, String pageDefinitionRef) - Specified by:
getCorePageModel
in interfaceCoreAppRepositoryService
-
convertAppModelToJson
- Specified by:
convertAppModelToJson
in interfaceAppRepositoryService
-
deleteDeployment
- Specified by:
deleteDeployment
in interfaceAppRepositoryService
-
createDeploymentQuery
- Specified by:
createDeploymentQuery
in interfaceAppRepositoryService
-
createAppDefinitionQuery
- Specified by:
createAppDefinitionQuery
in interfaceAppRepositoryService
-
createCoreAppDefinitionQuery
- Specified by:
createCoreAppDefinitionQuery
in interfaceCoreAppRepositoryService
-
createPageDefinitionQuery
- Specified by:
createPageDefinitionQuery
in interfaceCoreAppRepositoryService
-
createAppVariableQuery
- Specified by:
createAppVariableQuery
in interfaceCoreAppRepositoryService
-
setAppDefinitionCategory
- Specified by:
setAppDefinitionCategory
in interfaceAppRepositoryService
-
getVariables
Description copied from interface:CoreAppRepositoryService
Get all variables for given app key.- Specified by:
getVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- key of the application, cannot be null.- Returns:
- the variables or an empty map if no such variables are found.
-
getVariables
Description copied from interface:CoreAppRepositoryService
Get all variables for given app key and tenant id.- Specified by:
getVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- key of the application, cannot be null.tenantId
- tenant id of the application, cannot be null.- Returns:
- the variables or an empty map if no such variables are found.
-
getVariableValue
Description copied from interface:CoreAppRepositoryService
Get variable value for given app key and variable name.- Specified by:
getVariableValue
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- key of the application, cannot be null.variableName
- the variable name- Returns:
- the variable value.
-
getVariableValue
Description copied from interface:CoreAppRepositoryService
Get variable value for given app key and variable name.- Specified by:
getVariableValue
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- key of the application, cannot be null.tenantId
- tenant id of the application, cannot be null.variableName
- the variable name- Returns:
- the variable value.
-
setVariable
Description copied from interface:CoreAppRepositoryService
Update or create a variable for an app definition.- Specified by:
setVariable
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.variableName
- name of variable to set, cannot be null.value
- value to set. When null is passed, the variable is not removed, only it's value will be set to null.
-
setVariable
Description copied from interface:CoreAppRepositoryService
Update or create a variable for an app definition.- Specified by:
setVariable
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.tenantId
- tenant id of the applicationvariableName
- name of variable to set, cannot be null.value
- value to set. When null is passed, the variable is not removed, only it's value will be set to null.
-
setVariables
Description copied from interface:CoreAppRepositoryService
Update or create a variable for an app definition.- Specified by:
setVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.variables
- variables to set, cannot be null or empty.
-
setVariables
Description copied from interface:CoreAppRepositoryService
Update or create a variable for an app definition.- Specified by:
setVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.tenantId
- tenant id of the applicationvariables
- variables to set, cannot be null or empty.
-
deleteVariable
Description copied from interface:CoreAppRepositoryService
Delete a variable for an app definition.- Specified by:
deleteVariable
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.variableName
- name of variable to delete, cannot be null.
-
deleteVariable
Description copied from interface:CoreAppRepositoryService
Delete a variable for an app definition.- Specified by:
deleteVariable
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.tenantId
- tenant id of the applicationvariableName
- name of variable to delete, cannot be null.
-
deleteVariables
Description copied from interface:CoreAppRepositoryService
Delete variables for an app definition.- Specified by:
deleteVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.variableNames
- the collection of names of the variables to delete.
-
deleteVariables
Description copied from interface:CoreAppRepositoryService
Delete variables for an app definition.- Specified by:
deleteVariables
in interfaceCoreAppRepositoryService
- Parameters:
appKey
- application definition key, cannot be null.tenantId
- tenant id of the applicationvariableNames
- the collection of names of the variables to delete.
-