org.apache.directory.server.protocol.shared.store
Interface LdifLoadFilter

All Known Implementing Classes:
Krb5KdcEntryFilter

public interface LdifLoadFilter

A filter interface for the LDIF loader.

Version:
$Rev: 434432 $, $Date: 2006-08-24 18:52:26 +0200 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project

Method Summary
 boolean filter(java.io.File file, java.lang.String dn, javax.naming.directory.Attributes entry, javax.naming.directory.DirContext ctx)
          Filters entries loaded from LDIF files by a LdifFileLoader.
 

Method Detail

filter

public boolean filter(java.io.File file,
                      java.lang.String dn,
                      javax.naming.directory.Attributes entry,
                      javax.naming.directory.DirContext ctx)
               throws javax.naming.NamingException
Filters entries loaded from LDIF files by a LdifFileLoader.

Parameters:
file - the file being loaded
dn - the distinguished name of the entry being loaded
entry - the entry attributes within the LDIF file
ctx - context to be used for loading the entry into the DIT
Returns:
true if the entry will be created in the DIT, false if it is to be skipped
Throws:
javax.naming.NamingException