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

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


            Dn dn = moveContext.getDn();
            dn.apply( directoryService.getSchemaManager() );

            // Normalize the moveContext superior Dn
            Dn newSuperiorDn = moveContext.getNewSuperior();
            newSuperiorDn.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


        try
        {
            // 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

        try
        {
            // 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

        try
        {
            // 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

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

            if ( enableStats )
            {
                hitCount++;
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

        Dn principalDn = opContext.getSession().getEffectivePrincipal().getDn();
        Dn dn = entry.getDn();

        if ( !dn.isSchemaAware() )
        {
            dn.apply( opContext.getSession().getDirectoryService().getSchemaManager() );
        }

        // Admin users gets full access to all entries
        if ( isAnAdministrator( principalDn ) )
        {
View Full Code Here

            Dn apName = oldDn.getParent();
            Dn baseDn = apName;
            baseDn = baseDn.add( ss.getBase() );
            Dn newName = newSuperiorDn;
            newName = newName.add( oldDn.getRdn() );
            newName.apply( schemaManager );

            subentryCache.addSubentry( newName, subentry );

            next.move( moveContext );
View Full Code Here

                // Modify all the entries under this subentry
                while ( subentries.next() )
                {
                    Entry candidate = subentries.get();
                    Dn dn = candidate.getDn();
                    dn.apply( schemaManager );

                    if ( evaluator.evaluate( ss, apName, dn, candidate ) )
                    {
                        nexus.modify( new ModifyOperationContext( moveContext.getSession(), dn, getOperationalModsForReplace(
                            oldDn, newName, subentry, candidate ) ) );
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.