public interface ShareTypeValidatorUtils
SharePermission
or ShareTypeSearchParameter
for an entity .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 ctx,
ShareTypeSearchParameter searchParameter)
Check to see if the passed SearchParameter is valid..
|
boolean |
isValidSharePermission(JiraServiceContext context,
SharedEntity entity)
Deprecated.
use hasValidSharePermissions instead
|
@Deprecated boolean isValidSharePermission(JiraServiceContext context, SharedEntity entity)
SharePermission
is valid. E.g. contains only one Singleton Permission and
no others. I.e. Globally and Privately shared.context
- Contains the user trying to store permissions, the i18nBean and ErrorCollection
entity
- The entity the permissions are validating againstboolean hasValidSharePermissions(JiraServiceContext context, SharedEntity entity)
SharePermission
is valid. E.g. contains only one Singleton Permission and
no others. I.e. Globally and Privately shared.context
- Contains the user trying to store permissions, the i18nBean and ErrorCollection
entity
- The entity the permissions are validating againstboolean isValidSearchParameter(JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)
ctx
- Context containing the user that is to store the SharePermission, the i18n bean and an
ErrorCollection
searchParameter
- the parameter is check.Copyright © 2002-2019 Atlassian. All Rights Reserved.