Package org.apache.archiva.configuration

Examples of org.apache.archiva.configuration.LdapGroupMapping


        value.setLdapConfiguration( ldapConfiguration );
        java.util.List ldapGroupMappings = new java.util.ArrayList/*<LdapGroupMapping>*/();
        List ldapGroupMappingsSubsets = registry.getSubsetList( prefix + "ldapGroupMappings.ldapGroupMapping" );
        for ( Iterator i = ldapGroupMappingsSubsets.iterator(); i.hasNext(); )
        {
            LdapGroupMapping v = readLdapGroupMapping( "", (Registry) i.next() );
            ldapGroupMappings.add( v );
        }
        value.setLdapGroupMappings( ldapGroupMappings );
        java.util.Map configurationProperties = registry.getProperties( prefix + "configurationProperties" );
        value.setConfigurationProperties( configurationProperties );
View Full Code Here


        return value;
    }
   
    private LdapGroupMapping readLdapGroupMapping( String prefix, Registry registry )
    {
        LdapGroupMapping value = new LdapGroupMapping();

    //String group = registry.getString( prefix + "group", value.getGroup() );

    List<String> groupList = registry.getList( prefix + "group" );
    String group = value.getGroup();
    if (groupList != null && !groupList.isEmpty() )
    {
        StringBuilder sb = new StringBuilder(  );
        for (int i = 0,size = groupList.size();i<size;i++)
        {
            sb.append( groupList.get( i ) );
            if (i<size - 1)
            {
                sb.append( ',' );
            }
        }
        group = sb.toString();
    }

        value.setGroup( group );
        java.util.List roleNames = new java.util.ArrayList/*<String>*/();
        roleNames.addAll( registry.getList( prefix + "roleNames.roleName" ) );
        value.setRoleNames( roleNames );

        return value;
    }
View Full Code Here

                int count = 0;
                for ( Iterator iter = value.getLdapGroupMappings().iterator(); iter.hasNext(); count++ )
                {
                    String name = "ldapGroupMappings.ldapGroupMapping(" + count + ")";
                    LdapGroupMapping o = ( LdapGroupMapping ) iter.next();
                    writeLdapGroupMapping( prefix + name + ".", o, registry );
                }
            }
            if ( value.getConfigurationProperties() != null && value.getConfigurationProperties().size() > 0
)
View Full Code Here

        value.setLdapConfiguration( ldapConfiguration );
        java.util.List ldapGroupMappings = new java.util.ArrayList/*<LdapGroupMapping>*/();
        List ldapGroupMappingsSubsets = registry.getSubsetList( prefix + "ldapGroupMappings.ldapGroupMapping" );
        for ( Iterator i = ldapGroupMappingsSubsets.iterator(); i.hasNext(); )
        {
            LdapGroupMapping v = readLdapGroupMapping( "", (Registry) i.next() );
            ldapGroupMappings.add( v );
        }
        value.setLdapGroupMappings( ldapGroupMappings );
        java.util.Map configurationProperties = registry.getProperties( prefix + "configurationProperties" );
        value.setConfigurationProperties( configurationProperties );
View Full Code Here

        return value;
    }
   
    private LdapGroupMapping readLdapGroupMapping( String prefix, Registry registry )
    {
        LdapGroupMapping value = new LdapGroupMapping();

    //String group = registry.getString( prefix + "group", value.getGroup() );

    List<String> groupList = registry.getList( prefix + "group" );
    String group = value.getGroup();
    if (groupList != null && !groupList.isEmpty() )
    {
        StringBuilder sb = new StringBuilder(  );
        for (int i = 0,size = groupList.size();i<size;i++)
        {
            sb.append( groupList.get( i ) );
            if (i<size - 1)
            {
                sb.append( ',' );
            }
        }
        group = sb.toString();
    }

        value.setGroup( group );
        java.util.List roleNames = new java.util.ArrayList/*<String>*/();
        roleNames.addAll( registry.getList( prefix + "roleNames.roleName" ) );
        value.setRoleNames( roleNames );

        return value;
    }
View Full Code Here

                int count = 0;
                for ( Iterator iter = value.getLdapGroupMappings().iterator(); iter.hasNext(); count++ )
                {
                    String name = "ldapGroupMappings.ldapGroupMapping(" + count + ")";
                    LdapGroupMapping o = ( LdapGroupMapping ) iter.next();
                    writeLdapGroupMapping( prefix + name + ".", o, registry );
                }
            }
            if ( value.getConfigurationProperties() != null && value.getConfigurationProperties().size() > 0
)
View Full Code Here

TOP

Related Classes of org.apache.archiva.configuration.LdapGroupMapping

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.