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 QuickFilterRuleTypeModuleDescriptor
protected final TemplateRenderer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractQuickFilterRuleType
(@NotNull TemplateRenderer templateRenderer) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getEditHtml
(@NotNull Map<String, Object> configuration) Get rendered HTML snippet for editing configuration of this rule type.@NotNull String
getKey()
Complete plugin module key of this rule type.void
init
(@NotNull QuickFilterRuleTypeModuleDescriptor moduleDescriptor) Initialises the Plugin with the plugin module descriptorprotected abstract void
populateContextForEdit
(@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, wait
Methods 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:InitablePluginModule
Initialises the Plugin with the plugin module descriptor- Specified by:
init
in interfaceInitablePluginModule<QuickFilterRuleTypeModuleDescriptor>
- Parameters:
moduleDescriptor
- Plugin module descriptor
-
getKey
Description copied from interface:QuickFilterRuleType
Complete plugin module key of this rule type.- Specified by:
getKey
in 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:QuickFilterRuleType
Get rendered HTML snippet for editing configuration of this rule type. Return null if this rule doesn't require configuration by user.- Specified by:
getEditHtml
in 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
-