com.atlassian.jira.jql.permission
Class TimeTrackingPermissionChecker
java.lang.Object
com.atlassian.jira.jql.permission.TimeTrackingPermissionChecker
- All Implemented Interfaces:
- ClausePermissionChecker
public class TimeTrackingPermissionChecker
- extends Object
- implements ClausePermissionChecker
Used for the time tracking fields to check if time tracking is enabled and if the TimeTracking field is visible.
- Since:
- v4.0
Method Summary |
boolean |
hasPermissionToUseClause(com.atlassian.crowd.embedded.api.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 |
TimeTrackingPermissionChecker
public TimeTrackingPermissionChecker(FieldClausePermissionChecker.Factory fieldClausePermissionHandlerFactory,
ApplicationProperties applicationProperties)
hasPermissionToUseClause
public boolean hasPermissionToUseClause(com.atlassian.crowd.embedded.api.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-2012 Atlassian. All Rights Reserved.