| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you 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 org.apache.openmeetings.data.beans.user; |
| |
| import org.apache.openmeetings.persistence.beans.basic.OmTimeZone; |
| import org.apache.openmeetings.persistence.beans.user.Address; |
| import org.apache.openmeetings.persistence.beans.user.User; |
| |
| public class UserDTO { |
| private Long id; |
| private String firstname; |
| private String lastname; |
| private Long level_id; |
| private String login; |
| private Long language_id; |
| private Address adresses; |
| private OmTimeZone timeZone; |
| |
| public UserDTO(User u) { |
| id = u.getUser_id(); |
| firstname = u.getFirstname(); |
| lastname = u.getLastname(); |
| level_id = u.getLevel_id(); |
| login = u.getLogin(); |
| language_id = u.getLanguage_id(); |
| adresses = u.getAdresses(); |
| timeZone = u.getOmTimeZone(); |
| } |
| |
| public Long getId() { |
| return id; |
| } |
| |
| public void setId(Long id) { |
| this.id = id; |
| } |
| |
| public String getFirstname() { |
| return firstname; |
| } |
| |
| public void setFirstname(String firstname) { |
| this.firstname = firstname; |
| } |
| |
| public String getLastname() { |
| return lastname; |
| } |
| |
| public void setLastname(String lastname) { |
| this.lastname = lastname; |
| } |
| |
| public Long getLevel_id() { |
| return level_id; |
| } |
| |
| public void setLevel_id(Long level_id) { |
| this.level_id = level_id; |
| } |
| |
| public String getLogin() { |
| return login; |
| } |
| |
| public void setLogin(String login) { |
| this.login = login; |
| } |
| |
| public Long getLanguage_id() { |
| return language_id; |
| } |
| |
| public void setLanguage_id(Long language_id) { |
| this.language_id = language_id; |
| } |
| |
| public Address getAdresses() { |
| return adresses; |
| } |
| |
| public void setAdresses(Address adresses) { |
| this.adresses = adresses; |
| } |
| |
| public OmTimeZone getTimeZone() { |
| return timeZone; |
| } |
| |
| public void setTimeZone(OmTimeZone timeZone) { |
| this.timeZone = timeZone; |
| } |
| } |