public class QuickFilterRuleTypeUnsafeCodeDecorator extends AbstractUnsafeCodeDecorator<QuickFilterRuleType> implements QuickFilterRuleType
QuickFilterRuleType
that wraps execution of each method with
BambooPluginUtils.callUnsafeCode(BambooPluginUtils.Callable)
.Constructor and Description |
---|
QuickFilterRuleTypeUnsafeCodeDecorator(@NotNull QuickFilterRuleType quickFilterRuleType)
Creates a new instance of the decorated rule type.
|
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.
|
@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.
|
@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.
|
@NotNull ErrorCollection |
validate(@NotNull Map<String,Object> configuration)
Validate configuration of a rule of this type.
|
executeUnsafeCode, executeUnsafeCode, executeUnsafeCode, executeUnsafeCode, getEntity
public QuickFilterRuleTypeUnsafeCodeDecorator(@NotNull @NotNull QuickFilterRuleType quickFilterRuleType)
quickFilterRuleType
- rule type to decorate@NotNull public @NotNull String getKey()
QuickFilterRuleType
getKey
in interface QuickFilterRuleType
@NotNull public @NotNull String getName()
QuickFilterRuleType
getName
in interface QuickFilterRuleType
getName
in interface DescriptionProvider
getName
in interface NameProvider
@Nullable public @Nullable String getDescription()
QuickFilterRuleType
getDescription
in interface QuickFilterRuleType
getDescription
in interface DescriptionProvider
@NotNull public @NotNull Set<String> getConfigurationKeys()
QuickFilterRuleType
getConfigurationKeys
in interface QuickFilterRuleType
public void addDefaults(@NotNull @NotNull Map<String,Object> configuration)
QuickFilterRuleType
addDefaults
in interface QuickFilterRuleType
configuration
- rule configuration; the values may only be strings or lists of strings@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull Map<String,Object> configuration)
QuickFilterRuleType
validate
in interface QuickFilterRuleType
configuration
- rule configuration; the values may only be strings or lists of stringspublic boolean matches(@NotNull @NotNull Map<String,Object> configuration, @NotNull @NotNull ImmutableTopLevelPlan plan)
QuickFilterRuleType
matches
in interface QuickFilterRuleType
configuration
- rule configuration; the values may only be strings or lists of stringsplan
- plan to test@Nullable public @Nullable String getEditHtml(@NotNull @NotNull Map<String,Object> configuration)
QuickFilterRuleType
getEditHtml
in interface QuickFilterRuleType
configuration
- configuration of this rule, might be empty (but still non null) on initial call; the values
may only be strings or lists of stringsCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.