@Service @Transactional public class AppDefinitionServiceImpl extends Object implements AppDefinitionService
| Modifier and Type | Field and Description |
|---|---|
protected AppDefinitionPublishService |
appDefinitionPublishService |
protected ModelHistoryRepository |
modelHistoryRepository |
protected ModelRepository |
modelRepository |
protected ModelService |
modelService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
AppDefinitionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected AppDefinitionServiceRepresentation |
createAppDefinition(AbstractModel model) |
protected AppDefinitionRepresentation |
createAppDefinitionRepresentation(AbstractModel model) |
AppDefinitionRepresentation |
getAppDefinition(String modelId) |
AppDefinitionRepresentation |
getAppDefinitionHistory(String modelId,
String modelHistoryId) |
List<AppDefinitionServiceRepresentation> |
getAppDefinitions() |
List<AppDefinitionServiceRepresentation> |
getDeployableAppDefinitions(org.flowable.idm.api.User user)
Gathers all 'deployable' app definitions for the current user.
|
AppDefinitionUpdateResultRepresentation |
updateAppDefinition(String modelId,
AppDefinitionSaveRepresentation updatedModel) |
@Autowired protected AppDefinitionPublishService appDefinitionPublishService
@Autowired protected ModelService modelService
@Autowired protected ModelRepository modelRepository
@Autowired protected ModelHistoryRepository modelHistoryRepository
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public AppDefinitionRepresentation getAppDefinition(String modelId)
getAppDefinition in interface AppDefinitionServicepublic AppDefinitionRepresentation getAppDefinitionHistory(String modelId, String modelHistoryId)
getAppDefinitionHistory in interface AppDefinitionServicepublic List<AppDefinitionServiceRepresentation> getAppDefinitions()
getAppDefinitions in interface AppDefinitionServicepublic List<AppDefinitionServiceRepresentation> getDeployableAppDefinitions(org.flowable.idm.api.User user)
To find these: - All historical app models are fetched. Only the highest version of each app model is retained. - All historical app models shared with the groups the current user is part of are fetched. Only the highest version of each app model is retained.
getDeployableAppDefinitions in interface AppDefinitionServicepublic AppDefinitionUpdateResultRepresentation updateAppDefinition(String modelId, AppDefinitionSaveRepresentation updatedModel)
updateAppDefinition in interface AppDefinitionServiceprotected AppDefinitionServiceRepresentation createAppDefinition(AbstractModel model)
protected AppDefinitionRepresentation createAppDefinitionRepresentation(AbstractModel model)
Copyright © 2018 Flowable. All rights reserved.