public interface ShareTypeValidator
ShareType. Validation is checking that its associated
SharePermission or ShareTypeSearchParameter is valid.| Modifier and Type | Field and Description |
|---|---|
static String |
DELEGATED_ERROR_KEY |
static String |
ERROR_KEY
Key used for any error messages.
|
| 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.
|
static final String ERROR_KEY
static final String DELEGATED_ERROR_KEY
boolean checkSharePermission(JiraServiceContext ctx, SharePermission permission)
ctx - Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollectionpermission - the SharePermission to check.boolean checkSearchParameter(JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)
ctx - Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollectionsearchParameter - the parameter is check.Copyright © 2002-2021 Atlassian. All Rights Reserved.