public class UserCF extends AbstractIssueFieldSecurityType
Constructor and Description |
---|
UserCF(JiraAuthenticationContext jiraAuthenticationContext,
CustomFieldManager customFieldManager) |
Modifier and Type | Method and Description |
---|---|
void |
doValidation(String key,
Map<String,String> parameters,
JiraServiceContext jiraServiceContext) |
String |
getArgumentDisplay(String argument) |
List<Field> |
getDisplayFields() |
String |
getDisplayName() |
protected String |
getFieldName(String parameter)
Get the field name for this Issue Field-based Security Type given the parameter in the saved configuration.
|
String |
getType() |
Set<ApplicationUser> |
getUsers(PermissionContext ctx,
String customFieldId)
Get user specified by the Custom Field
|
protected boolean |
hasIssuePermission(ApplicationUser user,
boolean issueCreation,
Issue issue,
String parameter) |
protected boolean |
hasProjectPermission(ApplicationUser user,
boolean issueCreation,
Project project) |
getPermissionFieldContents, getPermissionFieldContents, getPermissionFieldContentsForProject, getPermissionFieldContentsForSecurityLevel, hasPermission, hasPermission, hasPermission, hasPermission, isTopLevelIssueSecurityPermission, isTopLevelProjectPermission
isValidForPermission
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUsers
public static final String TYPE
public UserCF(JiraAuthenticationContext jiraAuthenticationContext, CustomFieldManager customFieldManager)
public String getDisplayName()
public String getType()
public void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
protected String getFieldName(String parameter)
AbstractIssueFieldSecurityType
Some Field based permissions are based on hard-coded fields like assignee and reporter in which case the parameter is not used. Other types use the parameter to name the particular User or Group custom field that is used for the permission.
getFieldName
in class AbstractIssueFieldSecurityType
parameter
- the parameter as saved in the configprotected boolean hasProjectPermission(ApplicationUser user, boolean issueCreation, Project project)
hasProjectPermission
in class AbstractIssueFieldSecurityType
protected boolean hasIssuePermission(ApplicationUser user, boolean issueCreation, Issue issue, String parameter)
hasIssuePermission
in class AbstractIssueFieldSecurityType
public String getArgumentDisplay(String argument)
getArgumentDisplay
in interface SecurityType
getArgumentDisplay
in class AbstractSecurityType
public Set<ApplicationUser> getUsers(PermissionContext ctx, String customFieldId)
ctx
- permission contextcustomFieldId
- eg. 'customfield_10000'Copyright © 2002-2024 Atlassian. All Rights Reserved.