Class TemplateCannotBeRemovedException

  • All Implemented Interfaces:
    Serializable

    public class TemplateCannotBeRemovedException
    extends RuntimeException
    Thrown on attempt to remove a template which is still being used either by a build configuration or a project.
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateCannotBeRemovedException

        public TemplateCannotBeRemovedException​(String message)
    • Method Detail

      • addBuildTypesUsages

        public void addBuildTypesUsages​(@NotNull
                                        Set<String> buildTypeIds)
      • addProjectUsages

        public void addProjectUsages​(@NotNull
                                     Set<String> projectIds)
      • getBuildTypesUsages

        @NotNull
        public Set<String> getBuildTypesUsages()
        Returns:
        ids of build configurations where the template is still used
        Since:
        2022.04.2
      • getProjectsUsages

        @NotNull
        public Set<String> getProjectsUsages()
        Returns:
        ids of projects where the template is still used either as a default template or enforced settings
        Since:
        2022.04.2