java.lang.Object
com.opensymphony.xwork2.ActionSupport
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:
ConfigureChainBranchRepositories, ConfigureChainRepositories, ConvertLocalToGlobalRepository, CreateRepository, DeleteRepository, EditChainBranchRepository, EditRepository, MoveRepository

public class ConfigureRepository extends BuildConfigurationSupport implements PlanViewConfigurationSecurityAware, com.opensymphony.xwork2.Preparable
See Also:
  • Field Details

  • Constructor Details

    • ConfigureRepository

      public ConfigureRepository()
  • Method Details

    • prepare

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

    • getRepositoryById

      @Nullable protected @Nullable PartialVcsRepositoryData getRepositoryById(long id)
    • validatePlan

      protected void validatePlan()
    • validateName

      protected void validateName()
    • validateGlobalRepositoryUse

      protected void validateGlobalRepositoryUse()
    • getRepositoryId

      public long getRepositoryId()
    • setRepositoryId

      public void setRepositoryId(long repositoryId)
    • getRepositoryDefinition

      public PartialVcsRepositoryData getRepositoryDefinition()
    • getUserDescription

      public String getUserDescription()
    • setUserDescription

      public void setUserDescription(String userDescription)
    • getRepositoryName

      public String getRepositoryName()
    • setRepositoryName

      public void setRepositoryName(String repositoryName)
    • getSelectedRepository

      public String getSelectedRepository()
    • setSelectedRepository

      public void setSelectedRepository(String selectedRepository)
    • getSelectedWebRepositoryViewer

      public String getSelectedWebRepositoryViewer()
    • setSelectedWebRepositoryViewer

      public void setSelectedWebRepositoryViewer(String selectedWebRepositoryViewer)
    • getRepositoryNameMaxLength

      public int getRepositoryNameMaxLength()
    • validateRepositoryConfiguration

      protected void validateRepositoryConfiguration(boolean overrideBranch)
    • isDerivedFromLinkedRepository

      public boolean isDerivedFromLinkedRepository()
    • isDerivedFromProjectRepository

      public boolean isDerivedFromProjectRepository()
    • isBranchOverridable

      public boolean isBranchOverridable()
    • triggerAnalyticsEvent

      protected void triggerAnalyticsEvent()