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.
|
getPermissionFieldContents, getPermissionFieldContents, getPermissionFieldContents, isTopLevelIssueSecurityPermission, isTopLevelProjectPermission
isValidForPermission
public static final String DESC
public SingleUser(JiraAuthenticationContext jiraAuthenticationContext, UserManager userManager)
public String getDisplayName()
public String getArgumentDisplay(String argument)
getArgumentDisplay
in interface SecurityType
getArgumentDisplay
in class AbstractSecurityType
public void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
public boolean hasPermission(Project project, String argument)
SchemeType
project
- 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)
SchemeType
issue
- 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)
SchemeType
project
- 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)
SchemeType
issue
- 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-2023 Atlassian. All Rights Reserved.