Author: tchemit Date: 2008-01-20 13:52:18 +0000 (Sun, 20 Jan 2008) New Revision: 265 Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean/ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean/ApplicationBean.java Log: structuration des beans Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean (from rev 246, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/beans) Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean/ApplicationBean.java (from rev 247, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/beans/ApplicationBean.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean/ApplicationBean.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/bean/ApplicationBean.java 2008-01-20 13:52:18 UTC (rev 265) @@ -0,0 +1,112 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* 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 General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.bean; + +import fr.cemagref.simexplorer.is.entities.metadata.MetaDataEntity; +import fr.cemagref.simexplorer.is.entities.metadata.Version; +import fr.cemagref.simexplorer.is.contenttype.ContentType; + +import java.util.Map; +import java.util.Date; + +/** + * Le bean qui contient le détail d'une application, ses métat données, ses + * versions. + * <p/> + * + * @author chemit + */ +public class ApplicationBean { + + protected MetaDataEntity data; + + protected Version[] versions; + + public MetaDataEntity getData() { + return data; + } + + public void setData(MetaDataEntity data) { + this.data = data; + } + + public Version[] getVersions() { + return versions; + } + + public void setVersions(Version[] versions) { + this.versions = versions; + } + + public Map<String, ContentType> getAttachments() { + return getData().getAttachments(); + } + + public Date getCreationDate() { + return getData().getCreationDate(); + } + + public String getDescription() { + return getData().getDescription(); + } + + public Map<String, String> getDescriptors() { + return getData().getDescriptors(); + } + + public String getType() { + return getData().getType(); + } + + public boolean isLatest() { + return getData().isLatest(); + } + + public String getHash() { + return getData().getHash(); + } + + public String getName() { + return getData().getName(); + } + + public String getParentDataUuid() { + return getData().getParentDataUuid(); + } + + public String getParentDataVersion() { + return getData().getParentDataVersion(); + } + + public String getParentVersionUuid() { + return getData().getParentVersionUuid(); + } + + public String getParentVersionVersion() { + return getData().getParentVersionVersion(); + } + + public String getUuid() { + return getData().getUuid(); + } + + public Version getVersion() { + return getData().getVersion(); + } +} \ No newline at end of file
participants (1)
-
tchemit@users.labs.libre-entreprise.org