This project has retired. For details please refer to its Attic page.
Source code
001// =================== DO NOT EDIT THIS FILE ====================
002// Generated by Modello 1.7,
003// any modifications will be overwritten.
004// ==============================================================
005
006package org.apache.archiva.configuration;
007
008/**
009 * configuration of a LDAP group to Archiva roles.
010 * 
011 * @version $Revision$ $Date$
012 */
013@SuppressWarnings( "all" )
014public class LdapGroupMapping
015    implements java.io.Serializable
016{
017
018      //--------------------------/
019     //- Class/Member Variables -/
020    //--------------------------/
021
022    /**
023     * LDAP Group.
024     */
025    private String group;
026
027    /**
028     * Field roleNames.
029     */
030    private java.util.List<String> roleNames;
031
032
033      //-----------/
034     //- Methods -/
035    //-----------/
036
037    /**
038     * Method addRoleName.
039     * 
040     * @param string
041     */
042    public void addRoleName( String string )
043    {
044        getRoleNames().add( string );
045    } //-- void addRoleName( String )
046
047    /**
048     * Get lDAP Group.
049     * 
050     * @return String
051     */
052    public String getGroup()
053    {
054        return this.group;
055    } //-- String getGroup()
056
057    /**
058     * Method getRoleNames.
059     * 
060     * @return List
061     */
062    public java.util.List<String> getRoleNames()
063    {
064        if ( this.roleNames == null )
065        {
066            this.roleNames = new java.util.ArrayList<String>();
067        }
068
069        return this.roleNames;
070    } //-- java.util.List<String> getRoleNames()
071
072    /**
073     * Method removeRoleName.
074     * 
075     * @param string
076     */
077    public void removeRoleName( String string )
078    {
079        getRoleNames().remove( string );
080    } //-- void removeRoleName( String )
081
082    /**
083     * Set lDAP Group.
084     * 
085     * @param group
086     */
087    public void setGroup( String group )
088    {
089        this.group = group;
090    } //-- void setGroup( String )
091
092    /**
093     * Set archiva roles.
094     * 
095     * @param roleNames
096     */
097    public void setRoleNames( java.util.List<String> roleNames )
098    {
099        this.roleNames = roleNames;
100    } //-- void setRoleNames( java.util.List )
101
102}