Interface PodTemplateGroup

All Known Implementing Classes:
KubernetesCloud, NonConfigurableKubernetesCloud

public interface PodTemplateGroup
A group of pod templates that can be saved together.
  • Method Details

    • addTemplate

      void addTemplate(PodTemplate podTemplate)
      Add the template to the group.
      Parameters:
      podTemplate - the template to add
    • replaceTemplate

      void replaceTemplate(PodTemplate oldTemplate, PodTemplate newTemplate)
      Replaces the old template with the new template.
      Parameters:
      oldTemplate - the old template to replace
      newTemplate - the new template to replace with
    • removeTemplate

      void removeTemplate(PodTemplate podTemplate)
      Removes the template from the group.
      Parameters:
      podTemplate - the template to remove
    • getPodTemplateGroupUrl

      String getPodTemplateGroupUrl()
      Returns:
      the URL to redirect to after the template is saved.
    • getManagePermission

      Permission getManagePermission()
      Returns:
      The permission required to manage the templates in this group.
    • hasManagePermission

      default boolean hasManagePermission()
      Returns:
      true if the current Authentication has permissions to add / replace / remove templates.
    • checkManagePermission

      default void checkManagePermission() throws org.springframework.security.access.AccessDeniedException
      Checks whether the current Authentication has sufficient permissions to manage the templates in this group.
      Throws:
      org.springframework.security.access.AccessDeniedException - if access is denied for the current Authentication.