public abstract class AbstractScmRequestHandlerModuleDescriptor<T> extends BaseWeightedModuleDescriptor<T>
ScmRequest handlers.key, moduleClass, moduleClassName, moduleFactory, name, plugin, resourcesCOMPARABLE| Constructor and Description |
|---|
AbstractScmRequestHandlerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory,
int defaultWeight) |
| Modifier and Type | Method and Description |
|---|---|
T |
getModule() |
String |
getScm()
Retrieves the
ID of the SCM this handler adds support for, or null if
this handler does not, of itself, add support for any specific SCM. |
ScmUrlFormatter |
getUrlFormatter()
Retrieves the
ScmUrlFormatter which should be used to format clone URLs targeting this handler. |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
protected void |
provideValidationRules(com.atlassian.plugin.util.validation.ValidationPattern pattern) |
compareTo, getWeightassertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validatepublic AbstractScmRequestHandlerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory,
int defaultWeight)
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init in interface com.atlassian.plugin.ModuleDescriptor<T>init in class BaseWeightedModuleDescriptor<T>com.atlassian.plugin.PluginParseException@Nullable public String getScm()
ID of the SCM this handler adds support for, or null if
this handler does not, of itself, add support for any specific SCM.null@Nullable public ScmUrlFormatter getUrlFormatter()
ScmUrlFormatter which should be used to format clone URLs targeting this handler.
If no formatter is specified, a default URL will be generated.null to use the default URLprotected void provideValidationRules(com.atlassian.plugin.util.validation.ValidationPattern pattern)
provideValidationRules in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>Copyright © 2024 Atlassian. All rights reserved.