View Javadoc

1   /*
2    * Copyright (c) 2004 UNINETT FAS
3    *
4    * This program is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU General Public License as published by the Free
6    * Software Foundation; either version 2 of the License, or (at your option)
7    * any later version.
8    *
9    * This program is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11   * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12   * more details.
13   *
14   * You should have received a copy of the GNU General Public License along with
15   * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16   * Place - Suite 330, Boston, MA 02111-1307, USA.
17   *
18   * $Id: BackendStatusUser.java,v 1.2 2005/02/01 12:08:02 indal Exp $
19   */
20  
21  package no.feide.moria.servlet;
22  
23  
24  /***
25   *
26   * @author Eva Indal
27   * @version $Revision: 1.2 $
28   *
29   * Stores attributes about a user.
30   */
31  
32  public class BackendStatusUser {
33  
34      private String name;
35      private String password; 
36      private String organization;
37      private String contact;
38      
39      /***
40       * Constructor.
41       * 
42       * @param name The user name
43       * @param password The user password
44       */
45      public BackendStatusUser() {
46         name = null;
47         password = null;
48         organization = null;
49         contact = null;
50      }
51      
52      /***
53       * Set the user name.
54       * @param name the user name
55       */
56      public void setName(final String name) {
57          this.name = name;
58      }
59      
60      /***
61       * Set the user password
62       * @param password the user password
63       */
64      public void setPassword(final String password) {
65          this.password = password;
66      }
67      
68      /***
69       *  Set the organization
70       * @param organization the organization
71       */
72      public void setOrganization(final String organization) {
73          this.organization = organization;
74      }
75      
76      /***
77       * Set the contact
78       * @param contact
79       */
80      public void setContact(final String contact) {
81          this.contact = contact;
82      }
83      
84      /***
85       * Returns the user name
86       * @return the user name
87       */
88      public String getName() {
89          return name;
90      }
91      
92      /***
93       * Returns the user password
94       * @return the user password
95       */
96      public String getPassword() {
97          return password;
98      }
99      
100     /***
101      * Returns the organization
102      * @return the organization
103      */
104     public String getOrganization() {
105         return organization;
106     }
107     
108     /***
109      * Returns the contact
110      * @return the contact
111      */
112     public String getContact() {
113         return contact;
114     }
115   }