com.arsdigita.search.lucene
Class PartyFilter

java.lang.Object
  extended byorg.apache.lucene.search.Filter
      extended bycom.arsdigita.search.lucene.PartyFilter

public class PartyFilter
extends org.apache.lucene.search.Filter

PartyFilter that filters the query based on the passed in party

Version:
$Id: //core-platform/dev/src/com/arsdigita/search/lucene/PartyFilter.java#3 $
Author:
Randy Graebner (randyg@alum.mit.edu)

Constructor Summary
PartyFilter(BigDecimal partyID, String partyType)
          This creates a PartyFilter based on the party with the passed in ID
PartyFilter(Party party, String partyType)
          Creates a new PartyFilter
 
Method Summary
 BitSet bits(org.apache.lucene.index.IndexReader reader)
          Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartyFilter

public PartyFilter(Party party,
                   String partyType)
Creates a new PartyFilter

Parameters:
party - The party to use for the filter
partyType - The type of the party to restrict. Examples would be Document.CREATION_USER and Document.LAST_MODIFIED_USER

PartyFilter

public PartyFilter(BigDecimal partyID,
                   String partyType)
This creates a PartyFilter based on the party with the passed in ID

Method Detail

bits

public final BitSet bits(org.apache.lucene.index.IndexReader reader)
                  throws IOException
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.

Throws:
IOException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC