public class CanUserBrowseProjectCondition extends Object implements com.atlassian.plugin.web.Condition
Constructor and Description |
---|
CanUserBrowseProjectCondition(ProjectManager projectManager,
PermissionManager permissionManager,
JiraAuthenticationContext authContext) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(Map<String,Object> context)
Determines whether project with given key exists and the user has permissions to browse it.
|
public CanUserBrowseProjectCondition(ProjectManager projectManager, PermissionManager permissionManager, JiraAuthenticationContext authContext)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.web.Condition
com.atlassian.plugin.PluginParseException
public boolean shouldDisplay(Map<String,Object> context)
shouldDisplay
in interface com.atlassian.plugin.web.Condition
context
- The context where the "key" parameter will be looked up.Copyright © 2002-2023 Atlassian. All Rights Reserved.