Class RepositoryConfig

java.lang.Object
sonia.scm.repository.RepositoryConfig
All Implemented Interfaces:
com.github.sdorra.ssp.PermissionObject, Configuration, Validateable

public abstract class RepositoryConfig extends Object implements Validateable, Configuration
Basic Repository configuration class.
  • Constructor Details

    • RepositoryConfig

      public RepositoryConfig()
  • Method Details

    • isDisabled

      public boolean isDisabled()
      Returns true if the plugin is disabled.
      Since:
      1.13
    • isValid

      public boolean isValid()
      Returns true if the configuration object is valid.
      Specified by:
      isValid in interface Validateable
    • setDisabled

      public void setDisabled(boolean disabled)
      Enable or disable the plugin.
      Since:
      1.13
    • getId

      public abstract String getId()
      Specifies the identifier of the concrete RepositoryConfig when checking permissions of an object. The permission Strings will have the following format: "configuration:*:ID", where the ID part is defined by this method. For example: "configuration:read:git". No need to serialize this.
      Specified by:
      getId in interface com.github.sdorra.ssp.PermissionObject
      Returns:
      identifier of this RepositoryConfig in permission strings