com.atlassian.jira.plugin.webfragment.conditions
Class CanAdministerProjectCondition

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class CanAdministerProjectCondition
extends Object
implements com.atlassian.plugin.web.Condition

Checks that the current user is a project admin for the passed in Project, Version or Component

Since:
v5.0

Constructor Summary
CanAdministerProjectCondition(PermissionManager permissionManager, JiraAuthenticationContext authContext, ProjectManager projectManager)
           
 
Method Summary
 void init(Map<String,String> params)
           
 boolean shouldDisplay(Map<String,Object> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CanAdministerProjectCondition

public CanAdministerProjectCondition(PermissionManager permissionManager,
                                     JiraAuthenticationContext authContext,
                                     ProjectManager projectManager)
Method Detail

init

public void init(Map<String,String> params)
Specified by:
init in interface com.atlassian.plugin.web.Condition

shouldDisplay

public boolean shouldDisplay(Map<String,Object> context)
Specified by:
shouldDisplay in interface com.atlassian.plugin.web.Condition


Copyright © 2002-2013 Atlassian. All Rights Reserved.