Class AbstractRepositoryAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.repository.AbstractRepositoryAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, 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.Preparable, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
AbstractLinkedRepositoryAction, AbstractProjectRepositoryAction

public abstract class AbstractRepositoryAction extends BambooActionSupport implements com.opensymphony.xwork2.Preparable
See Also:
  • Field Details

  • Constructor Details

    • AbstractRepositoryAction

      public AbstractRepositoryAction()
  • 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.

    • validateName

      protected void validateName()
    • validateUniqueName

      protected abstract boolean validateUniqueName()
    • validateDescription

      protected void validateDescription()
    • getRepositoryById

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

      public List<PlanIdentifier> getPlanUsingRepository()
    • getHiddenPlansUsingRepositoryCount

      public int getHiddenPlansUsingRepositoryCount()
    • getEnvironmentUsingRepository

      public List<DecoratedEnvironment> getEnvironmentUsingRepository()
    • getHiddenEnvironmentsUsingRepositoryCount

      public Integer getHiddenEnvironmentsUsingRepositoryCount()
    • isRepositoryDashboardOn

      public boolean isRepositoryDashboardOn()
    • getRepositoryId

      public Long getRepositoryId()
    • setRepositoryId

      public void setRepositoryId(Long repositoryId)
    • getSelectedRepository

      public String getSelectedRepository()
    • setSelectedRepository

      public void setSelectedRepository(String selectedRepository)
    • getSelectedWebRepositoryViewer

      public String getSelectedWebRepositoryViewer()
    • setSelectedWebRepositoryViewer

      public void setSelectedWebRepositoryViewer(String selectedWebRepositoryViewer)
    • getRepositoryName

      public String getRepositoryName()
    • setRepositoryName

      public void setRepositoryName(String repositoryName)
    • getUserDescription

      public String getUserDescription()
    • setUserDescription

      public void setUserDescription(String userDescription)
    • getUiConfigBean

      public UIConfigSupport getUiConfigBean()
    • getRepositoryNameMaxLength

      public int getRepositoryNameMaxLength()
    • validateRepositoryConfiguration

      protected void validateRepositoryConfiguration()