1
|
/**
|
2
|
* '$RCSfile$'
|
3
|
* Copyright: 2005 University of New Mexico and the
|
4
|
* Regents of the University of California and the
|
5
|
* National Center for Ecological Analysis and Synthesis
|
6
|
* '$Author: costa $'
|
7
|
* '$Date: 2006-06-14 08:31:06 -0700 (Wed, 14 Jun 2006) $'
|
8
|
* '$Revision: 3006 $'
|
9
|
*
|
10
|
* This program is free software; you can redistribute it and/or modify
|
11
|
* it under the terms of the GNU General Public License as published by
|
12
|
* the Free Software Foundation; either version 2 of the License, or
|
13
|
* (at your option) any later version.
|
14
|
*
|
15
|
* This program is distributed in the hope that it will be useful,
|
16
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
* GNU General Public License for more details.
|
19
|
*
|
20
|
* You should have received a copy of the GNU General Public License
|
21
|
* along with this program; if not, write to the Free Software
|
22
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23
|
*/
|
24
|
|
25
|
package edu.ucsb.nceas.metacat.advancedsearch;
|
26
|
|
27
|
import java.io.Serializable;
|
28
|
|
29
|
/**
|
30
|
* @author dcosta
|
31
|
*
|
32
|
* Bean to store login form properties and values.
|
33
|
*
|
34
|
*/
|
35
|
public class LoginBean implements Serializable {
|
36
|
|
37
|
static final long serialVersionUID = 0; // Needed for Eclipse warning.
|
38
|
|
39
|
private String organization; /* LDAP organization, e.g. "LTER" */
|
40
|
private String password; /* login password string */
|
41
|
private String username; /* login username string */
|
42
|
|
43
|
/**
|
44
|
* @return Returns the organization.
|
45
|
*/
|
46
|
public String getOrganization() {
|
47
|
return organization;
|
48
|
}
|
49
|
|
50
|
|
51
|
/**
|
52
|
* @param organization The organization to set.
|
53
|
*/
|
54
|
public void setOrganization(final String organization) {
|
55
|
this.organization = organization;
|
56
|
}
|
57
|
|
58
|
|
59
|
/**
|
60
|
* @return Returns the password.
|
61
|
*/
|
62
|
public String getPassword() {
|
63
|
return password;
|
64
|
}
|
65
|
|
66
|
|
67
|
/**
|
68
|
* @param password The password to set.
|
69
|
*/
|
70
|
public void setPassword(final String password) {
|
71
|
this.password = password;
|
72
|
}
|
73
|
|
74
|
|
75
|
/**
|
76
|
* @return Returns the username.
|
77
|
*/
|
78
|
public String getUsername() {
|
79
|
return username;
|
80
|
}
|
81
|
|
82
|
|
83
|
/**
|
84
|
* @param username The username to set.
|
85
|
*/
|
86
|
public void setUsername(final String username) {
|
87
|
this.username = username;
|
88
|
}
|
89
|
|
90
|
}
|
91
|
|