Class AbstractQuickFilterRuleType
java.lang.Object
com.atlassian.bamboo.quickfilter.rule.AbstractQuickFilterRuleType
- All Implemented Interfaces:
InitablePluginModule<QuickFilterRuleTypeModuleDescriptor>,QuickFilterRuleType,DescriptionProvider,NameProvider,BambooPluginModule
- Direct Known Subclasses:
HasLabelRuleType,InProjectRuleType,LastExecutionDateRuleType,LastResultStatusRuleType,NameMatcherRuleType,SuspensionStatusRuleType
public abstract class AbstractQuickFilterRuleType
extends Object
implements QuickFilterRuleType, InitablePluginModule<QuickFilterRuleTypeModuleDescriptor>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected QuickFilterRuleTypeModuleDescriptorprotected final TemplateRenderer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractQuickFilterRuleType(@NotNull TemplateRenderer templateRenderer) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetEditHtml(@NotNull Map<String, Object> configuration) Get rendered HTML snippet for editing configuration of this rule type.@NotNull StringgetKey()Complete plugin module key of this rule type.voidinit(@NotNull QuickFilterRuleTypeModuleDescriptor moduleDescriptor) Initialises the Plugin with the plugin module descriptorprotected abstract voidpopulateContextForEdit(@NotNull Map<String, Object> configuration, @NotNull Map<String, Object> context) Populate edit HTML template's context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.quickfilter.rule.QuickFilterRuleType
addDefaults, getConfigurationKeys, getDescription, getName, matches, validate
-
Field Details
-
templateRenderer
-
moduleDescriptor
-
-
Constructor Details
-
AbstractQuickFilterRuleType
-
-
Method Details
-
init
Description copied from interface:InitablePluginModuleInitialises the Plugin with the plugin module descriptor- Specified by:
initin interfaceInitablePluginModule<QuickFilterRuleTypeModuleDescriptor>- Parameters:
moduleDescriptor- Plugin module descriptor
-
getKey
Description copied from interface:QuickFilterRuleTypeComplete plugin module key of this rule type.- Specified by:
getKeyin interfaceQuickFilterRuleType
-
populateContextForEdit
protected abstract void populateContextForEdit(@NotNull @NotNull Map<String, Object> configuration, @NotNull @NotNull Map<String, Object> context) Populate edit HTML template's context. Will be used ingetEditHtml(Map).- Parameters:
configuration- rule configuration; the values may only be strings or lists of stringscontext- initial template's context, might be empty; values may be of any type
-
getEditHtml
Description copied from interface:QuickFilterRuleTypeGet rendered HTML snippet for editing configuration of this rule type. Return null if this rule doesn't require configuration by user.- Specified by:
getEditHtmlin interfaceQuickFilterRuleType- Parameters:
configuration- configuration of this rule, might be empty (but still non null) on initial call; the values may only be strings or lists of strings
-