Package org.apache.ldap.common.aci

Examples of org.apache.ldap.common.aci.ACITuple


    public void testWrongScope() throws Exception
    {
        MaxImmSubFilter filter = new MaxImmSubFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, EMPTY_COLLECTION,
                EMPTY_SET, true, 0 ) );

        tuples = Collections.unmodifiableCollection( tuples );
View Full Code Here


    public void testRootDSE() throws Exception
    {
        MaxImmSubFilter filter = new MaxImmSubFilter();

        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, EMPTY_COLLECTION,
                EMPTY_SET, true, 0 ) );

        tuples = Collections.unmodifiableCollection( tuples );
View Full Code Here

    public void testDenialTuple() throws Exception
    {
        MaxImmSubFilter filter = new MaxImmSubFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, PROTECTED_ITEMS,
                EMPTY_SET, false, 0 ) );

        tuples = Collections.unmodifiableCollection( tuples );
View Full Code Here

    public void testGrantTuple() throws Exception
    {
        MaxImmSubFilter filter = new MaxImmSubFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, PROTECTED_ITEMS,
                EMPTY_SET, true, 0 ) );

        Assert.assertEquals(
                1, filter.filter(
View Full Code Here

    {
        Collection protectedItems = new ArrayList();
        protectedItems.add( protectedItem );
       
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, protectedItems,
                EMPTY_SET, true, 0 ) );
       
        return tuples;
    }
View Full Code Here

   
    public void testOneTuple() throws Exception
    {
        MicroOperationFilter filter = new MicroOperationFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, EMPTY_SET,
                TUPLE_OPERATIONS, true, 0 ) );
       
        Assert.assertEquals(
                1, filter.filter(
View Full Code Here

   
    public void testWrongScope() throws Exception
    {
        MaxValueCountFilter filter = new MaxValueCountFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, EMPTY_COLLECTION,
                EMPTY_SET, true, 0 ) );
       
        tuples = Collections.unmodifiableCollection( tuples );
       
View Full Code Here

   
    public void testDenialTuple() throws Exception
    {
        MaxValueCountFilter filter = new MaxValueCountFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, PROTECTED_ITEMS,
                EMPTY_SET, false, 0 ) );
       
        tuples = Collections.unmodifiableCollection( tuples );
       
View Full Code Here

    public void testGrantTuple() throws Exception
    {
        MaxValueCountFilter filter = new MaxValueCountFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, PROTECTED_ITEMS,
                EMPTY_SET, true, 0 ) );
       
        Assert.assertEquals(
                1, filter.filter(
View Full Code Here

    public void testOneTuple() throws Exception
    {
        HighestPrecedenceFilter filter = new HighestPrecedenceFilter();
        Collection tuples = new ArrayList();
        tuples.add( new ACITuple(
                EMPTY_COLLECTION, AuthenticationLevel.NONE, EMPTY_COLLECTION,
                EMPTY_SET, true, 10 ) );
        tuples = Collections.unmodifiableCollection( tuples );
        Assert.assertEquals(
                tuples, filter.filter(
View Full Code Here

TOP

Related Classes of org.apache.ldap.common.aci.ACITuple

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.