Tabnine Logo
ArtifactTemplateService.getAllArtifactTemplates
Code IndexAdd Tabnine to your IDE (free)

How to use
getAllArtifactTemplates
method
in
com.netflix.spinnaker.halyard.config.services.v1.ArtifactTemplateService

Best Java code snippets using com.netflix.spinnaker.halyard.config.services.v1.ArtifactTemplateService.getAllArtifactTemplates (Showing top 4 results out of 315)

origin: spinnaker/halyard

public void addArtifactTemplate(String deploymentName, ArtifactTemplate newArtifactTemplate) {
 List<ArtifactTemplate> artifactTemplates = getAllArtifactTemplates(deploymentName);
 artifactTemplates.add(newArtifactTemplate);
}
origin: spinnaker/halyard

public void setArtifactTemplate(String deploymentName, String artifactTemplateName, ArtifactTemplate newArtifactTemplate) {
 List<ArtifactTemplate> artifactTemplates = getAllArtifactTemplates(deploymentName);
 for (int i = 0; i < artifactTemplates.size(); i++) {
  if (artifactTemplates.get(i).getNodeName().equals(artifactTemplateName)) {
   artifactTemplates.set(i, newArtifactTemplate);
   return;
  }
 }
 throw new HalException(new ConfigProblemBuilder(Problem.Severity.FATAL, "Artifact template \"" + artifactTemplateName + "\" wasn't found").build());
}
origin: spinnaker/halyard

public void deleteArtifactTemplate(String deploymentName, String artifactTemplateName) {
 List<ArtifactTemplate> artifactTemplates = getAllArtifactTemplates(deploymentName);
 boolean removed = artifactTemplates.removeIf(template -> template.getName().equals(artifactTemplateName));
 if (!removed) {
  throw new HalException(
    new ConfigProblemBuilder(Problem.Severity.FATAL, "Artifact template \"" + artifactTemplateName + "\" wasn't found")
      .build());
 }
}
origin: spinnaker/halyard

@RequestMapping(value = "/", method = RequestMethod.GET)
DaemonTask<Halconfig, List<ArtifactTemplate>> getArtifactTemplates(@PathVariable String deploymentName,
  @ModelAttribute ValidationSettings validationSettings) {
 return GenericGetRequest.<List<ArtifactTemplate>>builder()
   .getter(() -> artifactTemplateService.getAllArtifactTemplates(deploymentName))
   .validator(() -> artifactTemplateService.validateAllArtifactTemplates(deploymentName))
   .description("Get artifact templates")
   .build()
   .execute(validationSettings);
}
com.netflix.spinnaker.halyard.config.services.v1ArtifactTemplateServicegetAllArtifactTemplates

Popular methods of ArtifactTemplateService

  • addArtifactTemplate
  • deleteArtifactTemplate
  • getArtifactTemplate
  • getArtifacts
  • setArtifactTemplate
  • setArtifacts
  • validateAllArtifactTemplates
  • validateArtifactTemplate

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now