Interface PermissionQueryFactory
- All Superinterfaces:
PermissionQueryFactory
- All Known Implementing Classes:
DefaultPermissionQueryFactory
@Deprecated(since="10.4",
forRemoval=true)
public interface PermissionQueryFactory
extends PermissionQueryFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Factory for generating a permission query based on a specific permission.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptiondefault QuerycreateQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, Collection<Project> searchedProjects) Deprecated, for removal: This API element is subject to removal in a future version.Generate a permission query for a specific permission on given collection of projects.org.apache.lucene.search.QuerygetQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey) Deprecated.org.apache.lucene.search.QuerygetQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, Collection<Project> searchedProjects) Deprecated, for removal: This API element is subject to removal in a future version.Generate a permission query for a specific permission on given collection of projects.
-
Method Details
-
getQuery
org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey) Deprecated.UsegetQuery(ApplicationUser, ProjectPermissionKey, Collection). Since 7.10Generate a permission query for a specific permission.- Parameters:
searcher- the user who is doing the searchingpermissionKey- the specific permission- Returns:
- a permission query for that user
-
getQuery
org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects) Deprecated, for removal: This API element is subject to removal in a future version.Generate a permission query for a specific permission on given collection of projects.- Parameters:
searcher- the user who is doing the searchingpermissionKey- the specific permissionsearchedProjects- collection of projects- Returns:
- a permission query for that user and given collection of projects
-
createQuery
default Query createQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissionQueryFactoryGenerate a permission query for a specific permission on given collection of projects.- Specified by:
createQueryin interfacePermissionQueryFactory- Parameters:
searcher- the user who is doing the searchingpermissionKey- the specific permissionsearchedProjects- collection of projects- Returns:
- a permission query for that user and given collection of projects
-
PermissionQueryFactory