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

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


        if ( obj instanceof Dn )
        {
            dn = ( Dn ) obj;

            dn = ( dn.isSchemaAware() ? dn : dn.apply( schemaManager ) );
        }
        else if ( obj instanceof String )
        {
            dn = new Dn( schemaManager, ( String ) obj );
        }
View Full Code Here


    @Test
    public void testSerializeCompleteEntry() throws LdapException, IOException, ClassNotFoundException
    {
        Dn dn = new Dn( "ou=system" );

        dn.apply( schemaManager );

        byte[] password = Strings.getBytesUtf8( "secret" );
        Entry entry = new DefaultEntry( dn );
        entry.add( "ObjectClass", "top", "person" );
        entry.add( "cn", "test1" );
View Full Code Here

    @Test
    public void testSerializeEntryWithNoAttribute() throws LdapException, IOException, ClassNotFoundException
    {
        Dn dn = new Dn( "ou=system" );

        dn.apply( schemaManager );

        Entry entry = new DefaultEntry( dn );

        Entry entrySer = deserializeValue( serializeValue( entry ) );
View Full Code Here

    {
        Dn dn = deleteContext.getDn();

        if ( !dn.isSchemaAware() )
        {
            dn.apply( schemaManager );
        }

        nextInterceptor.delete( deleteContext );
    }
View Full Code Here

    {
        Dn dn = searchContext.getDn();

        if ( !dn.isSchemaAware() )
        {
            dn.apply( schemaManager );
        }

        ExprNode filter = searchContext.getFilter();

        if ( filter == null )
View Full Code Here

        try
        {
            // Normalize the addContext Dn
            Dn dn = addContext.getDn();
            dn.apply( directoryService.getSchemaManager() );

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

            if ( directoryService.getReferralManager().hasParentReferral( dn ) )
View Full Code Here

        try
        {
            // Normalize the compareContext Dn
            Dn dn = compareContext.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

        try
        {
            // Normalize the deleteContext Dn
            Dn dn = deleteContext.getDn();
            dn.apply( directoryService.getSchemaManager() );

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

            Entry parentEntry = directoryService.getReferralManager().getParentReferral( dn );
View Full Code Here

        try
        {
            // Normalize the modifyContext Dn
            Dn dn = modifyContext.getDn();
            dn.apply( directoryService.getSchemaManager() );

            ReferralManager referralManager = directoryService.getReferralManager();

            // We have to deal with the referral first
            referralManager.lockRead();
View Full Code Here

        try
        {
            // Normalize the moveContext Dn
            Dn dn = moveContext.getDn();
            dn.apply( directoryService.getSchemaManager() );

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