Class ProjectRestrictedResourcesProvider

java.lang.Object
com.atlassian.jira.security.restrictions.ProjectRestrictedResourcesProvider
All Implemented Interfaces:
RestrictedResourcesEntityProvider

public class ProjectRestrictedResourcesProvider extends Object implements RestrictedResourcesEntityProvider
  • Constructor Details

  • Method Details

    • handles

      public boolean handles(ResourceRestrictionEntityType resourceType)
      Description copied from interface: RestrictedResourcesEntityProvider
      Is this provider responsible for handling the given resource type
      Specified by:
      handles in interface RestrictedResourcesEntityProvider
      Parameters:
      resourceType - Jira's resource type
      Returns:
      true if this provider can handle the resource type, false otherwise
    • getResource

      public com.atlassian.crowd.embedded.spi.service.ResourceDescription getResource(String resourceId)
      Description copied from interface: RestrictedResourcesEntityProvider
      Returns description of the resource with the given id.
      Specified by:
      getResource in interface RestrictedResourcesEntityProvider
      Parameters:
      resourceId - Resource id
      Returns:
      ResourceDescription for the given resource id, or null if no such resource exists
    • findResources

      public com.atlassian.crowd.embedded.api.Page<com.atlassian.crowd.embedded.spi.service.ResourceDescription> findResources(String searchText, com.atlassian.crowd.embedded.api.PageRequest pageRequest)
      Description copied from interface: RestrictedResourcesEntityProvider
      Finds resource descriptions matching the search text.
      Specified by:
      findResources in interface RestrictedResourcesEntityProvider
      Parameters:
      searchText - Text to search for
      pageRequest - Page request for pagination
      Returns:
      Page of ResourceDescription matching the search text