/** * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface. * Copyright (C) 2012 Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior * * This program 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 . */ /******************************************************************************\ * * This product was developed by * * SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), * * a government company established under Brazilian law (5.615/70), * at Department of Development of Porto Alegre. * \******************************************************************************/ package serpro.mailarchiver.service.dto; import javax.xml.bind.annotation.XmlRootElement; import serpro.mailarchiver.session.Session; @XmlRootElement(name="Session") public class TSession implements Identifiable { private String id; @Override public String getId() { return id; } @Override public void setId(String id) { this.id = id; } //-------------------------------------------------------------------------- private long permissions; public long getPermissions() { return permissions; } public void setPermissions(long permissions) { this.permissions = permissions; } //-------------------------------------------------------------------------- private long expiration; public long getExpiration() { return expiration; } public void setExpiration(long expiration) { this.expiration = expiration; } //========================================================================== public TSession() {} public TSession(Session session) { id = session.getSessionId(); } }