public class AuthenticatedUserShareQueryFactory extends Object implements ShareQueryFactory<GlobalShareTypeSearchParameter>
ShareQueryFactory for the AuthenticatedUser share type.| Constructor and Description |
|---|
AuthenticatedUserShareQueryFactory() |
| 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 parameter)
Get the search query for all shares shares that match the passed parameter.
|
org.apache.lucene.search.Query |
getQuery(ShareTypeSearchParameter parameter,
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 org.apache.lucene.document.Field getField(SharedEntity entity, SharePermission permission)
ShareQueryFactorygetField in interface ShareQueryFactory<GlobalShareTypeSearchParameter>public org.apache.lucene.index.Term[] getTerms(ApplicationUser user)
ShareQueryFactorygetTerms in interface ShareQueryFactory<GlobalShareTypeSearchParameter>user - the user to perform the search on behalf of.public org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter parameter, ApplicationUser user)
ShareQueryFactorygetQuery in interface ShareQueryFactory<GlobalShareTypeSearchParameter>parameter - the parameters for the search.user - the user to perform the search on behalf of.public org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter parameter)
ShareQueryFactorygetQuery in interface ShareQueryFactory<GlobalShareTypeSearchParameter>parameter - the parameters for the search.Copyright © 2002-2021 Atlassian. All Rights Reserved.