@Service public class RuntimeAppDefinitionServiceImpl extends Object implements RuntimeAppDefinitionService, RuntimeAppDefinitionInternalService
RuntimeAppDefinitions and RuntimeApps.| Constructor and Description |
|---|
RuntimeAppDefinitionServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.activiti.domain.runtime.RuntimeApp |
addAppDefinitionForUser(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition rad) |
com.activiti.domain.runtime.RuntimeAppDefinition |
createRuntimeAppDefinition(com.activiti.domain.idm.User user,
String name,
String description,
Long modelId,
String definition) |
com.activiti.domain.runtime.RuntimeAppDeployment |
createRuntimeAppDeployment(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition appDefinition,
Long modelId,
String definition) |
boolean |
deleteAppDefinition(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition) |
boolean |
deleteAppDefinitionForUser(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition appDefinition) |
com.activiti.domain.runtime.RuntimeAppDefinition |
getDefinitionForModelAndUser(Long modelId,
com.activiti.domain.idm.User user) |
Long |
getDefinitionIdForModelAndUser(Long modelId,
com.activiti.domain.idm.User user) |
List<com.activiti.domain.runtime.RuntimeAppDefinition> |
getDefinitionsForUser(com.activiti.domain.idm.User user) |
com.activiti.domain.runtime.RuntimeAppDefinition |
getRuntimeAppDefinition(Long id) |
com.activiti.domain.runtime.RuntimeAppDefinition |
getRuntimeAppDefinitionForModel(Long modelId) |
List<com.activiti.domain.runtime.RuntimeAppDeployment> |
getRuntimeAppDeploymentsForApp(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition) |
List<com.activiti.domain.runtime.RuntimeAppDeployment> |
getRuntimeAppDeploymentsForAppId(Long appId) |
protected void |
initialize() |
void |
updateRuntimeAppDefinition(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition) |
void |
updateRuntimeAppDeployment(com.activiti.domain.runtime.RuntimeAppDeployment appDeployment) |
public com.activiti.domain.runtime.RuntimeAppDefinition getRuntimeAppDefinition(Long id)
getRuntimeAppDefinition in interface RuntimeAppDefinitionInternalServiceRuntimeAppDefinition for the given id. Returns null, if no app definition
has been found.public com.activiti.domain.runtime.RuntimeAppDefinition getRuntimeAppDefinitionForModel(Long modelId)
getRuntimeAppDefinitionForModel in interface RuntimeAppDefinitionInternalServiceRuntimeAppDefinition which is a deployed version of the model with the given id or null
if the model currently not deployed.public List<com.activiti.domain.runtime.RuntimeAppDeployment> getRuntimeAppDeploymentsForApp(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition)
getRuntimeAppDeploymentsForApp in interface RuntimeAppDefinitionInternalServicepublic List<com.activiti.domain.runtime.RuntimeAppDeployment> getRuntimeAppDeploymentsForAppId(Long appId)
getRuntimeAppDeploymentsForAppId in interface RuntimeAppDefinitionServicepublic com.activiti.domain.runtime.RuntimeAppDefinition createRuntimeAppDefinition(com.activiti.domain.idm.User user,
String name,
String description,
Long modelId,
String definition)
createRuntimeAppDefinition in interface RuntimeAppDefinitionInternalServiceRuntimeAppDefinition, representing the deployed version of an app definition model with the given id. In case a RuntimeAppDefinition already exists
for the given model, only an additional RuntimeApp is created, referencing the existing definition and given user.public com.activiti.domain.runtime.RuntimeAppDeployment createRuntimeAppDeployment(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition appDefinition,
Long modelId,
String definition)
createRuntimeAppDeployment in interface RuntimeAppDefinitionInternalServiceRuntimeAppDeployment, representing the deployed version of an app definition model with the given id.public void updateRuntimeAppDefinition(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition)
updateRuntimeAppDefinition in interface RuntimeAppDefinitionInternalServicepublic void updateRuntimeAppDeployment(com.activiti.domain.runtime.RuntimeAppDeployment appDeployment)
updateRuntimeAppDeployment in interface RuntimeAppDefinitionInternalServicepublic List<com.activiti.domain.runtime.RuntimeAppDefinition> getDefinitionsForUser(com.activiti.domain.idm.User user)
getDefinitionsForUser in interface RuntimeAppDefinitionServiceRuntimeAppDefinition a user has defined. The results are based on the presence
of RuntimeApp entities, referencing the given user.public com.activiti.domain.runtime.RuntimeAppDefinition getDefinitionForModelAndUser(Long modelId, com.activiti.domain.idm.User user)
getDefinitionForModelAndUser in interface RuntimeAppDefinitionInternalServicepublic Long getDefinitionIdForModelAndUser(Long modelId, com.activiti.domain.idm.User user)
getDefinitionIdForModelAndUser in interface RuntimeAppDefinitionServicepublic com.activiti.domain.runtime.RuntimeApp addAppDefinitionForUser(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition rad)
addAppDefinitionForUser in interface RuntimeAppDefinitionInternalServiceRuntimeApp, connecting a user with a RuntimeAppDefinition. No checks
are performed to see if a user has rights to ass this definition.public boolean deleteAppDefinitionForUser(com.activiti.domain.idm.User user,
com.activiti.domain.runtime.RuntimeAppDefinition appDefinition)
deleteAppDefinitionForUser in interface RuntimeAppDefinitionInternalServiceRuntimeApp for the given user and the given definition. Returns
false if no valid RuntimeApp existed.@Transactional public boolean deleteAppDefinition(com.activiti.domain.runtime.RuntimeAppDefinition appDefinition)
deleteAppDefinition in interface RuntimeAppDefinitionInternalService@PostConstruct protected void initialize()
Copyright © 2014–2015 Alfresco. All rights reserved.