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 Details

  • Constructor Details

    • AbstractQuickFilterRuleType

      protected AbstractQuickFilterRuleType(@NotNull @NotNull TemplateRenderer templateRenderer)
  • Method Details

    • init

      public void init(@NotNull @NotNull QuickFilterRuleTypeModuleDescriptor moduleDescriptor)
      Description copied from interface: InitablePluginModule
      Initialises the Plugin with the plugin module descriptor
      Specified by:
      init in interface InitablePluginModule<QuickFilterRuleTypeModuleDescriptor>
      Parameters:
      moduleDescriptor - Plugin module descriptor
    • getKey

      @NotNull public @NotNull String getKey()
      Description copied from interface: QuickFilterRuleType
      Complete plugin module key of this rule type.
      Specified by:
      getKey in interface QuickFilterRuleType
    • 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 in getEditHtml(Map).
      Parameters:
      configuration - rule configuration; the values may only be strings or lists of strings
      context - initial template's context, might be empty; values may be of any type
    • getEditHtml

      @Nullable public @Nullable String getEditHtml(@NotNull @NotNull Map<String,Object> configuration)
      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 interface QuickFilterRuleType
      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