Examples of ClonedServerEntry


Examples of org.apache.directory.server.core.entry.ClonedServerEntry

        Long id = getEntryId( oldDn.getNormName() );

        wrappedPartition.moveAndRename( moveAndRenameContext );

        // Get the modified entry and store it in the context for post usage
        ClonedServerEntry modifiedEntry = lookup( id );
        moveAndRenameContext.setAlteredEntry( modifiedEntry );

        entryMoved( oldDn, modifiedEntry, id, moveAndRenameContext.getDelOldDn() );
    }
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

        // Create the new entry
        wrappedPartition.rename( renameContext );

        // Get the modified entry and store it in the context for post usage
        ClonedServerEntry modifiedEntry = lookup( id );
        renameContext.setAlteredEntry( modifiedEntry );

        // Now move the potential children for the old entry
        // and remove the old entry
        entryMoved( oldDn, modifiedEntry, id, renameContext.getDelOldDn() );
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

    }


    public final ClonedServerEntry lookup( ID id ) throws Exception
    {
        return new ClonedServerEntry( store.lookup( id ) );
    }
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

            log.info( "Cursor has been abandoned." );
            close();
            throw new OperationAbandonedException();
        }
       
        ClonedServerEntry tempResult = null;
        outer: while ( wrapped.next() )
        {
            boolean accepted = true;
           
            ServerEntry tempEntry = wrapped.get();
            if ( tempEntry instanceof ClonedServerEntry )
            {
                tempResult = ( ClonedServerEntry ) tempEntry;
            }
            else
            {
                tempResult = new ClonedServerEntry( tempEntry );
            }
           
            /*
             * O P T I M I Z A T I O N
             * -----------------------
 
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

            log.info( "Cursor has been abandoned." );
            close();
            throw new OperationAbandonedException();
        }
       
        ClonedServerEntry tempResult = null;
        outer: while ( wrapped.previous() )
        {
            boolean accepted = true;
            tempResult = new ClonedServerEntry( wrapped.get() );
           
            /*
             * O P T I M I Z A T I O N
             * -----------------------
             *
 
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

     * @see org.apache.directory.server.core.partition.Partition#move(org.apache.directory.server.core.interceptor.context.MoveOperationContext)
     */
    public void move( MoveOperationContext opContext ) throws Exception
    {
        boolean cascade = opContext.hasRequestControl( CascadeControl.CONTROL_OID );
        ClonedServerEntry entry = opContext.lookup( opContext.getDn(), ByPassConstants.LOOKUP_BYPASS );
        synchronizer.move( opContext, entry, cascade );
        wrapped.move( opContext );
        updateSchemaModificationAttributes( opContext );
    }
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

     * @see org.apache.directory.server.core.partition.Partition#moveAndRename(org.apache.directory.server.core.interceptor.context.MoveAndRenameOperationContext)
     */
    public void moveAndRename( MoveAndRenameOperationContext opContext ) throws Exception
    {
        boolean cascade = opContext.hasRequestControl( CascadeControl.CONTROL_OID );
        ClonedServerEntry entry = opContext.lookup( opContext.getDn(), ByPassConstants.LOOKUP_BYPASS );
        synchronizer.moveAndRename( opContext, entry, cascade );
        wrapped.moveAndRename( opContext );
        updateSchemaModificationAttributes( opContext );
    }
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

                AliasDerefMode.DEREF_ALWAYS,
                returningAttributes );
           
            cursor.beforeFirst();
           
            ClonedServerEntry entry = null;
           
            while ( cursor.next() )
            {
                entry = cursor.get();
                LdapPrincipal ldapPrincipal = new LdapPrincipal(
                    entry.getDn(),
                    AuthenticationLevel.STRONG,
                    entry.get( SchemaConstants.USER_PASSWORD_AT ).getBytes() );
                ldapSession.putSaslProperty( SaslConstants.SASL_AUTHENT_USER, ldapPrincipal );
            }

            return entry.get( passwordAT );
        }
        catch ( Exception e )
        {
            return null;
        }
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

     * @throws Exception if there are problems during this search
     */
    public static final ClonedServerEntry getFarthestReferralAncestor( LdapSession session, DN target )
        throws Exception
    {
        ClonedServerEntry entry;
        ClonedServerEntry farthestReferralAncestor = null;
        DN dn = ( DN ) target.clone();
       
        try
        {
            dn.remove( dn.size() - 1 );
View Full Code Here

Examples of org.apache.directory.server.core.entry.ClonedServerEntry

            EntryFilteringCursor list = partition.list( new ListOperationContext( null, dn ) );

            while ( list.next() )
            {
                ClonedServerEntry entry = list.get();

                comparatorList.add( entry );
            }
        }
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.