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

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.UserHasVisibleProjectsCondition
All Implemented Interfaces:
com.atlassian.plugin.web.Condition

public class UserHasVisibleProjectsCondition
extends AbstractJiraPermissionCondition

Checks if the user can see atleast one project with this AbstractJiraPermissionCondition.permission


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.webfragment.conditions.AbstractJiraPermissionCondition
permission, permissionManager
 
Constructor Summary
UserHasVisibleProjectsCondition(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

UserHasVisibleProjectsCondition

public UserHasVisibleProjectsCondition(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.