public class ProjectSettingsRestrictionProcessorModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ProjectSettingsRestrictionProcessor>
ProjectSettingsRestrictionProcessor
implementations.
Processors are invoked with batches of repositories. There is no weighting for processors, and thus no guarantee of atomicity in the repositories being sent from one to the next. It is therefore strongly recommended that if exporting multiple processors for a settings restriction that there is no dependency for one processer to complete for the other to be successful.
The class
and key
attributes are required.
Usage example:
<project-settings-restriction-processor key="exampleModuleKey" class="com.example.bitbucket.internal.feature.ExampleProjectSettingsRestrictionProcessor"/>
ProjectSettingsRestriction
,
ProjectSettingsRestrictionProcessor
Modifier and Type | Field and Description |
---|---|
static String |
XML_ELEMENT_NAME |
Constructor and Description |
---|
ProjectSettingsRestrictionProcessorModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
disabled() |
void |
enabled() |
ProjectSettingsRestrictionProcessor |
getModule()
Retrieve the
module for this descriptor. |
protected void |
provideValidationRules(com.atlassian.plugin.util.validation.ValidationPattern pattern) |
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, init, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
public static final String XML_ELEMENT_NAME
public ProjectSettingsRestrictionProcessorModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ProjectSettingsRestrictionProcessor>
public void enabled()
enabled
in interface com.atlassian.plugin.StateAware
enabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ProjectSettingsRestrictionProcessor>
public ProjectSettingsRestrictionProcessor getModule()
module
for this descriptor.
The described module is cached for the lifecycle of its plugin. Implementations of
ProjectSettingsRestrictionProcessor
should be stateless and thread-safe as a single instance will be
returned to all consumers of the descriptor.
getModule
in interface com.atlassian.plugin.ModuleDescriptor<ProjectSettingsRestrictionProcessor>
getModule
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ProjectSettingsRestrictionProcessor>
protected void provideValidationRules(com.atlassian.plugin.util.validation.ValidationPattern pattern)
provideValidationRules
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<ProjectSettingsRestrictionProcessor>
Copyright © 2024 Atlassian. All rights reserved.