com.atlassian.jira.jql.permission
Class NoOpClausePermissionChecker

java.lang.Object
  extended by com.atlassian.jira.jql.permission.NoOpClausePermissionChecker
All Implemented Interfaces:
ClausePermissionChecker

public final class NoOpClausePermissionChecker
extends java.lang.Object
implements ClausePermissionChecker

A No-Op clause permission checker that always allows you to use a clause.

Since:
v4.0

Field Summary
static NoOpClausePermissionChecker NOOP_CLAUSE_PERMISSION_CHECKER
           
 
Method Summary
 boolean hasPermissionToUseClause(com.opensymphony.user.User user)
          Checks to see that the provided user is able to use the clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOOP_CLAUSE_PERMISSION_CHECKER

public static final NoOpClausePermissionChecker NOOP_CLAUSE_PERMISSION_CHECKER
Method Detail

hasPermissionToUseClause

public boolean hasPermissionToUseClause(com.opensymphony.user.User user)
Description copied from interface: ClausePermissionChecker
Checks to see that the provided user is able to use the clause. This may be as simple as determining if the user has permission to see the field that the clause represents.

Specified by:
hasPermissionToUseClause in interface ClausePermissionChecker
Parameters:
user - to check permissions against.
Returns:
true if the user can use this clause, false otherwise.


Copyright © 2002-2011 Atlassian. All Rights Reserved.