com.atlassian.confluence.search.v2.lucene.mapper
Class ContentPermissionsLuceneSearchFilterMapper

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.mapper.ContentPermissionsLuceneSearchFilterMapper
All Implemented Interfaces:
LuceneSearchFilterMapper<ContentPermissionsSearchFilter>

public class ContentPermissionsLuceneSearchFilterMapper
extends Object
implements LuceneSearchFilterMapper<ContentPermissionsSearchFilter>

Maps a ContentPermissionsSearchFilter into a lucene filter. This mapper is responsible setting up the credentials for ContentPermissionsFilter based off the current logged user (so a client cannot spoof credentials in the ContentPermissionsSearchFilter).


Constructor Summary
ContentPermissionsLuceneSearchFilterMapper()
           
 
Method Summary
 org.apache.lucene.search.Filter convertToLuceneSearchFilter(ContentPermissionsSearchFilter searchFilter)
          Convert a search filter into a lucene search filter.
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentPermissionsLuceneSearchFilterMapper

public ContentPermissionsLuceneSearchFilterMapper()
Method Detail

convertToLuceneSearchFilter

public org.apache.lucene.search.Filter convertToLuceneSearchFilter(ContentPermissionsSearchFilter searchFilter)
Description copied from interface: LuceneSearchFilterMapper
Convert a search filter into a lucene search filter.

Specified by:
convertToLuceneSearchFilter in interface LuceneSearchFilterMapper<ContentPermissionsSearchFilter>
Parameters:
searchFilter - the search filter to convert
Returns:
the lucene search filter corresponding to the search filter

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)


Copyright © 2003-2013 Atlassian. All Rights Reserved.