Package sonia.scm.repository
Class RepositoryConfig
java.lang.Object
sonia.scm.repository.RepositoryConfig
- All Implemented Interfaces:
com.github.sdorra.ssp.PermissionObject
,Configuration
,Validateable
Basic
Repository
configuration class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getId()
Specifies the identifier of the concreteRepositoryConfig
when checking permissions of an object.boolean
Returns true if the plugin is disabled.boolean
isValid()
Returns true if the configuration object is valid.void
setDisabled
(boolean disabled) Enable or disable the plugin.
-
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 interfaceValidateable
-
setDisabled
public void setDisabled(boolean disabled) Enable or disable the plugin.- Since:
- 1.13
-
getId
Specifies the identifier of the concreteRepositoryConfig
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 interfacecom.github.sdorra.ssp.PermissionObject
- Returns:
- identifier of this RepositoryConfig in permission strings
-