Package org.apache.directory.api.ldap.aci

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


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

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


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

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

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

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

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

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

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

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

            + "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

            + "itemOrUserFirst userFirst:  { userClasses {  allUsers  , name { \"ou=people,cn=ersin\" }, "
            + "subtree {{ base \"ou=system\" }, { base \"ou=ORGANIZATIONUNIT\"," + "minimum  1, maximum   2 } } }  , "
            + "userPermissions { { protectedItems{ entry  , maxImmSub 5 "
            + " }  , grantsAndDenials { grantBrowse } } } }  }   ";

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

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

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

            + "precedence 1, protectedItems { attributeType { userPassword } }, grantsAndDenials "
            + "{ denyRead, denyReturnDN, denyBrowse } }, { precedence 2, protectedItems "
            + "{ entry, allUserAttributeTypesAndValues }, grantsAndDenials "
            + "{ grantReturnDN, grantRead, grantBrowse } } } } }";

        ACIItem item = parser.parse( spec );
        checkItemToString( spec, item );

        UserFirstACIItem userFirstItem = ( UserFirstACIItem ) item;
        int aciPrecedence = userFirstItem.getPrecedence();
        assertEquals( 14, aciPrecedence );
View Full Code Here

     * @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

Related Classes of org.apache.directory.api.ldap.aci.ACIItem

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.