Class EditChainBranchRepository

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BareBuildConfigurationAware, BuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanViewConfigurationSecurityAware, PlanAware, ProjectAware, 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.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
ResetChainBranchRepository

public class EditChainBranchRepository extends ConfigureRepository
See Also:
  • Field Details

  • Constructor Details

    • EditChainBranchRepository

      public EditChainBranchRepository()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Overrides:
      prepare in class ConfigureRepository
      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
    • getJsonObject

      @NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      This is default property read by webwork for webwork's result type "json".
      Overrides:
      getJsonObject in class ConfigureRepository
      Returns:
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
      See Also:
      • JSON Result

        If descending classes need to add anything to JSON response these should override #buildJsonObject() method.

    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • getRepositoryById

      @Nullable public @Nullable PartialVcsRepositoryData getRepositoryById(long id)
      Overrides:
      getRepositoryById in class ConfigureRepository
    • getRepository

      @Nullable public @Nullable PartialVcsRepositoryData getRepository()
    • validate

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

      public boolean canOverrideBranch()
    • canOverrideCDOptions

      public boolean canOverrideCDOptions()
    • isRepositoryEditable

      public boolean isRepositoryEditable()
    • getViewerSelectors

      public List<VcsViewerUIConfigBean.VcsViewerTypeSelector> getViewerSelectors()
    • getParentViewerSelector

      public VcsViewerUIConfigBean.VcsViewerTypeSelector getParentViewerSelector()
    • isOverrideRepositoryLocation

      public boolean isOverrideRepositoryLocation()
    • setOverrideRepositoryLocation

      public void setOverrideRepositoryLocation(boolean overrideRepositoryLocation)
    • getSelectedRepository

      public String getSelectedRepository()
      Overrides:
      getSelectedRepository in class ConfigureRepository
    • setSelectedRepository

      public void setSelectedRepository(String selectedRepository)
      Overrides:
      setSelectedRepository in class ConfigureRepository
    • isDefaultRepositoryTypeDifferent

      public boolean isDefaultRepositoryTypeDifferent()
    • getCurrentVcsTypeSelector

      public VcsUIConfigBean.VcsTypeSelector getCurrentVcsTypeSelector()
    • getParentVcsTypeSelector

      public VcsUIConfigBean.VcsTypeSelector getParentVcsTypeSelector()
    • isResetDone

      public boolean isResetDone()
    • isParentRemoved

      public boolean isParentRemoved()
    • setResetDone

      public void setResetDone(boolean resetDone)