public class

DefaultShareTypeValidatorUtils

extends Object
implements ShareTypeValidatorUtils
java.lang.Object
   ↳ com.atlassian.jira.sharing.DefaultShareTypeValidatorUtils

Class Overview

Default implementation of ShareTypeValidatorUtils.

Summary

Public Constructors
DefaultShareTypeValidatorUtils(ShareTypeFactory shareTypeFactory, PermissionManager permissionManager)
Public Methods
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..
@Deprecated boolean isValidSharePermission(JiraServiceContext context, SharedEntity entity)
Validates to see if a given Set of SharePermission is valid.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.ShareTypeValidatorUtils

Public Constructors

public DefaultShareTypeValidatorUtils (ShareTypeFactory shareTypeFactory, PermissionManager permissionManager)

Public Methods

public boolean hasValidSharePermissions (JiraServiceContext context, SharedEntity entity)

Validates to see if a entity containing a Set of SharePermission is valid. E.g. contains only one Singleton Permission and no others. I.e. Globally and Privately shared.

Parameters
context Contains the user trying to store permissions, the i18nBean and ErrorCollection
entity The entity the permissions are validating against
Returns
  • true if the set is valid, otherwise false.

public boolean isValidSearchParameter (JiraServiceContext context, ShareTypeSearchParameter searchParameter)

Check to see if the passed SearchParameter is valid..

Parameters
context Context containing the user that is to store the SharePermission, the i18n bean and an ErrorCollection
searchParameter the parameter is check.
Returns
  • true if the parameter is valid or false otherwise.

@Deprecated public boolean isValidSharePermission (JiraServiceContext context, SharedEntity entity)

Validates to see if a given Set of SharePermission is valid. E.g. contains only one Singleton Permission and no others. I.e. Globally and Privately shared.

Parameters
context Contains the user trying to store permissions, the i18nBean and ErrorCollection
entity The entity the permissions are validating against
Returns
  • true if the set is valid, otherwise false.