With Confluence Version 8.0 the:
import com.atlassian.confluence.search.v2.searchfilter.SiteSearchPermissionsSearchFilter;
has been removed and the docs say:
com.atlassian.confluence.search.v2.searchfilter (use the equivalent class that extends SearchQuery in 8.0)
Which is now the right way to create a searchQuery / searchFilter?
Current (Deprecated) Code:
import com.atlassian.confluence.search.v2.query.BooleanQuery;
import com.atlassian.confluence.search.v2.searchfilter.SiteSearchPermissionsSearchFilter;
....
ContentSearch search = new ContentSearch(BooleanQuery.composeAndQuery(allQueries), RELEVANCE_SORT, SiteSearchPermissionsSearchFilter.getInstance(), 0, 1);
How can this be done with the Confluence 8.0 API?
Edit: We are developing a Plugin and the corresponding 8.0 classes from the docs SiteSearchPermissionsSearchFilter, SiteSearchPermissionsQuery are marked as Internal (not for plugin use)