public class SingleUser extends AbstractProjectsSecurityType
| Constructor and Description |
|---|
SingleUser(JiraAuthenticationContext jiraAuthenticationContext,
UserManager userManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
doValidation(String key,
Map<String,String> parameters,
JiraServiceContext jiraServiceContext) |
String |
getArgumentDisplay(String argument) |
String |
getDisplayName()
Returns display name - i18ned admin.permission.types.single.user
|
String |
getType()
Always returns
DESC. |
Set<ApplicationUser> |
getUsers(PermissionContext ctx,
String argument)
Returns a single element set that contains a User object found
by the given user name.
|
boolean |
hasPermission(Issue issue,
String parameter)
Determines if this permission type is satisfied for anonymous access.
|
boolean |
hasPermission(Issue issue,
String parameter,
ApplicationUser user,
boolean issueCreation)
Determines if this permission type is satisfied.
|
boolean |
hasPermission(Project project,
String argument)
Determines if this permission type is satisfied for anonymous access.
|
boolean |
hasPermission(Project project,
String parameter,
ApplicationUser user,
boolean issueCreation)
Determines if this permission type is satisfied.
|
getQuery, getQuery, getQueryisValidForPermissionpublic static final String DESC
public SingleUser(JiraAuthenticationContext jiraAuthenticationContext, UserManager userManager)
public String getDisplayName()
public String getArgumentDisplay(String argument)
getArgumentDisplay in interface SecurityTypegetArgumentDisplay in class AbstractSecurityTypepublic void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
public boolean hasPermission(Project project, String argument)
SchemeTypeproject - This is the project that the security is being checked forargument - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown)public boolean hasPermission(Issue issue, String parameter)
SchemeTypeissue - This is the issue that the security is being checked forparameter - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown)public boolean hasPermission(Project project, String parameter, ApplicationUser user, boolean issueCreation)
SchemeTypeproject - This is the project that the security is being checked forparameter - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown)user - The user for whom the permission is being checkedissueCreation - Whether this permission is being checked during issue creationpublic boolean hasPermission(Issue issue, String parameter, ApplicationUser user, boolean issueCreation)
SchemeTypeissue - This is the issue that the security is being checked forparameter - If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown)user - The user for whom the permission is being checkedissueCreation - Whether this permission is being checked during issue creationpublic Set<ApplicationUser> getUsers(PermissionContext ctx, String argument)
ctx - permission contextargument - user key stringCopyright © 2002-2017 Atlassian. All Rights Reserved.