@Service public class RuntimeAppDefinitionServiceImpl extends Object implements RuntimeAppDefinitionService, RuntimeAppDefinitionInternalService
RuntimeAppDefinition
s and RuntimeApp
s.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 RuntimeAppDefinitionInternalService
RuntimeAppDefinition
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 RuntimeAppDefinitionInternalService
RuntimeAppDefinition
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 RuntimeAppDefinitionInternalService
public List<com.activiti.domain.runtime.RuntimeAppDeployment> getRuntimeAppDeploymentsForAppId(Long appId)
getRuntimeAppDeploymentsForAppId
in interface RuntimeAppDefinitionService
public com.activiti.domain.runtime.RuntimeAppDefinition createRuntimeAppDefinition(com.activiti.domain.idm.User user, String name, String description, Long modelId, String definition)
createRuntimeAppDefinition
in interface RuntimeAppDefinitionInternalService
RuntimeAppDefinition
, 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 RuntimeAppDefinitionInternalService
RuntimeAppDeployment
, 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 RuntimeAppDefinitionInternalService
public void updateRuntimeAppDeployment(com.activiti.domain.runtime.RuntimeAppDeployment appDeployment)
updateRuntimeAppDeployment
in interface RuntimeAppDefinitionInternalService
public List<com.activiti.domain.runtime.RuntimeAppDefinition> getDefinitionsForUser(com.activiti.domain.idm.User user)
getDefinitionsForUser
in interface RuntimeAppDefinitionService
RuntimeAppDefinition
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 RuntimeAppDefinitionInternalService
public Long getDefinitionIdForModelAndUser(Long modelId, com.activiti.domain.idm.User user)
getDefinitionIdForModelAndUser
in interface RuntimeAppDefinitionService
public com.activiti.domain.runtime.RuntimeApp addAppDefinitionForUser(com.activiti.domain.idm.User user, com.activiti.domain.runtime.RuntimeAppDefinition rad)
addAppDefinitionForUser
in interface RuntimeAppDefinitionInternalService
RuntimeApp
, 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 RuntimeAppDefinitionInternalService
RuntimeApp
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.