Package org.apache.directory.shared.ldap.aci

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


            generalComposite.setPrecedence( aciItem.getPrecedence() );
            generalComposite.setAuthenticationLevel( aciItem.getAuthenticationLevel() );

            if ( aciItem instanceof ItemFirstACIItem )
            {
                ItemFirstACIItem itemFirstACI = ( ItemFirstACIItem ) aciItem;
                generalComposite.setItemFirst();
                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
View Full Code Here


        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection<ProtectedItem> protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
            Collection<ItemPermission> itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
            aciItem = new ItemFirstACIItem( identificationTag, precedence, authenticationLevel, protectedItems,
                itemPermissions );
        }
        else
        {
            aciItem = null;
View Full Code Here

        String flatValue = getFlatValue();
        String spec = DUMMY;
        spec = spec.replaceAll( "#identifier#", getIdentifier() ); //$NON-NLS-1$
        spec = spec.replaceAll( "#values#", flatValue ); //$NON-NLS-1$
        ACIItemParser parser = new ACIItemParser( null );
        ItemFirstACIItem aci = null;
        try
        {
            aci = ( ItemFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {

            String msg = NLS
                .bind(
                    Messages.getString( "ProtectedItemWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        ProtectedItem item = aci.getProtectedItems().iterator().next();
        return item;
    }
View Full Code Here

            generalComposite.setPrecedence( aciItem.getPrecedence() );
            generalComposite.setAuthenticationLevel( aciItem.getAuthenticationLevel() );

            if ( aciItem instanceof ItemFirstACIItem )
            {
                ItemFirstACIItem itemFirstACI = ( ItemFirstACIItem ) aciItem;
                generalComposite.setItemFirst();
                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
View Full Code Here

        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
            Collection itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
            aciItem = new ItemFirstACIItem( identificationTag, precedence, authenticationLevel, protectedItems,
                itemPermissions );
        }
        else
        {
            aciItem = null;
View Full Code Here

        String flatValue = getFlatValue();
        String spec = DUMMY;
        spec = spec.replaceAll( "#identifier#", getIdentifier() ); //$NON-NLS-1$
        spec = spec.replaceAll( "#values#", flatValue ); //$NON-NLS-1$
        ACIItemParser parser = new ACIItemParser( null );
        ItemFirstACIItem aci = null;
        try
        {
            aci = ( ItemFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {

            String msg = NLS
                .bind(
                    Messages.getString( "ProtectedItemWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        ProtectedItem item = ( ProtectedItem ) aci.getProtectedItems().iterator().next();
        return item;
    }
View Full Code Here

            generalComposite.setPrecedence( aciItem.getPrecedence() );
            generalComposite.setAuthenticationLevel( aciItem.getAuthenticationLevel() );

            if ( aciItem instanceof ItemFirstACIItem )
            {
                ItemFirstACIItem itemFirstACI = ( ItemFirstACIItem ) aciItem;
                generalComposite.setItemFirst();
                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
View Full Code Here

        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
            Collection itemPermissions = itemFirstItemPermissionsComposite.getItemPermissions();
            aciItem = new ItemFirstACIItem( identificationTag, precedence, authenticationLevel, protectedItems,
                itemPermissions );
        }
        else
        {
            aciItem = null;
View Full Code Here

        String flatValue = getFlatValue();
        String spec = DUMMY;
        spec = spec.replaceAll( "#identifier#", getIdentifier() ); //$NON-NLS-1$
        spec = spec.replaceAll( "#values#", flatValue ); //$NON-NLS-1$
        ACIItemParser parser = new ACIItemParser( null );
        ItemFirstACIItem aci = null;
        try
        {
            aci = ( ItemFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {

            String msg = NLS
                .bind(
                    Messages.getString( "ProtectedItemWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        ProtectedItem item = ( ProtectedItem ) aci.getProtectedItems().iterator().next();
        return item;
    }
View Full Code Here

            generalComposite.setPrecedence( aciItem.getPrecedence() );
            generalComposite.setAuthenticationLevel( aciItem.getAuthenticationLevel() );

            if ( aciItem instanceof ItemFirstACIItem )
            {
                ItemFirstACIItem itemFirstACI = ( ItemFirstACIItem ) aciItem;
                generalComposite.setItemFirst();
                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.aci.ItemFirstACIItem

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.