View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.service.api.action.application;
20  
21  import com.hack23.cia.model.internal.application.user.impl.UserType;
22  import com.hack23.cia.service.api.action.common.AbstractRequest;
23  
24  
25  /**
26   * The Class RegisterUserRequest.
27   */
28  public final class RegisterUserRequest extends AbstractRequest {
29  
30  	/** The Constant serialVersionUID. */
31  	private static final long serialVersionUID = 1L;
32  
33      /** The session id. */
34      private String sessionId;
35  
36      /** The country. */
37      private String country;
38  
39      /** The username. */
40      private String username;
41  
42      /** The email. */
43      private String email;
44  
45      /** The userpassword. */
46      private String userpassword;
47  
48      /** The user type. */
49      private UserType userType;
50  
51  	/**
52  	 * Instantiates a new register user request.
53  	 */
54  	public RegisterUserRequest() {
55  		super();
56  	}
57  
58  	/**
59  	 * Gets the country.
60  	 *
61  	 * @return the country
62  	 */
63  	public String getCountry() {
64  		return country;
65  	}
66  
67  	/**
68  	 * Sets the country.
69  	 *
70  	 * @param country
71  	 *            the new country
72  	 */
73  	public void setCountry(final String country) {
74  		this.country = country;
75  	}
76  
77  	/**
78  	 * Gets the username.
79  	 *
80  	 * @return the username
81  	 */
82  	public String getUsername() {
83  		return username;
84  	}
85  
86  	/**
87  	 * Sets the username.
88  	 *
89  	 * @param username
90  	 *            the new username
91  	 */
92  	public void setUsername(final String username) {
93  		this.username = username;
94  	}
95  
96  	/**
97  	 * Gets the email.
98  	 *
99  	 * @return the email
100 	 */
101 	public String getEmail() {
102 		return email;
103 	}
104 
105 	/**
106 	 * Sets the email.
107 	 *
108 	 * @param email
109 	 *            the new email
110 	 */
111 	public void setEmail(final String email) {
112 		this.email = email;
113 	}
114 
115 	/**
116 	 * Gets the userpassword.
117 	 *
118 	 * @return the userpassword
119 	 */
120 	public String getUserpassword() {
121 		return userpassword;
122 	}
123 
124 	/**
125 	 * Sets the userpassword.
126 	 *
127 	 * @param userpassword
128 	 *            the new userpassword
129 	 */
130 	public void setUserpassword(final String userpassword) {
131 		this.userpassword = userpassword;
132 	}
133 
134 	/**
135 	 * Gets the user type.
136 	 *
137 	 * @return the user type
138 	 */
139 	public UserType getUserType() {
140 		return userType;
141 	}
142 
143 	/**
144 	 * Sets the user type.
145 	 *
146 	 * @param userType
147 	 *            the new user type
148 	 */
149 	public void setUserType(final UserType userType) {
150 		this.userType = userType;
151 	}
152 
153 	/**
154 	 * Gets the session id.
155 	 *
156 	 * @return the session id
157 	 */
158 	public String getSessionId() {
159 		return sessionId;
160 	}
161 
162 	/**
163 	 * Sets the session id.
164 	 *
165 	 * @param sessionId
166 	 *            the new session id
167 	 */
168 	public void setSessionId(final String sessionId) {
169 		this.sessionId = sessionId;
170 	}
171 
172 
173 }