Class AbstractRepositoryAction

    • Constructor Detail

      • AbstractRepositoryAction

        public AbstractRepositoryAction()
    • Method Detail

      • 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()
      • getHiddenPlansUsingRepositoryCount

        public int getHiddenPlansUsingRepositoryCount()
      • 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)
      • getRepositoryNameMaxLength

        public int getRepositoryNameMaxLength()
      • validateRepositoryConfiguration

        protected void validateRepositoryConfiguration()