public class DefaultShareTypeValidatorUtils extends Object implements ShareTypeValidatorUtils
ShareTypeValidatorUtils.| Constructor and Description |
|---|
DefaultShareTypeValidatorUtils(ShareTypeFactory shareTypeFactory,
PermissionManager permissionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasValidSharePermissions(JiraServiceContext context,
SharedEntity entity)
Validates to see if a entity containing a Set of
SharePermission is valid. |
boolean |
isValidSearchParameter(JiraServiceContext context,
ShareTypeSearchParameter searchParameter)
Check to see if the passed SearchParameter is valid..
|
boolean |
isValidSharePermission(JiraServiceContext context,
SharedEntity entity)
Deprecated.
|
public DefaultShareTypeValidatorUtils(ShareTypeFactory shareTypeFactory, PermissionManager permissionManager)
@Deprecated public boolean isValidSharePermission(JiraServiceContext context, SharedEntity entity)
ShareTypeValidatorUtilsSharePermission is valid. E.g. contains only one Singleton Permission and
no others. I.e. Globally and Privately shared.isValidSharePermission in interface ShareTypeValidatorUtilscontext - Contains the user trying to store permissions, the i18nBean and ErrorCollectionentity - The entity the permissions are validating againstpublic boolean hasValidSharePermissions(JiraServiceContext context, SharedEntity entity)
ShareTypeValidatorUtilsSharePermission is valid. E.g. contains only one Singleton Permission and
no others. I.e. Globally and Privately shared.hasValidSharePermissions in interface ShareTypeValidatorUtilscontext - Contains the user trying to store permissions, the i18nBean and ErrorCollectionentity - The entity the permissions are validating againstpublic boolean isValidSearchParameter(JiraServiceContext context, ShareTypeSearchParameter searchParameter)
ShareTypeValidatorUtilsisValidSearchParameter in interface ShareTypeValidatorUtilscontext - Context containing the user that is to store the SharePermission, the i18n bean and an
ErrorCollectionsearchParameter - the parameter is check.Copyright © 2002-2022 Atlassian. All Rights Reserved.