Java Code Examples for org.apache.directory.server.core.api.interceptor.context.HasEntryOperationContext#getDn()
The following examples show how to use
org.apache.directory.server.core.api.interceptor.context.HasEntryOperationContext#getDn() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultPartitionNexus.java From MyVirtualDirectory with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ public boolean hasEntry( HasEntryOperationContext hasEntryContext ) throws LdapException { Dn dn = hasEntryContext.getDn(); if ( IS_DEBUG ) { LOG.debug( "Check if Dn '" + dn + "' exists." ); } if ( dn.isRootDse() ) { return true; } Partition partition = getPartition( dn ); return partition.hasEntry( hasEntryContext ); }
Example 2
Source File: DefaultPartitionNexus.java From MyVirtualDirectory with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ public boolean hasEntry( HasEntryOperationContext hasEntryContext ) throws LdapException { Dn dn = hasEntryContext.getDn(); if ( IS_DEBUG ) { LOG.debug( "Check if Dn '" + dn + "' exists." ); } if ( dn.isRootDse() ) { return true; } Partition partition = getPartition( dn ); return partition.hasEntry( hasEntryContext ); }
Example 3
Source File: NormalizationInterceptor.java From syncope with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public boolean hasEntry( HasEntryOperationContext hasEntryContext ) throws LdapException { Dn dn = hasEntryContext.getDn(); if ( !dn.isSchemaAware() ) { hasEntryContext.setDn( new Dn( schemaManager, dn ) ); } return next( hasEntryContext ); }