public class SuspensionStatusRuleType extends AbstractQuickFilterRuleType implements QuickFilterRuleType
moduleDescriptor, templateRenderer| Constructor and Description |
|---|
SuspensionStatusRuleType(@NotNull TemplateRenderer templateRenderer,
@NotNull com.atlassian.struts.TextProvider textProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaults(@NotNull Map<String,Object> configuration)
Add defaults to quick filter rule configuration.
|
@NotNull Set<String> |
getConfigurationKeys()
Return all configuration keys which should be persisted for a quick filter rule of this type.
|
@Nullable String |
getDescription()
Description of this rule type.
|
@NotNull String |
getName()
Name of this rule type.
|
boolean |
matches(@NotNull Map<String,Object> configuration,
@NotNull ImmutableTopLevelPlan plan)
Checks whether the given plan matches a rule of this type with given configuration.
|
void |
populateContextForEdit(@NotNull Map<String,Object> configuration,
@NotNull Map<String,Object> context)
Populate edit HTML template's context.
|
@NotNull ErrorCollection |
validate(@NotNull Map<String,Object> configuration)
Validate configuration of a rule of this type.
|
getEditHtml, getKey, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEditHtml, getKey@Inject
public SuspensionStatusRuleType(@NotNull
@NotNull TemplateRenderer templateRenderer,
@NotNull
@NotNull com.atlassian.struts.TextProvider textProvider)
@NotNull public @NotNull String getName()
QuickFilterRuleTypegetName in interface QuickFilterRuleTypegetName in interface DescriptionProvidergetName in interface NameProvider@Nullable public @Nullable String getDescription()
QuickFilterRuleTypegetDescription in interface QuickFilterRuleTypegetDescription in interface DescriptionProvider@NotNull public @NotNull Set<String> getConfigurationKeys()
QuickFilterRuleTypegetConfigurationKeys in interface QuickFilterRuleTypepublic void addDefaults(@NotNull
@NotNull Map<String,Object> configuration)
QuickFilterRuleTypeaddDefaults in interface QuickFilterRuleTypeconfiguration - rule configuration; the values may only be strings or lists of strings@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull Map<String,Object> configuration)
QuickFilterRuleTypevalidate in interface QuickFilterRuleTypeconfiguration - rule configuration; the values may only be strings or lists of stringspublic boolean matches(@NotNull
@NotNull Map<String,Object> configuration,
@NotNull
@NotNull ImmutableTopLevelPlan plan)
QuickFilterRuleTypematches in interface QuickFilterRuleTypeconfiguration - rule configuration; the values may only be strings or lists of stringsplan - plan to testpublic void populateContextForEdit(@NotNull
@NotNull Map<String,Object> configuration,
@NotNull
@NotNull Map<String,Object> context)
AbstractQuickFilterRuleTypeAbstractQuickFilterRuleType.getEditHtml(Map).populateContextForEdit in class AbstractQuickFilterRuleTypeconfiguration - rule configuration; the values may only be strings or lists of stringscontext - initial template's context, might be empty; values may be of any typeCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.