@PublicApi public class EntityPropertyEqualToCondition extends AbstractWebCondition
The condition performs an equals comparison on a property value of a primitive type with an expected value. For complex types the condition always evaluates to false.
Supported entities are project, issue, comment, issue type, user (public and private) and dashboard item.Required parameters: entity from [project, issue, comment, issuetype, userprivate, userpublic, dashboarditem], property key, value.
The given entity must available in the JiraHelper context params.
Constructor and Description |
---|
EntityPropertyEqualToCondition(CommentPropertyService commentPropertyService,
IssuePropertyService issuePropertyService,
IssueTypePropertyService issueTypePropertyService,
ProjectPropertyService projectPropertyService,
DashboardItemPropertyService dashboardItemPropertyService,
UserPropertyService userPropertyService) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(ApplicationUser user,
JiraHelper jiraHelper) |
shouldDisplay
public EntityPropertyEqualToCondition(CommentPropertyService commentPropertyService, IssuePropertyService issuePropertyService, IssueTypePropertyService issueTypePropertyService, ProjectPropertyService projectPropertyService, DashboardItemPropertyService dashboardItemPropertyService, UserPropertyService userPropertyService)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.web.Condition
init
in class AbstractWebCondition
com.atlassian.plugin.PluginParseException
public boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper)
shouldDisplay
in class AbstractWebCondition
Copyright © 2002-2016 Atlassian. All Rights Reserved.
View cookie preferences