java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BulkActionScope, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class MoveBuilds extends GlobalAdminAction implements BulkActionScope
See Also:
  • Constructor Details

    • MoveBuilds

      public MoveBuilds()
  • Method Details

    • selectPlans

      public String selectPlans()
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • doDefault

      public String doDefault() throws Exception
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
      Throws:
      Exception
    • getSelectedPlans

      @NotNull public @NotNull Collection<TopLevelPlan> getSelectedPlans()
    • getSelectedPlanKeys

      public Collection<String> getSelectedPlanKeys()
    • getSelectedProject

      public Project getSelectedProject()
    • isNewProject

      public boolean isNewProject(String existingProjectKey)
    • setPlanIds

      public void setPlanIds(long[] buildIds)
    • getPlanIdMappings

      public Map<String,String> getPlanIdMappings()
    • setPlanIdMappings

      public void setPlanIdMappings(Map<String,String> planIdMappings)
    • getPlanKeyMappings

      public Map<String,String> getPlanKeyMappings()
    • setPlanKeyMappings

      public void setPlanKeyMappings(Map<String,String> planKeyMappings)
    • getPlanNameMappings

      public Map<String,String> getPlanNameMappings()
    • setPlanNameMappings

      public void setPlanNameMappings(Map<String,String> planNameMappings)
    • isBuildQueuesDisabled

      public boolean isBuildQueuesDisabled()
    • getProjectName

      public String getProjectName()
    • setProjectName

      public void setProjectName(String projectName)
    • getProjectKey

      public String getProjectKey()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • getProjectDescription

      public String getProjectDescription()
    • setProjectDescription

      public void setProjectDescription(String projectDescription)
    • getExistingProjectKey

      public String getExistingProjectKey()
    • setExistingProjectKey

      public void setExistingProjectKey(String existingProjectKey)
    • isApplicableForRepositories

      public boolean isApplicableForRepositories()
      Specified by:
      isApplicableForRepositories in interface BulkActionScope
    • isApplicable

      public boolean isApplicable(BulkActionScope bulkAction, Project project)
    • 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
    • isPlanSelected

      public boolean isPlanSelected(String planKey)
    • getSortedProjects

      public List<Project> getSortedProjects()
    • getSortedTopLevelPlans

      public List<ImmutableTopLevelPlan> getSortedTopLevelPlans(Project project)