Package org.apache.directory.shared.ldap.model.name

Examples of org.apache.directory.shared.ldap.model.name.Dn.apply()


        ensureStarted();

        // Normalize the moveAndRenameContext Dn
        Dn dn = moveAndRenameContext.getDn();
        dn.apply( directoryService.getSchemaManager() );

        // We have to deal with the referral first
        directoryService.getReferralManager().lockRead();

        // Check if we have an ancestor for this Dn
View Full Code Here


        }

        // Now, check the destination
        // Normalize the moveAndRenameContext Dn
        Dn newSuperiorDn = moveAndRenameContext.getNewSuperiorDn();
        newSuperiorDn.apply( directoryService.getSchemaManager() );

        // If he parent Dn is a referral, or has a referral ancestor, we have to issue a AffectMultipleDsas result
        // as stated by RFC 3296 Section 5.6.2
        if ( directoryService.getReferralManager().isReferral( newSuperiorDn )
            || directoryService.getReferralManager().hasParentReferral( newSuperiorDn ) )
View Full Code Here

        }
        else
        {
            if ( !cachedDn.isSchemaAware() && ( schemaManager != null ) )
            {
                cachedDn.apply( schemaManager );
            }

            if ( enableStats )
            {
                hitCount++;
View Full Code Here

        ensureStarted();

        // Normalize the renameContext Dn
        Dn dn = renameContext.getDn();
        dn.apply( directoryService.getSchemaManager() );

        // Inject the newDn into the operation context
        // Inject the new Dn into the context
        if ( !dn.isEmpty() )
        {
View Full Code Here

        ensureStarted();

        // Normalize the searchContext Dn
        Dn dn = searchContext.getDn();
        dn.apply( directoryService.getSchemaManager() );

        // We have to deal with the referral first
        directoryService.getReferralManager().lockRead();

        // Check if we have an ancestor for this Dn
View Full Code Here

            ENTRY_CSN_AT = schemaManager.getAttributeType( SchemaConstants.ENTRY_CSN_AT );
            OBJECT_CLASS_AT = schemaManager.getAttributeType( SchemaConstants.OBJECT_CLASS_AT );

            // Initialize and normalize the localy used DNs
            Dn adminDn = directoryService.getDnFactory().create( ServerDNConstants.ADMIN_SYSTEM_DN );
            adminDn.apply( schemaManager );

            Value<?> attr = rootDse.get( SchemaConstants.SUBSCHEMA_SUBENTRY_AT ).get();
            subschemSubentryDn = directoryService.getDnFactory().create( attr.getString() );

            //initializeSystemPartition( directoryService );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.