/* * Copyright 2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package net.noday.core.model; import java.io.Serializable; import java.util.Date; import java.util.List; import net.noday.core.enumeration.Gender; /** * cat User * * @author <a href="http://www.noday.net">Noday</a> * @version , 2012-10-21 * @since */ public class User implements Serializable { /** * */ private static final long serialVersionUID = 1L; private Long id; private String email; private String password; private String plainPassword; private String name; private Gender sex; private String organization; private long visits; private long downloads; private Date registTime; private String registIp; private Date lastTime; private String lastIp; private int status; private String salt; private String role; private List<String> roles; private List<String> permissions; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getPlainPassword() { return plainPassword; } public void setPlainPassword(String plainPassword) { this.plainPassword = plainPassword; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Gender getSex() { return sex; } public void setSex(Gender sex) { this.sex = sex; } public String getOrganization() { return organization; } public void setOrganization(String organization) { this.organization = organization; } public long getVisits() { return visits; } public void setVisits(long visits) { this.visits = visits; } public long getDownloads() { return downloads; } public void setDownloads(long downloads) { this.downloads = downloads; } public Date getRegistTime() { return registTime; } public void setRegistTime(Date registTime) { this.registTime = registTime; } public String getRegistIp() { return registIp; } public void setRegistIp(String registIp) { this.registIp = registIp; } public Date getLastTime() { return lastTime; } public void setLastTime(Date lastTime) { this.lastTime = lastTime; } public String getLastIp() { return lastIp; } public void setLastIp(String lastIp) { this.lastIp = lastIp; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getSalt() { return salt; } public void setSalt(String salt) { this.salt = salt; } public List<String> getRoles() { return roles; } public void setRoles(List<String> roles) { this.roles = roles; } public List<String> getPermissions() { return permissions; } public void setPermissions(List<String> permissions) { this.permissions = permissions; } }