public void createConfigRepo(ConfigRepoConfig configRepo, Username username, HttpLocalizedOperationResult result) { CreateConfigRepoCommand command = new CreateConfigRepoCommand(securityService, configRepo, username, result, configRepoExtension); update(username, configRepo.getId(), result, command); }
public void deleteConfigRepo(String repoId, Username username, HttpLocalizedOperationResult result) { DeleteConfigRepoCommand command = new DeleteConfigRepoCommand(securityService, repoId, username, result); update(username, repoId, result, command); if (result.isSuccessful()) { result.setMessage(LocalizedMessage.resourceDeleteSuccessful("config repo", repoId)); } }
public void updateConfigRepo(String repoIdToUpdate, ConfigRepoConfig newConfigRepo, String md5OfExistingConfigRepo, Username username, HttpLocalizedOperationResult result) { UpdateConfigRepoCommand command = new UpdateConfigRepoCommand(securityService, entityHashingService, repoIdToUpdate, newConfigRepo, md5OfExistingConfigRepo, username, result, configRepoExtension); update(username, newConfigRepo.getId(), result, command); if (result.isSuccessful()) { result.setMessage("The config repo '" + repoIdToUpdate + "' was updated successfully."); } } }