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


public interface LdifLoadFilter

A filter interface for the LDIF loader.

Author:
Apache Directory Project

Method Summary
 boolean filter(File file, org.apache.directory.shared.ldap.model.name.Dn dn, org.apache.directory.shared.ldap.model.entry.Entry entry, org.apache.directory.server.core.api.CoreSession coreSession)
          Filters entries loaded from LDIF files by a LdifFileLoader.
 

Method Detail

filter

boolean filter(File file,
               org.apache.directory.shared.ldap.model.name.Dn dn,
               org.apache.directory.shared.ldap.model.entry.Entry entry,
               org.apache.directory.server.core.api.CoreSession coreSession)
               throws org.apache.directory.shared.ldap.model.exception.LdapException
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
coreSession - session 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:
org.apache.directory.shared.ldap.model.exception.LdapException


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.