public class GlobalShareTypeValidator extends Object implements ShareTypeValidator
SharedEntity
.DELEGATED_ERROR_KEY, ERROR_KEY
Constructor and Description |
---|
GlobalShareTypeValidator(PermissionManager permissionManager,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkSearchParameter(JiraServiceContext ctx,
ShareTypeSearchParameter searchParameter)
Check to see if the passed SearchParameter is valid for the ShareType.
|
boolean |
checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
The user must have the global permission to share filters.
|
public GlobalShareTypeValidator(PermissionManager permissionManager, ApplicationProperties applicationProperties)
public boolean checkSharePermission(JiraServiceContext ctx, SharePermission permission)
checkSharePermission
in interface ShareTypeValidator
ctx
- Service context containing user, i18n bean and error collection.permission
- Permission must have type of GlobalShareType.TYPE
public boolean checkSearchParameter(JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)
ShareTypeValidator
checkSearchParameter
in interface ShareTypeValidator
ctx
- Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollection
searchParameter
- the parameter is check.Copyright © 2002-2023 Atlassian. All Rights Reserved.