This project has retired. For details please refer to its Attic page.
UserDatabase 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.redback.users.jdo;
7   
8   /**
9    * Class UserDatabase.
10   * 
11   * @version $Revision$ $Date$
12   */
13  public class UserDatabase
14      implements java.io.Serializable
15  {
16  
17        //--------------------------/
18       //- Class/Member Variables -/
19      //--------------------------/
20  
21      /**
22       * Field users.
23       */
24      private java.util.List/*<JdoUser>*/ users;
25  
26      /**
27       * Field modelEncoding.
28       */
29      private String modelEncoding = "UTF-8";
30  
31  
32        //-----------/
33       //- Methods -/
34      //-----------/
35  
36      /**
37       * Method addUser.
38       * 
39       * @param jdoUser
40       */
41      public void addUser( JdoUser jdoUser )
42      {
43          getUsers().add( jdoUser );
44      } //-- void addUser( JdoUser )
45  
46      /**
47       * Get the modelEncoding field.
48       * 
49       * @return String
50       */
51      public String getModelEncoding()
52      {
53          return this.modelEncoding;
54      } //-- String getModelEncoding()
55  
56      /**
57       * Method getUsers.
58       * 
59       * @return List
60       */
61      public java.util.List/*<JdoUser>*/ getUsers()
62      {
63          if ( this.users == null )
64          {
65              this.users = new java.util.ArrayList/*<JdoUser>*/();
66          }
67  
68          return this.users;
69      } //-- java.util.List/*<JdoUser>*/ getUsers()
70  
71      /**
72       * Method removeUser.
73       * 
74       * @param jdoUser
75       */
76      public void removeUser( JdoUser jdoUser )
77      {
78          getUsers().remove( jdoUser );
79      } //-- void removeUser( JdoUser )
80  
81      /**
82       * Set the modelEncoding field.
83       * 
84       * @param modelEncoding
85       */
86      public void setModelEncoding( String modelEncoding )
87      {
88          this.modelEncoding = modelEncoding;
89      } //-- void setModelEncoding( String )
90  
91      /**
92       * Set the users field.
93       * 
94       * @param users
95       */
96      public void setUsers( java.util.List/*<JdoUser>*/ users )
97      {
98          this.users = users;
99      } //-- void setUsers( java.util.List )
100 
101 }