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 ShareTypeValidatorctx - Service context containing user, i18n bean and error collection.permission - Permission must have type of GlobalShareType.TYPEpublic boolean checkSearchParameter(JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)
ShareTypeValidatorcheckSearchParameter in interface ShareTypeValidatorctx - Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollectionsearchParameter - the parameter is check.Copyright © 2002-2017 Atlassian. All Rights Reserved.