Class ProjectRestrictedResourcesProvider
java.lang.Object
com.atlassian.jira.security.restrictions.ProjectRestrictedResourcesProvider
- All Implemented Interfaces:
RestrictedResourcesEntityProvider
public class ProjectRestrictedResourcesProvider
extends Object
implements RestrictedResourcesEntityProvider
-
Constructor Summary
ConstructorsConstructorDescriptionProjectRestrictedResourcesProvider(JiraAuthenticationContext jiraAuthenticationContext, ProjectService projectService) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.crowd.embedded.api.Page<com.atlassian.crowd.embedded.spi.service.ResourceDescription> findResources(String searchText, com.atlassian.crowd.embedded.api.PageRequest pageRequest) Finds resource descriptions matching the search text.com.atlassian.crowd.embedded.spi.service.ResourceDescriptiongetResource(String resourceId) Returns description of the resource with the given id.booleanhandles(ResourceRestrictionEntityType resourceType) Is this provider responsible for handling the given resource type
-
Constructor Details
-
ProjectRestrictedResourcesProvider
public ProjectRestrictedResourcesProvider(JiraAuthenticationContext jiraAuthenticationContext, ProjectService projectService)
-
-
Method Details
-
handles
Description copied from interface:RestrictedResourcesEntityProviderIs this provider responsible for handling the given resource type- Specified by:
handlesin interfaceRestrictedResourcesEntityProvider- Parameters:
resourceType- Jira's resource type- Returns:
- true if this provider can handle the resource type, false otherwise
-
getResource
Description copied from interface:RestrictedResourcesEntityProviderReturns description of the resource with the given id.- Specified by:
getResourcein interfaceRestrictedResourcesEntityProvider- 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:RestrictedResourcesEntityProviderFinds resource descriptions matching the search text.- Specified by:
findResourcesin interfaceRestrictedResourcesEntityProvider- Parameters:
searchText- Text to search forpageRequest- Page request for pagination- Returns:
- Page of ResourceDescription matching the search text
-