Examples of MaxImmSubItem


Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

    public void setup() throws Exception
    {
        schemaManager = service.getSchemaManager();

        ENTRY_NAME = new Dn( schemaManager, "ou=test, ou=system" );
        PROTECTED_ITEMS.add( new MaxImmSubItem( 2 ) );
        ENTRY = new DefaultEntry( schemaManager, ENTRY_NAME );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

                    if ( immSubCount < 0 )
                    {
                        immSubCount = getImmSubCount( aciContext.getOperationContext(), aciContext.getEntryDn() );
                    }

                    MaxImmSubItem mis = ( MaxImmSubItem ) item;

                    if ( immSubCount >= mis.getValue() )
                    {
                        i.remove();
                        break;
                    }
                }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

     * Initialize name instances
     */
    @Before
    public void initNames() throws Exception
    {
        MaxImmSubItem misA = new MaxImmSubItem( 1 );
        MaxImmSubItem misB = new MaxImmSubItem( 1 );
        MaxImmSubItem misC = new MaxImmSubItem( 2 );

        maxValueCountA = misA;
        maxValueCountACopy = misA;
        maxValueCountB = misB;
        maxValueCountC = misC;
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem


    @Test
    public void testMaxImmSub() throws Exception
    {
        Collection<ACITuple> tuples = getTuples( new MaxImmSubItem( 2 ) );

        // Should always retain tuples.
        AciContext aciContext = new AciContext( null, null );
        aciContext.setAciTuples( tuples );
        aciContext.setUserDn( USER_NAME );
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

    public static void setup() throws Exception
    {
        schemaManager = new DefaultSchemaManager();

        Dn entryName = new Dn( schemaManager, "ou=test, ou=system" );
        PROTECTED_ITEMS.add( new MaxImmSubItem( 2 ) );
        ENTRY = new DefaultEntry( schemaManager, entryName );

        ENTRY.put( "cn", "1", "2" );
        CN_AT = schemaManager.lookupAttributeTypeRegistry( "cn" );
        SN_AT = schemaManager.lookupAttributeTypeRegistry( "sn" );
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

    public static void setup() throws Exception
    {
        schemaManager = new DefaultSchemaManager();

        ENTRY_NAME = new Dn( schemaManager, "ou=test, ou=system" );
        PROTECTED_ITEMS.add( new MaxImmSubItem( 2 ) );
        ENTRY = new DefaultEntry( schemaManager, ENTRY_NAME );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.protectedItem.MaxImmSubItem

    public void setup() throws Exception
    {
        schemaManager = service.getSchemaManager();

        ENTRY_NAME = new Dn( schemaManager, "ou=test, ou=system" );
        PROTECTED_ITEMS.add( new MaxImmSubItem( 2 ) );
        ENTRY = new DefaultEntry( schemaManager, ENTRY_NAME );
    }
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.