org.opends.server.api
Class Backend

java.lang.Object
  extended by org.opends.server.api.Backend
Direct Known Subclasses:
BackendImpl, BackupBackend, ConfigHandler, LDIFBackend, MemoryBackend, MonitorBackend, ReplicationBackend, RootDSEBackend, SchemaBackend, TaskBackend, TrustStoreBackend

@PublicAPI(stability=VOLATILE,
           mayInstantiate=false,
           mayExtend=true,
           mayInvoke=false)
public abstract class Backend
extends java.lang.Object

This class defines the set of methods and structures that must be implemented for a Directory Server backend.


Constructor Summary
protected Backend()
          Creates a new backend with the provided information.
 
Method Summary
abstract  void addEntry(Entry entry, AddOperation addOperation)
          Adds the provided entry to this backend.
 void addSubordinateBackend(Backend subordinateBackend)
          Adds the provided backend to the set of subordinate backends for this backend.
abstract  void configureBackend(Configuration cfg)
          Configure this backend based on the information in the provided configuration.
abstract  void createBackup(BackupConfig backupConfig)
          Creates a backup of the contents of this backend in a form that may be restored at a later date if necessary.
abstract  void deleteEntry(DN entryDN, DeleteOperation deleteOperation)
          Removes the specified entry from this backend.
 boolean entryExists(DN entryDN)
          Indicates whether an entry with the specified DN exists in the backend.
abstract  void exportLDIF(LDIFExportConfig exportConfig)
          Exports the contents of this backend to LDIF.
abstract  void finalizeBackend()
          Performs any necessary work to finalize this backend, including closing any underlying databases or connections and deregistering any suffixes that it manages with the Directory Server.
 java.lang.String getBackendID()
          Retrieves the unique identifier for this backend.
 BackendMonitor getBackendMonitor()
          Retrieves the backend monitor that is associated with this backend.
abstract  DN[] getBaseDNs()
          Retrieves the set of base-level DNs that may be used within this backend.
abstract  Entry getEntry(DN entryDN)
          Retrieves the requested entry from this backend.
abstract  long getEntryCount()
          Retrieves the total number of entries contained in this backend, if that information is available.
 Backend getParentBackend()
          Retrieves the parent backend for this backend.
 Backend[] getSubordinateBackends()
          Retrieves the set of subordinate backends for this backend.
abstract  java.util.Set<java.lang.String> getSupportedControls()
          Retrieves the OIDs of the controls that may be supported by this backend.
abstract  java.util.Set<java.lang.String> getSupportedFeatures()
          Retrieves the OIDs of the features that may be supported by this backend.
 WritabilityMode getWritabilityMode()
          Retrieves the writability mode for this backend.
 boolean handlesEntry(DN entryDN)
          Indicates whether this backend should be used to handle operations for the provided entry.
static boolean handlesEntry(DN entryDN, java.util.List<DN> baseDNs, java.util.List<DN> excludeDNs)
          Indicates whether a backend should be used to handle operations for the provided entry given the set of base DNs and exclude DNs.
abstract  ConditionResult hasSubordinates(DN entryDN)
          Indicates whether the requested entry has any subordinates.
 boolean hasSubSuffix(DN subSuffixDN)
          Indicates whether this backend has a subordinate backend registered with the provided base DN.
abstract  LDIFImportResult importLDIF(LDIFImportConfig importConfig)
          Imports information from an LDIF file into this backend.
