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: 493916 $, $Date: 2007-01-08 03:44:33 +0100 (Mon, 08 Jan 2007) $
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

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


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.