public class GroupShareTypeValidator extends Object implements ShareTypeValidator
GroupShareType
.DELEGATED_ERROR_KEY, ERROR_KEY
Constructor and Description |
---|
GroupShareTypeValidator(GlobalPermissionManager globalPermissionManager,
GroupManager groupManager,
FeatureManager featureManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
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(GlobalPermissionManager globalPermissionManager, GroupManager groupManager, FeatureManager featureManager, com.atlassian.event.api.EventPublisher eventPublisher)
public boolean checkSharePermission(JiraServiceContext ctx, SharePermission permission)
ShareTypeValidator
checkSharePermission
in interface ShareTypeValidator
ctx
- Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollection
permission
- the SharePermission to check.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-2022 Atlassian. All Rights Reserved.