Class BulkPlanAction

    • Constructor Detail

      • BulkPlanAction

        public BulkPlanAction()
    • Method Detail

      • 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
        Update 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
      • isApplicable

        public boolean isApplicable​(BulkAction bulkAction,
                                    Project project)
      • isApplicableForRepositories

        public boolean isApplicableForRepositories​(BulkAction bulkAction)
      • isPlanSelected

        public boolean isPlanSelected​(String planKey)
      • isRepositorySelected

        public boolean isRepositorySelected​(long repositoryId)
      • 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 bulk action.
      • getSelectedBuilds

        public String[] getSelectedBuilds()
      • getSelectedRepositories

        public String[] getSelectedRepositories()
      • setSelectedRepositories

        public void setSelectedRepositories​(String[] selectedRepositories)
      • getBulkAction

        @Nullable
        public @Nullable BulkAction getBulkAction()
      • getSelectedPlans

        @Nullable
        public @Nullable List<ImmutablePlan> getSelectedPlans()
      • getSortedProjects

        public List<Project> getSortedProjects()
      • getSelectedBulkActionKey

        public String getSelectedBulkActionKey()
      • setSelectedBulkActionKey

        public void setSelectedBulkActionKey​(String selectedBulkActionKey)
      • getAvailableBulkActions

        public List<BulkAction> getAvailableBulkActions()
      • getResults

        public org.apache.commons.collections4.map.ListOrderedMap getResults()
      • setBackButton

        public void setBackButton​(String backButton)
      • setAvailableBulkActions

        public void setAvailableBulkActions​(List<BulkAction> availableBulkActions)
      • setRepositoryDefinitionManager

        public void setRepositoryDefinitionManager​(RepositoryDefinitionManager repositoryDefinitionManager)
      • setActionProxyFactory

        public void setActionProxyFactory​(com.opensymphony.xwork2.ActionProxyFactory actionProxyFactory)
      • setContainer

        public void setContainer​(com.opensymphony.xwork2.inject.Container container)
        Overrides:
        setContainer in class com.opensymphony.xwork2.ActionSupport