@NonInjectableComponent public class CustomFieldClausePermissionChecker extends Object implements ClausePermissionChecker
Modifier and Type | Class and Description |
---|---|
static class |
CustomFieldClausePermissionChecker.DefaultFactory
This is a factory so that we don't have a circular dependency on the Field manager.
|
static interface |
CustomFieldClausePermissionChecker.Factory |
Constructor and Description |
---|
CustomFieldClausePermissionChecker(CustomField field,
FieldManager fieldManager,
FieldConfigSchemeClauseContextUtil clauseContextUtil) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPermissionToUseClause(com.atlassian.crowd.embedded.api.User user)
Checks to see that the provided user is able to use the clause.
|
boolean |
hasPermissionToUseClause(com.atlassian.crowd.embedded.api.User user,
Set<FieldLayout> fieldLayouts)
Checks to see that the provided user is able to use the clause.
|
public CustomFieldClausePermissionChecker(CustomField field, FieldManager fieldManager, FieldConfigSchemeClauseContextUtil clauseContextUtil)
public boolean hasPermissionToUseClause(com.atlassian.crowd.embedded.api.User user)
ClausePermissionChecker
hasPermissionToUseClause
in interface ClausePermissionChecker
user
- to check permissions against.public boolean hasPermissionToUseClause(com.atlassian.crowd.embedded.api.User user, Set<FieldLayout> fieldLayouts)
ClausePermissionChecker
hasPermissionToUseClause
in interface ClausePermissionChecker
user
- to check permissions against.fieldLayouts
- The field Layouts available to the given user (value of FieldManager.getVisibleFieldLayouts(User)
.Copyright © 2002-2015 Atlassian. All Rights Reserved.