/*
* Tanaguru - Automated webpage assessment
* Copyright (C) 2008-2015 Tanaguru.org
*
* This file is part of Tanaguru.
*
* Tanaguru is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Contact us by mail: tanaguru AT tanaguru DOT org
*/
package org.tanaguru.webapp.command;
import java.io.Serializable;
/**
*
* @author jkowalczyk
*/
public class CreateUserCommand implements Serializable {
private static final long serialVersionUID = 8858915339230923340L;
private static final String HTTP_PREFIX="http://";
/**
* the site url of the subscriber
*/
private String siteUrl = HTTP_PREFIX;
public String getSiteUrl() {
return siteUrl;
}
public void setSiteUrl(String siteUrl) {
this.siteUrl = siteUrl;
}
/**
* The email of the subscriber
*/
private String email;
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
* the last name of the subscriber
*/
private String lastName;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
* The first name of the subscriber
*/
private String firstName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
* The password of the subscriber
*/
private String phoneNumber;
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
/**
* The password of the subscriber
*/
private String password;
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
/**
* The password of the subscriber
*/
private boolean admin = false;
public boolean getAdmin() {
return admin;
}
public void setAdmin(boolean admin) {
this.admin = admin;
}
/**
* The password of the subscriber
*/
private boolean activated;
public boolean getActivated() {
return activated;
}
public void setActivated(boolean activated) {
this.activated = activated;
}
/**
* The retyped password of the subscriber
*/
private String confirmPassword;
public String getConfirmPassword() {
return confirmPassword;
}
public void setConfirmPassword(String confirmPassword) {
this.confirmPassword = confirmPassword;
}
/**
* General error message in case of invalid form
*/
private String generalErrorMsg;
public String getGeneralErrorMsg() {
return generalErrorMsg;
}
/**
* Default constructor
*/
public CreateUserCommand(){
}
}