public class

ScmRequestCheckModuleDescriptor

extends BaseWeightedModuleDescriptor<T>
java.lang.Object
   ↳ com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
     ↳ com.atlassian.stash.scm.BaseWeightedModuleDescriptor<T>
       ↳ com.atlassian.stash.scm.ScmRequestCheckModuleDescriptor

Class Overview

Provides an ScmRequestCheck implementation used by the ScmRequestCheckService.

Usage example:

     <scm-request-check
              key="throttleCheck"
              class="com.atlassian.stash.scm.check.ThrottleCheck"
              weight="20" />
 

The (optional) weight attribute defines the order in which ScmRequestCheck implementations will be queried. Lower weights are queried earlier and the default weight is 10. If an earlier ScmRequestCheck vetoes an ScmRequest subsequent checks will not be called.

Summary

Constants
String XML_ELEMENT_NAME
[Expand]
Inherited Fields
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From interface com.atlassian.stash.util.Weighted
Protected Constructors
ScmRequestCheckModuleDescriptor(ModuleFactory moduleFactory)
Public Methods
ScmRequestCheck getModule()
Protected Methods
void provideValidationRules(ValidationPattern pattern)
[Expand]
Inherited Methods
From class com.atlassian.stash.scm.BaseWeightedModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From class java.lang.Object
From interface com.atlassian.plugin.ModuleDescriptor
From interface com.atlassian.plugin.Resourced
From interface com.atlassian.plugin.StateAware
From interface com.atlassian.stash.util.Weighted
From interface java.lang.Comparable

Constants

public static final String XML_ELEMENT_NAME

Constant Value: "scm-request-check"

Protected Constructors

protected ScmRequestCheckModuleDescriptor (ModuleFactory moduleFactory)

Public Methods

public ScmRequestCheck getModule ()

Protected Methods

protected void provideValidationRules (ValidationPattern pattern)