public class ProjectShareQueryFactory extends Object implements ShareQueryFactory<ProjectShareTypeSearchParameter>
Constructor and Description |
---|
ProjectShareQueryFactory(ProjectManager projectManager,
ProjectRoleManager projectRoleManager,
RoleActorFactory roleActorFactory,
InternalProjectPermissionHelper projectPermissionHelper) |
ProjectShareQueryFactory(com.atlassian.jira.sharing.type.ProjectShareQueryFactory.Visibility visibility) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Field |
getField(SharedEntity entity,
SharePermission permission)
Get the Field we will later search for.
|
org.apache.lucene.search.Query |
getQuery(ShareTypeSearchParameter searchParameter)
Get the search query for all shares shares that match the passed parameter.
|
org.apache.lucene.search.Query |
getQuery(ShareTypeSearchParameter searchParameter,
ApplicationUser user)
Get the search query for the shares that can be seen by the passed user for the passed parameter.
|
org.apache.lucene.index.Term[] |
getTerms(ApplicationUser user)
Get the search terms for the shares that can be seen by the passed user.
|
public ProjectShareQueryFactory(ProjectManager projectManager, ProjectRoleManager projectRoleManager, RoleActorFactory roleActorFactory, InternalProjectPermissionHelper projectPermissionHelper)
public ProjectShareQueryFactory(com.atlassian.jira.sharing.type.ProjectShareQueryFactory.Visibility visibility)
public org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter searchParameter, ApplicationUser user)
ShareQueryFactory
getQuery
in interface ShareQueryFactory<ProjectShareTypeSearchParameter>
searchParameter
- the parameters for the search.user
- the user to perform the search on behalf of.public org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter searchParameter)
ShareQueryFactory
getQuery
in interface ShareQueryFactory<ProjectShareTypeSearchParameter>
searchParameter
- the parameters for the search.public org.apache.lucene.index.Term[] getTerms(ApplicationUser user)
ShareQueryFactory
getTerms
in interface ShareQueryFactory<ProjectShareTypeSearchParameter>
user
- the user to perform the search on behalf of.public org.apache.lucene.document.Field getField(SharedEntity entity, SharePermission permission)
ShareQueryFactory
getField
in interface ShareQueryFactory<ProjectShareTypeSearchParameter>
Copyright © 2002-2023 Atlassian. All Rights Reserved.