001: /*
002: * $Id: org.eclipse.jdt.ui.prefs 5004 2006-03-17 20:47:08 -0800 (Fri, 17 Mar
003: * 2006) eelco12 $ $Revision: 5004 $ $Date: 2006-03-17 20:47:08 -0800 (Fri, 17
004: * Mar 2006) $
005: *
006: * ==============================================================================
007: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
008: * use this file except in compliance with the License. You may obtain a copy of
009: * the License at
010: *
011: * http://www.apache.org/licenses/LICENSE-2.0
012: *
013: * Unless required by applicable law or agreed to in writing, software
014: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
015: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
016: * License for the specific language governing permissions and limitations under
017: * the License.
018: */
019: package wicket.examples.wizard;
020:
021: import java.io.Serializable;
022: import java.util.HashSet;
023: import java.util.Set;
024:
025: /**
026: * Domain class for the new user wizard example.
027: *
028: * @author Eelco Hillenius
029: */
030: public final class User implements Serializable {
031: private String department = "";
032: private String email;
033:
034: private String firstName;
035: private String lastName;
036:
037: private Set roles = new HashSet();
038:
039: private String rolesSetName;
040:
041: private String userName;
042:
043: /**
044: * Gets departement.
045: *
046: * @return departement
047: */
048: public String getDepartment() {
049: return department;
050: }
051:
052: /**
053: * Gets email.
054: *
055: * @return email
056: */
057: public String getEmail() {
058: return email;
059: }
060:
061: /**
062: * Gets firstName.
063: *
064: * @return firstName
065: */
066: public String getFirstName() {
067: return firstName;
068: }
069:
070: /**
071: * Gets lastName.
072: *
073: * @return lastName
074: */
075: public String getLastName() {
076: return lastName;
077: }
078:
079: /**
080: * Gets roles.
081: *
082: * @return roles
083: */
084: public Set getRoles() {
085: return roles;
086: }
087:
088: /**
089: * Gets rolesSetName.
090: *
091: * @return rolesSetName
092: */
093: public String getRolesSetName() {
094: return rolesSetName;
095: }
096:
097: /**
098: * Gets userName.
099: *
100: * @return userName
101: */
102: public String getUserName() {
103: return userName;
104: }
105:
106: /**
107: * Sets departement.
108: *
109: * @param departement
110: * departement
111: */
112: public void setDepartment(String departement) {
113: if (departement == null) {
114: departement = "";
115: }
116: this .department = departement;
117: }
118:
119: /**
120: * Sets email.
121: *
122: * @param email
123: * email
124: */
125: public void setEmail(String email) {
126: this .email = email;
127: }
128:
129: /**
130: * Sets firstName.
131: *
132: * @param firstName
133: * firstName
134: */
135: public void setFirstName(String firstName) {
136: this .firstName = firstName;
137: }
138:
139: /**
140: * Sets lastName.
141: *
142: * @param lastName
143: * lastName
144: */
145: public void setLastName(String lastName) {
146: this .lastName = lastName;
147: }
148:
149: /**
150: * Sets roles.
151: *
152: * @param roles
153: * roles
154: */
155: public void setRoles(Set roles) {
156: this .roles = roles;
157: }
158:
159: /**
160: * Sets rolesSetName.
161: *
162: * @param rolesSetName
163: * rolesSetName
164: */
165: public void setRolesSetName(String rolesSetName) {
166: this .rolesSetName = rolesSetName;
167: }
168:
169: /**
170: * Sets userName.
171: *
172: * @param userName
173: * userName
174: */
175: public void setUserName(String userName) {
176: this.userName = userName;
177: }
178: }
|