Package org.apache.directory.server.core.interceptor.context

Examples of org.apache.directory.server.core.interceptor.context.EntryOperationContext


        for ( Schema schema : schemas )
        {
            DN dn = updateDNs( staticObjectClassesDNs, SchemaConstants.OBJECT_CLASSES_PATH, schema );

            if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
            {
                return objectClassList;
            }

            LOG.debug( "{} schema: loading objectClasses", schema.getSchemaName() );
View Full Code Here


        for ( Schema schema : schemas )
        {
            DN dn = updateDNs( staticSyntaxesDNs, SchemaConstants.SYNTAXES_PATH, schema );

            if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
            {
                return syntaxList;
            }

            LOG.debug( "{} schema: loading syntaxes", schema.getSchemaName() );
View Full Code Here

        for ( Schema schema : schemas )
        {
            DN dn = updateDNs( staticSyntaxCheckersDNs, SchemaConstants.SYNTAX_CHECKERS_PATH, schema );

            if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
            {
                return syntaxCheckerList;
            }

            LOG.debug( "{} schema: loading syntaxCsheckers", schema.getSchemaName() );
View Full Code Here

    {
        DN target = buildTarget( name );

        try
        {
            if ( getDirectoryService().getOperationManager().hasEntry( new EntryOperationContext( getSession(), target ) ) )
            {
                doDeleteOperation( target );
            }
        }
        catch ( Exception e )
View Full Code Here

    {
        this.schemaManager = schemaManager;
        this.partition = partition;

        Dn dn = new Dn( schemaManager, SchemaConstants.OU_SCHEMA );
        EntryOperationContext hasEntryContext = new EntryOperationContext( null, dn );
        if ( partition.hasEntry( hasEntryContext ) )
        {
            LOG.info( "Schema entry 'ou=schema' exists: extracted state set to true." );
            extracted = true;
        }
View Full Code Here

        {
            throw new LdapEntryAlreadyExistsException( I18n.err( I18n.ERR_249 ) );
        }

        // check if the entry already exists
        if ( nextInterceptor.hasEntry( new EntryOperationContext( addContext.getSession(), name ) ) )
        {
            LdapEntryAlreadyExistsException ne = new LdapEntryAlreadyExistsException(
                I18n.err( I18n.ERR_250_ENTRY_ALREADY_EXISTS, name.getName() ) );
            throw ne;
        }
View Full Code Here

        }

        // check to see if target entry exists
        Dn newDn = renameContext.getNewDn();

        if ( nextInterceptor.hasEntry( new EntryOperationContext( renameContext.getSession(), newDn ) ) )
        {
            LdapEntryAlreadyExistsException e;
            e = new LdapEntryAlreadyExistsException( I18n.err( I18n.ERR_250_ENTRY_ALREADY_EXISTS, newDn.getName() ) );
            //e.setResolvedName( DNFactory.create( newDn.getName() ) );
            throw e;
View Full Code Here

    private void initializeSchemas() throws Exception
    {
        Dn dn = new Dn( schemaManager, SchemaConstants.OU_SCHEMA );

        // Check that the ou=schema entry exists
        if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
        {
            return;
        }

        LOG.debug( "Loading schemas" );
View Full Code Here

        for ( Schema schema : schemas )
        {
            Dn dn = getBaseDN( SchemaConstants.ATTRIBUTE_TYPES_PATH, schema );

            // Check that we don't have an entry in the Dit for this schema
            if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
            {
                // No : get out, no AttributeType to load
                return attributeTypeList;
            }
View Full Code Here

        for ( Schema schema : schemas )
        {
            Dn dn = getBaseDN( SchemaConstants.COMPARATORS_PATH, schema );

            if ( !partition.hasEntry( new EntryOperationContext( null, dn ) ) )
            {
                return comparatorList;
            }

            LOG.debug( "{} schema: loading comparators", schema.getSchemaName() );
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.interceptor.context.EntryOperationContext

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.