com.atlassian.jira.sharing.type
Class GlobalShareTypeValidator

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

public class GlobalShareTypeValidator
extends Object
implements ShareTypeValidator

A GlobalShareTypeValidator representing a globally shared SharedEntity.

Since:
v3.13

Field Summary
 
Fields inherited from interface com.atlassian.jira.sharing.type.ShareTypeValidator
DELEGATED_ERROR_KEY, ERROR_KEY
 
Constructor Summary
GlobalShareTypeValidator(PermissionManager permissionManager)
           
 
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)
          The user must have the global permission to share filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalShareTypeValidator

public GlobalShareTypeValidator(PermissionManager permissionManager)
Method Detail

checkSharePermission

public boolean checkSharePermission(JiraServiceContext ctx,
                                    SharePermission permission)
The user must have the global permission to share filters.

Specified by:
checkSharePermission in interface ShareTypeValidator
Parameters:
ctx - Service context containing user, i18n bean and error collection.
permission - Permission must have type of GlobalShareType.TYPE
Returns:
true if user has Share Filter Global Permission and permission is of right type, else false.

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-2014 Atlassian. All Rights Reserved.