public void deploy(final DeploymentEntity deployment) { cacheDeployer.deploy(deployment); }
public void setDeployers(List<Deployer> deployers) { this.cacheDeployer.setDeployers(deployers); }
public void deployOnlyGivenResourcesOfDeployment(final DeploymentEntity deployment, String... resourceNames) { initDeployment(deployment, resourceNames); Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() { public Void call() throws Exception { for (Deployer deployer : deployers) { deployer.deploy(deployment); } return null; } }); deployment.setResources(null); }
public T resolveDefinition(T definition) { String definitionId = definition.getId(); String deploymentId = definition.getDeploymentId(); T cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { synchronized (this) { cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { DeploymentEntity deployment = Context .getCommandContext() .getDeploymentManager() .findDeploymentById(deploymentId); deployment.setNew(false); cacheDeployer.deployOnlyGivenResourcesOfDeployment(deployment, definition.getResourceName(), definition.getDiagramResourceName()); cachedDefinition = cache.get(definitionId); } } checkInvalidDefinitionWasCached(deploymentId, definitionId, cachedDefinition); } if (cachedDefinition != null) { cachedDefinition.updateModifiableFieldsFromEntity(definition); } return cachedDefinition; }
public void deployOnlyGivenResourcesOfDeployment(final DeploymentEntity deployment, String... resourceNames) { initDeployment(deployment, resourceNames); Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() { public Void call() throws Exception { for (Deployer deployer : deployers) { deployer.deploy(deployment); } return null; } }); deployment.setResources(null); }
public T resolveDefinition(T definition) { String definitionId = definition.getId(); String deploymentId = definition.getDeploymentId(); T cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { synchronized (this) { cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { DeploymentEntity deployment = Context .getCommandContext() .getDeploymentManager() .findDeploymentById(deploymentId); deployment.setNew(false); cacheDeployer.deployOnlyGivenResourcesOfDeployment(deployment, definition.getResourceName(), definition.getDiagramResourceName()); cachedDefinition = cache.get(definitionId); } } checkInvalidDefinitionWasCached(deploymentId, definitionId, cachedDefinition); } if (cachedDefinition != null) { cachedDefinition.updateModifiableFieldsFromEntity(definition); } return cachedDefinition; }
public void deployOnlyGivenResourcesOfDeployment(final DeploymentEntity deployment, String... resourceNames) { initDeployment(deployment, resourceNames); Context.getCommandContext().runWithoutAuthorization(new Callable<Void>() { public Void call() throws Exception { for (Deployer deployer : deployers) { deployer.deploy(deployment); } return null; } }); deployment.setResources(null); }
public void deploy(final DeploymentEntity deployment) { cacheDeployer.deploy(deployment); }
public void setDeployers(List<Deployer> deployers) { this.cacheDeployer.setDeployers(deployers); }
public T resolveDefinition(T definition) { String definitionId = definition.getId(); String deploymentId = definition.getDeploymentId(); T cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { synchronized (this) { cachedDefinition = cache.get(definitionId); if (cachedDefinition == null) { DeploymentEntity deployment = Context .getCommandContext() .getDeploymentManager() .findDeploymentById(deploymentId); deployment.setNew(false); cacheDeployer.deployOnlyGivenResourcesOfDeployment(deployment, definition.getResourceName(), definition.getDiagramResourceName()); cachedDefinition = cache.get(definitionId); } } checkInvalidDefinitionWasCached(deploymentId, definitionId, cachedDefinition); } if (cachedDefinition != null) { cachedDefinition.updateModifiableFieldsFromEntity(definition); } return cachedDefinition; }
public void deploy(final DeploymentEntity deployment) { cacheDeployer.deploy(deployment); }
public void setDeployers(List<Deployer> deployers) { this.cacheDeployer.setDeployers(deployers); }