com.atlassian.jira.sharing.type
Class GroupShareTypeValidator

java.lang.Object
  extended by com.atlassian.jira.sharing.type.GroupShareTypeValidator
All Implemented Interfaces:
ShareTypeValidator

public class GroupShareTypeValidator
extends Object
implements ShareTypeValidator

A validator for the GroupShareType.

Since:
v3.13

Field Summary
 
Fields inherited from interface com.atlassian.jira.sharing.type.ShareTypeValidator
ERROR_KEY
 
Constructor Summary
GroupShareTypeValidator(PermissionManager permissionManager, UserManager userManager)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupShareTypeValidator

public GroupShareTypeValidator(PermissionManager permissionManager,
                               UserManager userManager)
Method Detail

checkSharePermission

public boolean checkSharePermission(JiraServiceContext ctx,
                                    SharePermission permission)
Description copied from interface: ShareTypeValidator
Checks if the passed SharePermission is valid for the associated ShareType.

Specified by:
checkSharePermission in interface ShareTypeValidator
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.

checkSearchParameter

public boolean checkSearchParameter(JiraServiceContext ctx,
                                    ShareTypeSearchParameter searchParameter)
Description copied from interface: ShareTypeValidator
Check to see if the passed SearchParameter is valid for the ShareType.

Specified by:
checkSearchParameter in interface ShareTypeValidator
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.


Copyright © 2002-2008 Atlassian. All Rights Reserved.