public class UserShareTypeValidator extends Object implements ShareTypeValidator
DELEGATED_ERROR_KEY, ERROR_KEY
Constructor and Description |
---|
UserShareTypeValidator(PermissionManager permissionManager,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkSearchParameter(JiraServiceContext ctx,
ShareTypeSearchParameter searchParameter)
Checks if user key passed in search parameter is an existing user.
|
boolean |
checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
Checks if current user has proper permissions and user to be shared with exists
|
public UserShareTypeValidator(PermissionManager permissionManager, UserManager userManager)
public boolean checkSearchParameter(JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)
checkSearchParameter
in interface ShareTypeValidator
ctx
- The service context that contains the user trying to store permissions, the i18n bean and the error collectionsearchParameter
- the parameter to check, must contain user keypublic boolean checkSharePermission(JiraServiceContext ctx, SharePermission permission)
checkSharePermission
in interface ShareTypeValidator
ctx
- The service context that contains the user trying to store permissions, the i18n bean and the error collectionpermission
- the SharePermission to check, must contain first parameterCopyright © 2002-2022 Atlassian. All Rights Reserved.