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.Conditioncom.atlassian.plugin.PluginParseExceptionpublic boolean shouldDisplay(Map<String,Object> context)
shouldDisplay in interface com.atlassian.plugin.web.Conditioncontext - The context where the "key" parameter will be looked up.Copyright © 2002-2022 Atlassian. All Rights Reserved.