public class

GroupShareTypeValidator

extends Object
implements ShareTypeValidator
java.lang.Object
   ↳ com.atlassian.jira.sharing.type.GroupShareTypeValidator

Class Overview

A validator for the GroupShareType.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.sharing.type.ShareTypeValidator
Public Constructors
GroupShareTypeValidator(PermissionManager permissionManager, GroupManager groupManager)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.type.ShareTypeValidator

Public Constructors

public GroupShareTypeValidator (PermissionManager permissionManager, GroupManager groupManager)

Public Methods

public boolean checkSearchParameter (JiraServiceContext ctx, ShareTypeSearchParameter searchParameter)

Check to see if the passed SearchParameter is valid for the ShareType.

Parameters
ctx 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.

public boolean checkSharePermission (JiraServiceContext ctx, SharePermission permission)

Checks if the passed SharePermission is valid for the associated ShareType.

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