Interface EditActionAwareRepository

All Superinterfaces:
BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, Serializable
All Known Subinterfaces:
StashRepository
All Known Implementing Classes:
BitbucketRepository, GitRepository, StashRepositoryImpl

@ExperimentalApi public interface EditActionAwareRepository extends Repository
Repository that needs to perform additional actions before edit page is rendered for the repository and/or if additional, possibly failing, action needs to be taken before configuration is saved.
Since:
5.4
  • Method Details

    • beforeEditPageRendering

      void beforeEditPageRendering(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
      Action to be taken before rendering the edit page. Configuration can be modified by this method. Example use is verifying configuration so that proper warnings can be displayed before user takes any action.
      Parameters:
      configuration - configuration to be loaded into the UI
    • beforeSave

      ErrorCollection beforeSave(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
      Action to be taken before repository is saved from the UI. The method is called after the validate() method and only if validation is successful. If this method returns with error the configuration is not saved. Configuration can be modified by this method and the changes will be persisted.
      Parameters:
      configuration -
      Returns:
      collection of error messages. Should be empty if call is successful.