Class GlobalShareTypeValidator

java.lang.Object
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
  • Constructor Details

  • Method Details

    • 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.