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 StringgetId()Specifies the identifier of the concreteRepositoryConfigwhen checking permissions of an object.booleanReturns true if the plugin is disabled.booleanisValid()Returns true if the configuration object is valid.voidsetDisabled(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:
isValidin interfaceValidateable
-
setDisabled
public void setDisabled(boolean disabled) Enable or disable the plugin.- Since:
- 1.13
-
getId
Specifies the identifier of the concreteRepositoryConfigwhen 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:
getIdin interfacecom.github.sdorra.ssp.PermissionObject- Returns:
- identifier of this RepositoryConfig in permission strings
-