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

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

public class HasProjectPermissionCondition
extends AbstractJiraPermissionCondition

Checks if a project is selected (in JiraHelper) and if the user has the AbstractJiraPermissionCondition.permission for that project


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraPermissionCondition
permission, permissionManager
 
Constructor Summary
HasProjectPermissionCondition(PermissionManager permissionManager)
           
 
Method Summary
 boolean shouldDisplay(com.opensymphony.user.User user, JiraHelper jiraHelper)
           
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraPermissionCondition
init
 
Methods inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraCondition
shouldDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasProjectPermissionCondition

public HasProjectPermissionCondition(PermissionManager permissionManager)
Method Detail

shouldDisplay

public boolean shouldDisplay(com.opensymphony.user.User user,
                             JiraHelper jiraHelper)
Specified by:
shouldDisplay in class AbstractJiraPermissionCondition


Copyright © 2002-2010 Atlassian. All Rights Reserved.