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

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


                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
                userFirstUserClassesComposite.setUserClasses( userFirstACI.getUserClasses() );
                userFirstUserPermissionsComposite.setUserPermissions( userFirstACI.getUserPermission() );
            }
        }

        // force userFirst/itemFirst switch
        widgetModified( null );
View Full Code Here


        ACIItem aciItem = null;
        if ( generalComposite.isUserFirst() )
        {
            Collection<UserClass> userClasses = userFirstUserClassesComposite.getUserClasses();
            Collection<UserPermission> userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
            aciItem = new UserFirstACIItem( identificationTag, precedence, authenticationLevel, userClasses,
                userPermissions );
        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection<ProtectedItem> protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
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 );
        UserFirstACIItem aci = null;
        try
        {
            aci = ( UserFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {
            String msg = NLS.bind(
                Messages.getString( "UserClassWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        UserClass userClass = ( UserClass ) aci.getUserClasses().iterator().next();
        return userClass;
    }
View Full Code Here

                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
                userFirstUserClassesComposite.setUserClasses( userFirstACI.getUserClasses() );
                userFirstUserPermissionsComposite.setUserPermissions( userFirstACI.getUserPermission() );
            }
        }

        // force userFirst/itemFirst switch
        widgetModified( null );
View Full Code Here

        ACIItem aciItem = null;
        if ( generalComposite.isUserFirst() )
        {
            Collection userClasses = userFirstUserClassesComposite.getUserClasses();
            Collection userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
            aciItem = new UserFirstACIItem( identificationTag, precedence, authenticationLevel, userClasses,
                userPermissions );
        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
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 );
        UserFirstACIItem aci = null;
        try
        {
            aci = ( UserFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {
            String msg = NLS.bind(
                Messages.getString( "UserClassWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        UserClass userClass = ( UserClass ) aci.getUserClasses().iterator().next();
        return userClass;
    }
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 );
        UserFirstACIItem aci = null;
        try
        {
            aci = ( UserFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {
            String msg = NLS.bind(
                Messages.getString( "UserClassWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        UserClass userClass = ( UserClass ) aci.getUserClasses().iterator().next();
        return userClass;
    }
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 );
        UserFirstACIItem aci = null;
        try
        {
            aci = ( UserFirstACIItem ) parser.parse( spec );
        }
        catch ( ParseException e )
        {
            String msg = NLS.bind(
                Messages.getString( "UserClassWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
            throw new ParseException( msg, 0 );
        }
        UserClass userClass = ( UserClass ) aci.getUserClasses().iterator().next();
        return userClass;
    }
View Full Code Here

                itemFirstProtectedItemsComposite.setProtectedItems( itemFirstACI.getProtectedItems() );
                itemFirstItemPermissionsComposite.setItemPermissions( itemFirstACI.getItemPermissions() );
            }
            else if ( aciItem instanceof UserFirstACIItem )
            {
                UserFirstACIItem userFirstACI = ( UserFirstACIItem ) aciItem;
                generalComposite.setUserFirst();
                userFirstUserClassesComposite.setUserClasses( userFirstACI.getUserClasses() );
                userFirstUserPermissionsComposite.setUserPermissions( userFirstACI.getUserPermission() );
            }
        }

        // force userFirst/itemFirst switch
        widgetModified( null );
View Full Code Here

        ACIItem aciItem = null;
        if ( generalComposite.isUserFirst() )
        {
            Collection userClasses = userFirstUserClassesComposite.getUserClasses();
            Collection userPermissions = userFirstUserPermissionsComposite.getUserPermissions();
            aciItem = new UserFirstACIItem( identificationTag, precedence, authenticationLevel, userClasses,
                userPermissions );
        }
        else if ( generalComposite.isItemFirst() )
        {
            Collection protectedItems = itemFirstProtectedItemsComposite.getProtectedItems();
View Full Code Here

TOP

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

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.