Package com.atlassian.jira.sharing.type
Class ProjectShareQueryFactory
java.lang.Object
com.atlassian.jira.sharing.type.ProjectShareQueryFactory
- All Implemented Interfaces:
ShareQueryFactory<ProjectShareTypeSearchParameter>
public class ProjectShareQueryFactory
extends Object
implements ShareQueryFactory<ProjectShareTypeSearchParameter>
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionProjectShareQueryFactory(ProjectManager projectManager, ProjectRoleManager projectRoleManager, RoleActorFactory roleActorFactory, InternalProjectPermissionHelper projectPermissionHelper) ProjectShareQueryFactory(com.atlassian.jira.sharing.type.ProjectShareQueryFactory.Visibility visibility) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.document.FieldgetField(SharedEntity entity, SharePermission permission) Get the Field we will later search for.org.apache.lucene.search.QuerygetQuery(ShareTypeSearchParameter searchParameter) Get the search query for all shares shares that match the passed parameter.org.apache.lucene.search.QuerygetQuery(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.
-
Constructor Details
-
ProjectShareQueryFactory
public ProjectShareQueryFactory(ProjectManager projectManager, ProjectRoleManager projectRoleManager, RoleActorFactory roleActorFactory, InternalProjectPermissionHelper projectPermissionHelper)
-
-
Method Details
-
getTerms
Description copied from interface:ShareQueryFactoryGet the search terms for the shares that can be seen by the passed user.- Specified by:
getTermsin interfaceShareQueryFactory<ProjectShareTypeSearchParameter>- Parameters:
user- the user to perform the search on behalf of.- Returns:
- an array of Terms. It may be empty but never null.