Examples of ACITuple


Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> ii = tuples.iterator(); ii.hasNext(); )
        {
            ACITuple tuple = ii.next();
           
            if ( tuple.isGrant() )
            {
                if ( !isRelated( userGroupNames,
                                 userName,
                                 userEntry,
                                 entryName,
                                 tuple.getUserClasses() )
                    || authenticationLevel.compareTo( tuple.getAuthenticationLevel() ) < 0 )
                {
                    ii.remove();
                }
            }
            else
            // Denials
            {
                if ( !isRelated( userGroupNames,
                                 userName,
                                 userEntry,
                                 entryName,
                                 tuple.getUserClasses() )
                    && authenticationLevel.compareTo( tuple.getAuthenticationLevel() ) >= 0 )
                {
                    ii.remove();
                }
            }
        }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();
           
            if ( !isRelated( tuple, scope, userName, entryName, attrId, attrValue, entry ) )
            {
                i.remove();
            }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();

            /*
             * The ACITuple must contain all the MicroOperations specified within the
             * microOperations argument.  Just matching a single microOperation is not
             * enough.  All must be matched to retain the ACITuple.
             */

            boolean retain = true;
           
            for ( MicroOperation microOp:microOperations )
            {
                if ( !tuple.getMicroOperations().contains( microOp ) )
                {
                    retain = false;
                    break;
                }
            }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();
           
            if ( !tuple.isGrant() )
            {
                continue;
            }

            for ( Iterator<ProtectedItem> j = tuple.getProtectedItems().iterator(); j.hasNext(); )
            {
                ProtectedItem item = j.next();
               
                if ( item instanceof ProtectedItem.MaxValueCount )
                {
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

        int immSubCount = -1;

        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();
            if ( !tuple.isGrant() )
            {
                continue;
            }

            for ( ProtectedItem item : tuple.getProtectedItems() )
            {
                if ( item instanceof ProtectedItem.MaxImmSub )
                {
                    if ( immSubCount < 0 )
                    {
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

        }

        // Remove all tuples whose precedences are not the maximum one.
        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();
           
            if ( tuple.getPrecedence() != maxPrecedence )
            {
                i.remove();
            }
        }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> ii = tuples.iterator() ; ii.hasNext(); )
        {
            ACITuple tuple = ii.next();
           
            if ( !tuple.isGrant() )
            {
                continue;
            }

            if ( isRemovable( tuple, attrId, attrValue, entry ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

        }

        // Remove all tuples whose precedences are not the maximum one.
        for ( Iterator<ACITuple> i = tuples.iterator(); i.hasNext(); )
        {
            ACITuple tuple = i.next();
           
            if ( tuple.getPrecedence() != maxPrecedence )
            {
                i.remove();
            }
        }
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> ii = tuples.iterator() ; ii.hasNext(); )
        {
            ACITuple tuple = ii.next();
           
            if ( !tuple.isGrant() )
            {
                continue;
            }

            if ( isRemovable( tuple, attrId, attrValue, entry ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.aci.ACITuple

            return tuples;
        }

        for ( Iterator<ACITuple> ii = tuples.iterator(); ii.hasNext(); )
        {
            ACITuple tuple = ii.next();
           
            if ( tuple.isGrant() )
            {
                if ( !isRelated( userGroupNames,
                                 userName,
                                 userEntry,
                                 entryName,
                                 tuple.getUserClasses() )
                    || authenticationLevel.compareTo( tuple.getAuthenticationLevel() ) < 0 )
                {
                    ii.remove();
                }
            }
            else
            // Denials
            {
                if ( !isRelated( userGroupNames,
                                 userName,
                                 userEntry,
                                 entryName,
                                 tuple.getUserClasses() )
                    && authenticationLevel.compareTo( tuple.getAuthenticationLevel() ) >= 0 )
                {
                    ii.remove();
                }
            }
        }
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.