This project has retired. For details please refer to its Attic page.
LdapGroupMapping xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * configuration of a LDAP group to Archiva roles.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class LdapGroupMapping
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * LDAP Group.
24       */
25      private String group;
26  
27      /**
28       * Field roleNames.
29       */
30      private java.util.List<String> roleNames;
31  
32  
33        //-----------/
34       //- Methods -/
35      //-----------/
36  
37      /**
38       * Method addRoleName.
39       * 
40       * @param string
41       */
42      public void addRoleName( String string )
43      {
44          getRoleNames().add( string );
45      } //-- void addRoleName( String )
46  
47      /**
48       * Get lDAP Group.
49       * 
50       * @return String
51       */
52      public String getGroup()
53      {
54          return this.group;
55      } //-- String getGroup()
56  
57      /**
58       * Method getRoleNames.
59       * 
60       * @return List
61       */
62      public java.util.List<String> getRoleNames()
63      {
64          if ( this.roleNames == null )
65          {
66              this.roleNames = new java.util.ArrayList<String>();
67          }
68  
69          return this.roleNames;
70      } //-- java.util.List<String> getRoleNames()
71  
72      /**
73       * Method removeRoleName.
74       * 
75       * @param string
76       */
77      public void removeRoleName( String string )
78      {
79          getRoleNames().remove( string );
80      } //-- void removeRoleName( String )
81  
82      /**
83       * Set lDAP Group.
84       * 
85       * @param group
86       */
87      public void setGroup( String group )
88      {
89          this.group = group;
90      } //-- void setGroup( String )
91  
92      /**
93       * Set archiva roles.
94       * 
95       * @param roleNames
96       */
97      public void setRoleNames( java.util.List<String> roleNames )
98      {
99          this.roleNames = roleNames;
100     } //-- void setRoleNames( java.util.List )
101 
102 }