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

Examples of org.apache.directory.shared.ldap.name.LdapDN.startsWith()


    {
        LdapDN oriChildName = opContext.getDn();

        ClonedServerEntry entry = opContext.lookup( oriChildName, ByPassConstants.LOOKUP_BYPASS );

        if ( oriChildName.startsWith( schemaBaseDN ) )
        {
            schemaManager.move( opContext, entry, opContext.hasRequestControl( CascadeControl.CONTROL_OID ) );
        }

        next.moveAndRename( opContext );
View Full Code Here


    {
        LdapDN oriChildName = opContext.getDn();

        ClonedServerEntry entry = opContext.lookup( oriChildName, ByPassConstants.LOOKUP_BYPASS );

        if ( oriChildName.startsWith( schemaBaseDN ) )
        {
            schemaManager.replace( opContext, entry, opContext.hasRequestControl( CascadeControl.CONTROL_OID ) );
        }

        next.move( opContext );
View Full Code Here

        {
            // Get the entry we already read at the beginning
            entry = opContext.getEntry();
        }
       
        boolean schemaModification = name.startsWith( schemaBaseDN );
        boolean subSchemaModification = subschemaSubentryDnNorm.equals( name.getNormName() );

        // First, we get the entry from the backend. If it does not exist, then we throw an exception
        ServerEntry targetEntry = (ServerEntry)SchemaUtils.getTargetEntry( mods , entry );
View Full Code Here

        else
        {
            targetEntry = modifyEntry( dn, opContext.getEntry(), opContext.getModItems() );
        }
       
        if ( dn.startsWith( schemaBaseDN ) )
        {
            LOG.debug( "Modification attempt on schema partition {}: \n{}", dn, opContext );

            schemaManager.modify( opContext, opContext.getEntry(), targetEntry, opContext
                .hasRequestControl( CascadeControl.CONTROL_OID ) );
View Full Code Here

        ServerEntry entry = addContext.getEntry();

        check( name, entry );

        // Special checks for the MetaSchema branch
        if ( name.startsWith( schemaBaseDN ) )
        {
            schemaManager.add( addContext );
           
            if ( entry.contains( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.META_SCHEMA_OC ) )
            {
View Full Code Here

    public void delete( NextInterceptor next, DeleteOperationContext opContext ) throws Exception
    {
        LdapDN name = opContext.getDn();

        if ( name.startsWith( schemaBaseDN ) )
        {
            ClonedServerEntry entry = nexus.lookup( opContext.newLookupContext( name ) );
            schemaManager.delete( opContext, entry, opContext.hasRequestControl( CascadeControl.CONTROL_OID ) );
        }
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.