public class QuickFilterRuleTypeUnsafeCodeDecorator extends AbstractUnsafeCodeDecorator<QuickFilterRuleType> implements QuickFilterRuleType
QuickFilterRuleType
that wraps execution of each method with
BambooPluginUtils.callUnsafeCode(BambooPluginUtils.Callable)
.Constructor and Description |
---|
QuickFilterRuleTypeUnsafeCodeDecorator(QuickFilterRuleType quickFilterRuleType)
Creates a new instance of the decorated rule type.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaults(Map<String,Object> configuration)
Add defaults to quick filter rule configuration.
|
Set<String> |
getConfigurationKeys()
Return all configuration keys which should be persisted for a quick filter rule of this type.
|
String |
getDescription()
Description of this rule type.
|
String |
getEditHtml(Map<String,Object> configuration)
Get rendered HTML snippet for editing configuration of this rule type.
|
String |
getKey()
Complete plugin module key of this rule type.
|
String |
getName()
Name of this rule type.
|
boolean |
matches(Map<String,Object> configuration,
ImmutableTopLevelPlan plan)
Checks whether the given plan matches a rule of this type with given configuration.
|
ErrorCollection |
validate(Map<String,Object> configuration)
Validate configuration of a rule of this type.
|
executeUnsafeCode, executeUnsafeCode, executeUnsafeCode, executeUnsafeCode, getEntity
public QuickFilterRuleTypeUnsafeCodeDecorator(@NotNull QuickFilterRuleType quickFilterRuleType)
quickFilterRuleType
- rule type to decorate@NotNull public String getKey()
QuickFilterRuleType
getKey
in interface QuickFilterRuleType
@NotNull public String getName()
QuickFilterRuleType
getName
in interface QuickFilterRuleType
getName
in interface DescriptionProvider
getName
in interface NameProvider
@Nullable public String getDescription()
QuickFilterRuleType
getDescription
in interface QuickFilterRuleType
getDescription
in interface DescriptionProvider
@NotNull public Set<String> getConfigurationKeys()
QuickFilterRuleType
getConfigurationKeys
in interface QuickFilterRuleType
public void addDefaults(@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 ErrorCollection validate(@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 Map<String,Object> configuration, @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 String getEditHtml(@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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.