Class DeleteBuilds

    • Constructor Detail

      • DeleteBuilds

        public DeleteBuilds()
    • Method Detail

      • setSelectedBuilds

        public void setSelectedBuilds​(String[] selectedBuilds)
        The checkboxes all have the same name, but with different value. WebWork passes all values as a String array list. The values represent the build keys.
        Parameters:
        selectedBuilds - The key of the builds that have been selected for deletion.
      • getSelectedBuilds

        public String[] getSelectedBuilds()
      • getSelectedProjects

        public String[] getSelectedProjects()
      • setSelectedProjects

        public void setSelectedProjects​(String[] selectedProjects)
      • validate

        public void validate()
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        Overrides:
        validate in class com.opensymphony.xwork2.ActionSupport
      • execute

        public String execute()
                       throws Exception
        Remove the selected builds
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Returns:
        The webwork success status
        Throws:
        Exception - A generic failure
      • getJobsToConfirm

        @NotNull
        public @NotNull List<Job> getJobsToConfirm​(Plan plan)
      • getBuildsToConfirm

        @NotNull
        public @NotNull List<Chain> getBuildsToConfirm()
      • getProjectsToConfirm

        @NotNull
        public @NotNull List<Project> getProjectsToConfirm()
      • isApplicable

        public boolean isApplicable​(ImmutablePlan plan)
        Description copied from interface: BulkActionScope
        Returns whether or not a plan is applicable for a certain bulk action, eg. only plans with svn repositories for an action updating svn details
        Specified by:
        isApplicable in interface BulkActionScope
        Returns:
        true if applicable
      • isProjectSelected

        public boolean isProjectSelected​(String projectKey)
      • isPlanSelected

        public boolean isPlanSelected​(String planKey)
      • getSortedProjects

        public List<Project> getSortedProjects()
      • getSuccessMessage

        public String getSuccessMessage()
      • setSuccessMessage

        public void setSuccessMessage​(String successMessage)
      • getSortedPlans

        public List<? extends Plan> getSortedPlans​(Project project)