public class LastResultStatusRuleType extends AbstractQuickFilterRuleType implements QuickFilterRuleType
moduleDescriptor, templateRenderer
Constructor and Description |
---|
LastResultStatusRuleType(TemplateRenderer templateRenderer,
com.atlassian.struts.TextProvider textProvider) |
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 |
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.
|
void |
populateContextForEdit(Map<String,Object> configuration,
Map<String,Object> context)
Populate edit HTML template's context.
|
ErrorCollection |
validate(Map<String,Object> configuration)
Validate configuration of a rule of this type.
|
getEditHtml, getKey, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEditHtml, getKey
@Inject public LastResultStatusRuleType(@NotNull TemplateRenderer templateRenderer, @NotNull com.atlassian.struts.TextProvider textProvider)
@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 testpublic void populateContextForEdit(@NotNull Map<String,Object> configuration, @NotNull Map<String,Object> context)
AbstractQuickFilterRuleType
AbstractQuickFilterRuleType.getEditHtml(Map)
.populateContextForEdit
in class AbstractQuickFilterRuleType
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 typeCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.