@PublicSpi public abstract class AbstractProjectPermissionCondition extends AbstractWebCondition
permission
parameter.
Note that this class supports legacy permission aliases
as well as proper keys from ProjectPermissions
.
Custom permission keys are also supported.
Constructor and Description |
---|
AbstractProjectPermissionCondition() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(ApplicationUser user,
JiraHelper jiraHelper) |
protected abstract boolean |
shouldDisplay(ApplicationUser user,
JiraHelper jiraHelper,
ProjectPermissionKey permissionKey) |
boolean |
shouldDisplay(Map<String,Object> context) |
public final 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 final boolean shouldDisplay(Map<String,Object> context)
shouldDisplay
in interface com.atlassian.plugin.web.Condition
shouldDisplay
in class AbstractWebCondition
public final boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper)
shouldDisplay
in class AbstractWebCondition
protected abstract boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper, ProjectPermissionKey permissionKey)
Copyright © 2002-2019 Atlassian. All Rights Reserved.