/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com
*
*/
package org.hoteia.qalingo.core.pojo.user;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserPojo {
private Long id;
private String code;
private int version;
private String login;
private String title;
private String firstname;
private String lastname;
private String password;
private String defaultLocale;
private String birthday;
private boolean active;
private String address1;
private String address2;
private String addressAdditionalInformation;
private String postalCode;
private String city;
private String stateCode;
private String areaCode;
private String countryCode;
private String countryLabel;
private String legalGuid;
private String email;
private String phone;
private String mobile;
private String fax;
private List<UserConnectionLogPojo> connectionLogs = new ArrayList<UserConnectionLogPojo>();
private List<UserGroupPojo> userGroups = new ArrayList<UserGroupPojo>();
private Date dateCreate;
private Date dateUpdate;
public UserPojo() {}
public Long getId() {
return id;
}
public void setId(final Long id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public int getVersion() {
return version;
}
public void setVersion(final int version) {
this.version = version;
}
public String getLogin() {
return login;
}
public void setLogin(final String login) {
this.login = login;
}
public String getTitle() {
return title;
}
public void setTitle(final String title) {
this.title = title;
}
public String getFirstname() {
return firstname;
}
public void setFirstname(final String firstname) {
this.firstname = firstname;
}
public String getLastname() {
return lastname;
}
public void setLastname(final String lastname) {
this.lastname = lastname;
}
public String getFullName() {
return lastname + " " + firstname;
}
public String getPassword() {
return password;
}
public void setPassword(final String password) {
this.password = password;
}
public String getDefaultLocale() {
return defaultLocale;
}
public void setDefaultLocale(final String defaultLocale) {
this.defaultLocale = defaultLocale;
}
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public boolean isActive() {
return active;
}
public void setActive(final boolean active) {
this.active = active;
}
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
this.address2 = address2;
}
public String getAddressAdditionalInformation() {
return addressAdditionalInformation;
}
public void setAddressAdditionalInformation(String addressAdditionalInformation) {
this.addressAdditionalInformation = addressAdditionalInformation;
}
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getStateCode() {
return stateCode;
}
public void setStateCode(String stateCode) {
this.stateCode = stateCode;
}
public String getAreaCode() {
return areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getCountryLabel() {
return countryLabel;
}
public void setCountryLabel(String countryLabel) {
this.countryLabel = countryLabel;
}
public String getLegalGuid() {
return legalGuid;
}
public void setLegalGuid(String legalGuid) {
this.legalGuid = legalGuid;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getFax() {
return fax;
}
public void setFax(String fax) {
this.fax = fax;
}
public List<UserConnectionLogPojo> getConnectionLogs() {
return connectionLogs;
}
public void setConnectionLogs(final List<UserConnectionLogPojo> connectionLogs) {
this.connectionLogs = connectionLogs;
}
public List<UserGroupPojo> getUserGroups() {
return userGroups;
}
public void setUserGroups(final List<UserGroupPojo> userGroups) {
this.userGroups = userGroups;
}
public Date getDateCreate() {
return dateCreate;
}
public void setDateCreate(final Date dateCreate) {
this.dateCreate = dateCreate;
}
public Date getDateUpdate() {
return dateUpdate;
}
public void setDateUpdate(final Date dateUpdate) {
this.dateUpdate = dateUpdate;
}
}