protected DeploymentAction<? extends DeploymentActionContext> createWoraroundRemoveAction(ProfileKey key, ManagedProfile profile, String name) throws Exception { if(profileRepository.getProfileKeys().contains(key)) { DeploymentRepository repository = profileRepository.getProfileDeploymentRepository(key); return new RepositoryRemoveAction(key, repository, name, null); } return null; } }
protected DeploymentAction<? extends DeploymentActionContext> createWoraroundDistributeAction(ProfileKey key, DeploymentID dtID, InputStream contentIS, MutableProfile profile) throws Exception { if(profileRepository.getProfileKeys().contains(key)) { DeploymentRepository repository = profileRepository.getProfileDeploymentRepository(key); return new RepositoryDistributeAction(dtID, contentIS, profile, repository, null); } return null; }