Examples of ACIItem


Examples of org.apache.directory.api.ldap.aci.ACIItem

                "      } " +
                "    } " +
                "  }  " +
                "}";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.aci.ACIItem

                "       } " +
                "     } " +
                "   }" +
                " }";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.aci.ACIItem

                "      } " +
                "    } " +
                "  }  " +
                "}   ";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.aci.ACIItem

                "  identificationTag \"id2\"   , " +
                "  authenticationLevel none, " +
                "  precedence 14 " +
                "}   ";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.aci.ACIItem

                "      } " +
                "    } " +
                "  } " +
                "}   ";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

Examples of org.apache.directory.api.ldap.aci.ACIItem

            + "subtree {{ base \"ou=system\" }, { base \"ou=ORGANIZATIONUNIT\"," + "minimum  1, maximum   2 } } }  , "
            + "userPermissions { { protectedItems{ entry  , "
            + "restrictedBy { { type 2.5.4.3, valuesIn ou }, { valuesIn cn, type 2.5.4.3  } } "
            + " }  , grantsAndDenials { grantBrowse } } } }  }   ";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );
    }
View Full Code Here

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

        List<ACITuple> entryTuples = new ArrayList<ACITuple>();

        for ( Value<?> value : aciAttr )
        {
            String aci = value.getString();
            ACIItem item = null;

            try
            {
                item = aciParser.parse( aci );
                entryTuples.addAll( item.toTuples() );
            }
            catch ( ParseException e )
            {
                String msg = I18n.err( I18n.ERR_28, item );
                LOG.error( msg, e );
View Full Code Here

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

        }

        for ( Value<?> value:entryAci )
        {
            String aciString = value.getString();
            ACIItem item;

            try
            {
                item = aciParser.parse( aciString );
            }
            catch ( ParseException e )
            {
                String msg = I18n.err( I18n.ERR_10, aciString );
                LOG.error( msg, e );
                throw new LdapNamingException( msg, ResultCodeEnum.OPERATIONS_ERROR );
            }

            tuples.addAll( item.toTuples() );
        }
    }
View Full Code Here

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

        }

        for ( Value<?> value:subentryAci )
        {
            String aciString = value.getString();
            ACIItem item;

            try
            {
                item = aciParser.parse( aciString );
            }
            catch ( ParseException e )
            {
                String msg = I18n.err( I18n.ERR_11, aciString );
                LOG.error( msg, e );
                throw new LdapNamingException( msg, ResultCodeEnum.OPERATIONS_ERROR );
            }

            tuples.addAll( item.toTuples() );
        }
    }
View Full Code Here

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

     * @throws ParseException if the syntax is invalid
     */
    public void setInput( String input ) throws ParseException
    {
        ACIItemParser parser = new ACIItemParser( null );
        ACIItem aciItem = parser.parse( input );

        if ( aciItem != null )
        {
            generalComposite.setIdentificationTag( aciItem.getIdentificationTag() );
            generalComposite.setPrecedence( aciItem.getPrecedence() );
            generalComposite.setAuthenticationLevel( aciItem.getAuthenticationLevel() );

            if ( aciItem instanceof ItemFirstACIItem )
            {
                ItemFirstACIItem itemFirstACI = ( ItemFirstACIItem ) aciItem;
                generalComposite.setItemFirst();
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.