Package org.apache.directory.server.core.api.entry

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


        if ( session != null )
        {
            setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.ADD ) );
        }

        this.entry = new ClonedServerEntry( entry );
    }
View Full Code Here


        else
        {
            throw new LdapOperationErrorException( "No session to proceed the operation" );
        }

        entry = new ClonedServerEntry(
            new DefaultEntry( session.getDirectoryService().getSchemaManager(), addRequest.getEntry() ) );
        dn = addRequest.getEntry().getDn();
        requestControls = addRequest.getControls();

        if ( requestControls.containsKey( ManageDsaIT.OID ) )
View Full Code Here

        Dn parentDn = new Dn( schemaManager, "ou=Sales,o=Good Times Co." );

        Rdn rdn = new Rdn( "cn=Ryan" );

        partition.moveAndRename( childDn, parentDn, rdn, new ClonedServerEntry( childEntry ), true );

        // to drop the alias indices
        childDn = new Dn( schemaManager, "commonName=Jim Bean,ou=Apache,ou=Board of Directors,o=Good Times Co." );

        parentDn = new Dn( schemaManager, "ou=Engineering,o=Good Times Co." );
View Full Code Here

    {
        Dn dn = lookupContext.getDn();

        if ( dn.equals( subschemSubentryDn ) )
        {
            return new ClonedServerEntry( rootDse.clone() );
        }

        // This is for the case we do a lookup on the rootDSE
        if ( dn.size() == 0 )
        {
            Entry retval = new ClonedServerEntry( rootDse );

            return retval;
        }

        Partition partition = getPartition( dn );
View Full Code Here

                    return null;
                }

                entry.setDn( dn );

                return new ClonedServerEntry( entry );
            }

            return null;
        }
        catch ( Exception e )
View Full Code Here

                if ( !dn.equals( entry.getDn() ) )
                {
                    entry.setDn( dn );
                }

                return new ClonedServerEntry( entry );
            }

            return null;
        }
        catch ( Exception e )
View Full Code Here

    {
        Entry eA = new DefaultEntry( "dc=example,dc=com" );
        Entry eB = new DefaultEntry( "dc=example,dc=com" );
        Entry eC = new DefaultEntry( "dc=test,dc=org" );

        clonedServerEntryA = new ClonedServerEntry();
        clonedServerEntryACopy = new ClonedServerEntry();
        clonedServerEntryB = new ClonedServerEntry();
        clonedServerEntryA1 = new ClonedServerEntry( eA );
        clonedServerEntryACopy1 = new ClonedServerEntry( eA );
        clonedServerEntryB1 = new ClonedServerEntry( eB );
        clonedServerEntryC1 = new ClonedServerEntry( eC );
    }
View Full Code Here

        Value<?> userPassword;

        Attribute userPasswordAttr = userEntry.get( SchemaConstants.USER_PASSWORD_AT );

        bindContext.setEntry( new ClonedServerEntry( userEntry ) );

        // ---- assert that credentials match
        if ( userPasswordAttr == null )
        {
            return StringConstants.EMPTY_BYTES;
View Full Code Here

    {
        Entry entry = new DefaultEntry( schemaManager, dn,
            SchemaConstants.ENTRY_CSN_AT, defaultCSNFactory.newInstance().toString(),
            SchemaConstants.ENTRY_UUID_AT, UUID.randomUUID().toString() );

        Entry clonedEntry = new ClonedServerEntry( entry );

        return clonedEntry;
    }
View Full Code Here

                "entryUUID: 8c7b24a6-1687-461c-88ea-4d30fc234f9b\n" +
                "entryCSN: 20100919005926.530000Z#000000#000#000000";

        LdifEntry ldifEntry = reader.parseLdif( contextEntryStr ).get( 0 );

        contextEntry = new ClonedServerEntry( new DefaultEntry( schemaManager, ldifEntry.getEntry() ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.api.entry.ClonedServerEntry

Copyright © 2018 www.massapicom. 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.