abstract  void initializeBackend()
          Initializes this backend based on the information provided when the backend was configured.
 boolean isConfigurationAcceptable(Configuration configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the provided configuration is acceptable for this backend.
abstract  boolean isIndexed(AttributeType attributeType, IndexType indexType)
          Indicates whether search operations which target the specified attribute in the indicated manner would be considered indexed in this backend.
 boolean isIndexed(AttributeType attributeType, MatchingRule matchingRule)
          Indicates whether extensible match search operations that target the specified attribute with the given matching rule should be considered indexed in this backend.
 boolean isIndexed(SearchFilter filter)
          Indicates whether a subtree search using the provided filter would be indexed in this backend.
abstract  boolean isLocal()
          Indicates whether the data associated with this backend may be considered local (i.e., in a repository managed by the Directory Server) rather than remote (i.e., in an external repository accessed by the Directory Server but managed through some other means).
 boolean isPrivateBackend()
          Indicates whether this backend holds private data or user data.
abstract  long numSubordinates(DN entryDN, boolean subtree)
          Retrieves the number of subordinates for the requested entry.
abstract  void preloadEntryCache()
          Attempts to pre-load all the entries stored within this backend into the entry cache.
abstract  void removeBackup(BackupDirectory backupDirectory, java.lang.String backupID)
          Removes the specified backup if it is possible to do so.
 void removeSubordinateBackend(Backend subordinateBackend)
          Removes the provided backend from the set of subordinate backends for this backend.
 void removeSubSuffix(DN subSuffixDN, DN parentDN)
          Removes the backend associated with the specified sub-suffix if it is registered.
abstract  void renameEntry(DN currentDN, Entry entry, ModifyDNOperation modifyDNOperation)
          Moves and/or renames the provided entry in this backend, altering any subordinate entries as necessary.
abstract  void replaceEntry(Entry entry, ModifyOperation modifyOperation)
          Replaces the specified entry with the provided entry in this backend.
abstract  void restoreBackup(RestoreConfig restoreConfig)
          Restores a backup of the contents of this backend.
abstract  void search(SearchOperation searchOperation)
          Processes the specified search in this backend.
 void setBackendID(java.lang.String backendID)
          Specifies the unique identifier for this backend.
 void setBackendMonitor(BackendMonitor backendMonitor)
          Sets the backend monitor for this backend.
 void setParentBackend(Backend parentBackend)
          Specifies the parent backend for this backend.
 void setPrivateBackend(boolean isPrivateBackend)
          Specifies whether this backend holds private data or user data.
 void setSubordinateBackends(Backend[] subordinateBackends)
          Specifies the set of subordinate backends for this backend.
 void setWritabilityMode(WritabilityMode writabilityMode)
          Specifies the writability mode for this backend.
abstract  boolean supportsBackup()
          Indicates whether this backend provides a backup mechanism of any kind.
abstract  boolean supportsBackup(BackupConfig backupConfig, java.lang.StringBuilder unsupportedReason)
          Indicates whether this backend provides a mechanism to perform a backup of its contents in a form that can be restored later, based on the provided configuration.
 boolean supportsControl(java.lang.String controlOID)
          Indicates whether this backend supports the specified control.
 boolean supportsFeature(java.lang.String featureOID)
          Indicates whether this backend supports the specified feature.
abstract  boolean supportsLDIFExport()
          Indicates whether this backend provides a mechanism to export the data it contains to an LDIF file.
abstract  boolean supportsLDIFImport()
          Indicates whether this backend provides a mechanism to import its data from an LDIF file.
abstract  boolean supportsRestore()
          Indicates whether this backend provides a mechanism to restore a backup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Backend

protected Backend()
Creates a new backend with the provided information. All backend implementations must implement a default constructor that use super to invoke this constructor.

Method Detail

configureBackend

public abstract void configureBackend(Configuration cfg)
                               throws ConfigException
Configure this backend based on the information in the provided configuration.

Parameters:
cfg - The configuration of this backend.
Throws:
ConfigException - If there is an error in the configuration.

isConfigurationAcceptable

public boolean isConfigurationAcceptable(Configuration configuration,
                                         java.util.List<Message> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this backend. It should be possible to call this method on an uninitialized backend instance in order to determine whether the backend would be able to use the provided configuration.

Note that implementations which use a subclass of the provided configuration class will likely need to cast the configuration to the appropriate subclass type.

Parameters:
configuration - The backend configuration for which to make the determination.
unacceptableReasons - A list that may be used to hold the reasons that the provided configuration is not acceptable.
Returns:
true if the provided configuration is acceptable for this backend, or false if not.

initializeBackend

public abstract void initializeBackend()
                                throws ConfigException,
                                       InitializationException
Initializes this backend based on the information provided when the backend was configured.

Throws:
ConfigException - If an unrecoverable problem arises in the process of performing the initialization.
InitializationException - If a problem occurs during initialization that is not related to the server configuration.
See Also:
configureBackend(org.opends.server.admin.Configuration)

finalizeBackend

public abstract void finalizeBackend()
Performs any necessary work to finalize this backend, including closing any underlying databases or connections and deregistering any suffixes that it manages with the Directory Server. This may be called during the Directory Server shutdown process or if a backend is disabled with the server online. It must not return until the backend is closed.

This method may not throw any exceptions. If any problems are encountered, then they may be logged but the closure should progress as completely as possible.


getBaseDNs

public abstract DN[] getBaseDNs()
Retrieves the set of base-level DNs that may be used within this backend.

Returns:
The set of base-level DNs that may be used within this backend.

preloadEntryCache

public abstract void preloadEntryCache()
                                throws java.lang.UnsupportedOperationException
Attempts to pre-load all the entries stored within this backend into the entry cache. Note that the caller must ensure that the backend stays in read-only state until this method returns as no entry locking is performed during this operation. Also note that any backend implementing this method should implement pre- load progress reporting and error handling specific to its own implementation.

Throws:
java.lang.UnsupportedOperationException - if backend does not support this operation.

isLocal

public abstract boolean isLocal()
Indicates whether the data associated with this backend may be considered local (i.e., in a repository managed by the Directory Server) rather than remote (i.e., in an external repository accessed by the Directory Server but managed through some other means).

Returns:
true if the data associated with this backend may be considered local, or false if it is remote.

isIndexed

public abstract boolean isIndexed(AttributeType attributeType,
                                  IndexType indexType)
Indicates whether search operations which target the specified attribute in the indicated manner would be considered indexed in this backend. The operation should be considered indexed only if the specified operation can be completed efficiently within the backend.

Note that this method should return a general result that covers all values of the specified attribute. If a the specified attribute is indexed in the indicated manner but some particular values may still be treated as unindexed (e.g., if the number of entries with that attribute value exceeds some threshold), then this method should still return true for the specified attribute and index type.

Parameters:
attributeType - The attribute type for which to make the determination.
indexType - The index type for which to make the determination.
Returns:
true if search operations targeting the specified attribute in the indicated manner should be considered indexed, or false if not.

isIndexed

public boolean isIndexed(AttributeType attributeType,
                         MatchingRule matchingRule)
Indicates whether extensible match search operations that target the specified attribute with the given matching rule should be considered indexed in this backend.

Parameters:
attributeType - The attribute type for which to make the determination.
matchingRule - The matching rule for which to make the determination.
Returns:
true if extensible match search operations targeting the specified attribute with the given matching rule should be considered indexed, or false if not.

isIndexed

public boolean isIndexed(SearchFilter filter)
Indicates whether a subtree search using the provided filter would be indexed in this backend. This default implementation uses a rough set of logic that makes a best-effort determination. Subclasses that provide a more complete indexing mechanism may wish to override this method and provide a more accurate result.

Parameters:
filter - The search filter for which to make the determination.
Returns:
true if it is believed that the provided filter would be indexed in this backend, or false if not.

getEntry

public abstract Entry getEntry(DN entryDN)
                        throws DirectoryException
Retrieves the requested entry from this backend. Note that the caller must hold a read or write lock on the specified DN.

Parameters:
entryDN - The distinguished name of the entry to retrieve.
Returns:
The requested entry, or null if the entry does not exist.
Throws:
DirectoryException - If a problem occurs while trying to retrieve the entry.

hasSubordinates

public abstract ConditionResult hasSubordinates(DN entryDN)
                                         throws DirectoryException
Indicates whether the requested entry has any subordinates.

Parameters:
entryDN - The distinguished name of the entry.
Returns:
ConditionResult.TRUE if the entry has one or more subordinates or ConditionResult.FALSE otherwise or ConditionResult.UNDEFINED if it can not be determined.
Throws:
DirectoryException - If a problem occurs while trying to retrieve the entry.

numSubordinates

public abstract long numSubordinates(DN entryDN,
                                     boolean subtree)
                              throws DirectoryException
Retrieves the number of subordinates for the requested entry.

Parameters:
entryDN - The distinguished name of the entry.
subtree - true to include all entries from the requested entry to the lowest level in the tree or false to only include the entries immediately below the requested entry.
Returns:
The number of subordinate entries for the requested entry or -1 if it can not be determined.
Throws:
DirectoryException - If a problem occurs while trying to retrieve the entry.

entryExists

public boolean entryExists(DN entryDN)
                    throws DirectoryException
Indicates whether an entry with the specified DN exists in the backend. The default implementation obtains a read lock and calls getEntry, but backend implementations may override this with a more efficient version that does not require a lock. The caller is not required to hold any locks on the specified DN.

Parameters:
entryDN - The DN of the entry for which to determine existence.
Returns:
true if the specified entry exists in this backend, or false if it does not.
Throws:
DirectoryException - If a problem occurs while trying to make the determination.

addEntry

public abstract void addEntry(Entry entry,
                              AddOperation addOperation)
                       throws DirectoryException,
                              CanceledOperationException
Adds the provided entry to this backend. This method must ensure that the entry is appropriate for the backend and that no entry already exists with the same DN. The caller must hold a write lock on the DN of the provided entry.

Parameters:
entry - The entry to add to this backend.
addOperation - The add operation with which the new entry is associated. This may be null for adds performed internally.
Throws:
DirectoryException - If a problem occurs while trying to add the entry.
CanceledOperationException - If this backend noticed and reacted to a request to cancel or abandon the add operation.

deleteEntry

public abstract void deleteEntry(DN entryDN,
                                 DeleteOperation deleteOperation)
                          throws DirectoryException,
                                 CanceledOperationException
Removes the specified entry from this backend. This method must ensure that the entry exists and that it does not have any subordinate entries (unless the backend supports a subtree delete operation and the client included the appropriate information in the request). The caller must hold a write lock on the provided entry DN.

Parameters:
entryDN - The DN of the entry to remove from this backend.
deleteOperation - The delete operation with which this action is associated. This may be null for deletes performed internally.
Throws:
DirectoryException - If a problem occurs while trying to remove the entry.
CanceledOperationException - If this backend noticed and reacted to a request to cancel or abandon the delete operation.

replaceEntry

public abstract void replaceEntry(Entry entry,
                                  ModifyOperation modifyOperation)
                           throws DirectoryException,
                                  CanceledOperationException
Replaces the specified entry with the provided entry in this backend. The backend must ensure that an entry already exists with the same DN as the provided entry. The caller must hold a write lock on the DN of the provided entry.

Parameters:
entry - The new entry to use in place of the existing entry with the same DN.
modifyOperation - The modify operation with which this action is associated. This may be null for modifications performed internally.
Throws:
DirectoryException - If a problem occurs while trying to replace the entry.
CanceledOperationException - If this backend noticed and reacted to a request to cancel or abandon the modify operation.

renameEntry

public abstract void renameEntry(DN currentDN,
                                 Entry entry,
                                 ModifyDNOperation modifyDNOperation)
                          throws DirectoryException,
                                 CanceledOperationException
Moves and/or renames the provided entry in this backend, altering any subordinate entries as necessary. This must ensure that an entry already exists with the provided current DN, and that no entry exists with the target DN of the provided entry. The caller must hold write locks on both the current DN and the new DN for the entry.

Parameters:
currentDN - The current DN of the entry to be replaced.
entry - The new content to use for the entry.
modifyDNOperation - The modify DN operation with which this action is associated. This may be null for modify DN operations performed internally.
Throws:
DirectoryException - If a problem occurs while trying to perform the rename.
CanceledOperationException - If this backend noticed and reacted to a request to cancel or abandon the modify DN operation.

search

public abstract void search(SearchOperation searchOperation)
                     throws DirectoryException,
                            CanceledOperationException
Processes the specified search in this backend. Matching entries should be provided back to the core server using the SearchOperation.returnEntry method. The caller is not required to have any locks when calling this operation.

Parameters:
searchOperation - The search operation to be processed.
Throws:
DirectoryException - If a problem occurs while processing the search.
CanceledOperationException - If this backend noticed and reacted to a request to cancel or abandon the search operation.

getSupportedControls

public abstract java.util.Set<java.lang.String> getSupportedControls()
Retrieves the OIDs of the controls that may be supported by this backend.

Returns:
The OIDs of the controls that may be supported by this backend.

supportsControl

public final boolean supportsControl(java.lang.String controlOID)
Indicates whether this backend supports the specified control.

Parameters:
controlOID - The OID of the control for which to make the determination.
Returns:
true if this backends supports the control with the specified OID, or false if it does not.

getSupportedFeatures

public abstract java.util.Set<java.lang.String> getSupportedFeatures()
Retrieves the OIDs of the features that may be supported by this backend.

Returns:
The OIDs of the features that may be supported by this backend.

supportsFeature

public final boolean supportsFeature(java.lang.String featureOID)
Indicates whether this backend supports the specified feature.

Parameters:
featureOID - The OID of the feature for which to make the determination.
Returns:
true if this backend supports the feature with the specified OID, or false if it does not.

supportsLDIFExport

public abstract boolean supportsLDIFExport()
Indicates whether this backend provides a mechanism to export the data it contains to an LDIF file.

Returns:
true if this backend provides an LDIF export mechanism, or false if not.

exportLDIF

public abstract void exportLDIF(LDIFExportConfig exportConfig)
                         throws DirectoryException
Exports the contents of this backend to LDIF. This method should only be called if supportsLDIFExport returns true. Note that the server will not explicitly initialize this backend before calling this method.

Parameters:
exportConfig - The configuration to use when performing the export.
Throws:
DirectoryException - If a problem occurs while performing the LDIF export.

supportsLDIFImport

public abstract boolean supportsLDIFImport()
Indicates whether this backend provides a mechanism to import its data from an LDIF file.

Returns:
true if this backend provides an LDIF import mechanism, or false if not.

importLDIF

public abstract LDIFImportResult importLDIF(LDIFImportConfig importConfig)
                                     throws DirectoryException
Imports information from an LDIF file into this backend. This method should only be called if supportsLDIFImport returns true. Note that the server will not explicitly initialize this backend before calling this method.

Parameters:
importConfig - The configuration to use when performing the import.
Returns:
Information about the result of the import processing.
Throws:
DirectoryException - If a problem occurs while performing the LDIF import.

supportsBackup

public abstract boolean supportsBackup()
Indicates whether this backend provides a backup mechanism of any kind. This method is used by the backup process when backing up all backends to determine whether this backend is one that should be skipped. It should only return true for backends that it is not possible to archive directly (e.g., those that don't store their data locally, but rather pass through requests to some other repository).

Returns:
true if this backend provides any kind of backup mechanism, or false if it does not.

supportsBackup

public abstract boolean supportsBackup(BackupConfig backupConfig,
                                       java.lang.StringBuilder unsupportedReason)
Indicates whether this backend provides a mechanism to perform a backup of its contents in a form that can be restored later, based on the provided configuration.

Parameters:
backupConfig - The configuration of the backup for which to make the determination.
unsupportedReason - A buffer to which a message can be appended explaining why the requested backup is not supported.
Returns:
true if this backend provides a mechanism for performing backups with the provided configuration, or false if not.

createBackup

public abstract void createBackup(BackupConfig backupConfig)
                           throws DirectoryException
Creates a backup of the contents of this backend in a form that may be restored at a later date if necessary. This method should only be called if supportsBackup returns true. Note that the server will not explicitly initialize this backend before calling this method.

Parameters:
backupConfig - The configuration to use when performing the backup.
Throws:
DirectoryException - If a problem occurs while performing the backup.

removeBackup

public abstract void removeBackup(BackupDirectory backupDirectory,
                                  java.lang.String backupID)
                           throws DirectoryException
Removes the specified backup if it is possible to do so.

Parameters:
backupDirectory - The backup directory structure with which the specified backup is associated.
backupID - The backup ID for the backup to be removed.
Throws:
DirectoryException - If it is not possible to remove the specified backup for some reason (e.g., no such backup exists or there are other backups that are dependent upon it).

supportsRestore

public abstract boolean supportsRestore()
Indicates whether this backend provides a mechanism to restore a backup.

Returns:
true if this backend provides a mechanism for restoring backups, or false if not.

restoreBackup

public abstract void restoreBackup(RestoreConfig restoreConfig)
                            throws DirectoryException
Restores a backup of the contents of this backend. This method should only be called if supportsRestore returns true. Note that the server will not explicitly initialize this backend before calling this method.

Parameters:
restoreConfig - The configuration to use when performing the restore.
Throws:
DirectoryException - If a problem occurs while performing the restore.

getBackendID

public final java.lang.String getBackendID()
Retrieves the unique identifier for this backend.

Returns:
The unique identifier for this backend.

setBackendID

public final void setBackendID(java.lang.String backendID)
Specifies the unique identifier for this backend.

Parameters:
backendID - The unique identifier for this backend.

isPrivateBackend

public final boolean isPrivateBackend()
Indicates whether this backend holds private data or user data.

Returns:
true if this backend holds private data, or false if it holds user data.

setPrivateBackend

public final void setPrivateBackend(boolean isPrivateBackend)
Specifies whether this backend holds private data or user data.

Parameters:
isPrivateBackend - Specifies whether this backend holds private data or user data.

getWritabilityMode

public final WritabilityMode getWritabilityMode()
Retrieves the writability mode for this backend.

Returns:
The writability mode for this backend.

setWritabilityMode

public final void setWritabilityMode(WritabilityMode writabilityMode)
Specifies the writability mode for this backend.

Parameters:
writabilityMode - The writability mode for this backend.

getBackendMonitor

public final BackendMonitor getBackendMonitor()
Retrieves the backend monitor that is associated with this backend.

Returns:
The backend monitor that is associated with this backend, or null if none has been assigned.

setBackendMonitor

public final void setBackendMonitor(BackendMonitor backendMonitor)
Sets the backend monitor for this backend.

Parameters:
backendMonitor - The backend monitor for this backend.

getEntryCount

public abstract long getEntryCount()
Retrieves the total number of entries contained in this backend, if that information is available.

Returns:
The total number of entries contained in this backend, or -1 if that information is not available.

getParentBackend

public final Backend getParentBackend()
Retrieves the parent backend for this backend.

Returns:
The parent backend for this backend, or null if there is none.

setParentBackend

public final void setParentBackend(Backend parentBackend)
Specifies the parent backend for this backend.

Parameters:
parentBackend - The parent backend for this backend.

getSubordinateBackends

public final Backend[] getSubordinateBackends()
Retrieves the set of subordinate backends for this backend.

Returns:
The set of subordinate backends for this backend, or an empty array if none exist.

setSubordinateBackends

public final void setSubordinateBackends(Backend[] subordinateBackends)
Specifies the set of subordinate backends for this backend.

Parameters:
subordinateBackends - The set of subordinate backends for this backend.

hasSubSuffix

public final boolean hasSubSuffix(DN subSuffixDN)
Indicates whether this backend has a subordinate backend registered with the provided base DN. This may check recursively if a subordinate backend has its own subordinate backends.

Parameters:
subSuffixDN - The DN of the sub-suffix for which to make the determination.
Returns:
true if this backend has a subordinate backend registered with the provided base DN, or false if it does not.

removeSubSuffix

public final void removeSubSuffix(DN subSuffixDN,
                                  DN parentDN)
                           throws ConfigException
Removes the backend associated with the specified sub-suffix if it is registered. This may check recursively if a subordinate backend has its own subordinate backends.

Parameters:
subSuffixDN - The DN of the sub-suffix to remove from this backend.
parentDN - The superior DN for the sub-suffix DN that matches one of the subordinate base DNs for this backend.
Throws:
ConfigException - If the sub-suffix exists but it is not possible to remove it for some reason.

addSubordinateBackend

public final void addSubordinateBackend(Backend subordinateBackend)
Adds the provided backend to the set of subordinate backends for this backend.

Parameters:
subordinateBackend - The backend to add to the set of subordinate backends for this backend.

removeSubordinateBackend

public final void removeSubordinateBackend(Backend subordinateBackend)
Removes the provided backend from the set of subordinate backends for this backend.

Parameters:
subordinateBackend - The backend to remove from the set of subordinate backends for this backend.

handlesEntry

public final boolean handlesEntry(DN entryDN)
Indicates whether this backend should be used to handle operations for the provided entry.

Parameters:
entryDN - The DN of the entry for which to make the determination.
Returns:
true if this backend handles operations for the provided entry, or false if it does not.

handlesEntry

public static final boolean handlesEntry(DN entryDN,
                                         java.util.List<DN> baseDNs,
                                         java.util.List<DN> excludeDNs)
Indicates whether a backend should be used to handle operations for the provided entry given the set of base DNs and exclude DNs.

Parameters:
entryDN - The DN of the entry for which to make the determination.
baseDNs - The set of base DNs for the backend.
excludeDNs - The set of DNs that should be excluded from the backend.
Returns:
true if the backend should handle operations for the provided entry, or false if it does not.