public interface SchemeType
Modifier and Type | Method and Description |
---|---|
void |
doValidation(String key,
Map<String,String> parameters,
JiraServiceContext jiraServiceContext) |
String |
getDisplayName() |
String |
getType() |
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 parameter)
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.
|
boolean |
isValidForPermission(ProjectPermissionKey permissionKey)
This method determines if this SchemeType is valid for the given permissionKey.
|
String getDisplayName()
String getType()
void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
boolean hasPermission(Project project, String parameter)
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
)boolean hasPermission(Issue issue, String parameter)
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
)boolean hasPermission(Project project, String parameter, ApplicationUser user, boolean issueCreation)
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 creationboolean hasPermission(Issue issue, String parameter, ApplicationUser user, boolean issueCreation)
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 creationboolean isValidForPermission(ProjectPermissionKey permissionKey)
The default behaviour is for SchemeTypes to be valid for all permission functions, but some scheme types may choose to override this behaviour. eg the CurrentReporterHasCreatePermission scheme is invalid to be added to the "Create Issue" function. Also see JRA-13315.
permissionKey
- key of the permission in questionCurrentReporterHasCreatePermission
Copyright © 2002-2015 Atlassian. All Rights Reserved.