public class GroupShareTypeValidator extends Object implements ShareTypeValidator
GroupShareType.DELEGATED_ERROR_KEY, ERROR_KEY| Constructor and Description |
|---|
GroupShareTypeValidator(PermissionManager permissionManager,
GroupManager groupManager) |
| 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)
Checks if the passed SharePermission is valid for the associated ShareType.
|
public GroupShareTypeValidator(PermissionManager permissionManager, GroupManager groupManager)
public boolean checkSharePermission(JiraServiceContext ctx, SharePermission permission)
ShareTypeValidatorcheckSharePermission in interface ShareTypeValidatorctx - Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollectionpermission - the SharePermission to check.public 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.