001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.gwt.shared;
029
030import org.opencms.util.CmsUUID;
031
032import com.google.gwt.user.client.rpc.IsSerializable;
033
034/**
035 * A bean representing the data to be displayed in the history dialog for a single resource version.<p>
036 */
037public class CmsHistoryResourceBean implements IsSerializable {
038
039    /** The description. */
040    private String m_description;
041
042    /** The modification date. */
043    private CmsClientDateBean m_modificationDate;
044
045    /** The publish date. */
046    private CmsClientDateBean m_publishDate;
047
048    /** The root path.<p> */
049    private String m_rootPath;
050
051    /** The size. */
052    private int m_size;
053
054    /** The structure id. */
055    private CmsUUID m_structureId;
056
057    /** The title. */
058    private String m_title;
059
060    /**
061     * The user who last modified the resource.<p>
062     */
063    private String m_userLastModified;
064
065    /** The version. */
066    private CmsHistoryVersion m_version;
067
068    /**
069     * Creates a new instance.<p>
070     */
071    public CmsHistoryResourceBean() {
072
073    }
074
075    /**
076     * Returns the description.<p>
077     *
078     * @return the description
079     */
080    public String getDescription() {
081
082        return m_description;
083    }
084
085    /**
086     * Gets the modification date.<p>
087     *
088     * @return the modification date
089     */
090    public CmsClientDateBean getModificationDate() {
091
092        return m_modificationDate;
093    }
094
095    /**
096     * Gets the publish date.<p>
097     *
098     * @return the publish date
099     */
100    public CmsClientDateBean getPublishDate() {
101
102        return m_publishDate;
103    }
104
105    /**
106     * Returns the rootPath.<p>
107     *
108     * @return the rootPath
109     */
110    public String getRootPath() {
111
112        return m_rootPath;
113    }
114
115    /**
116     * Gets the size.<p>
117     *
118     * @return the size
119     */
120    public int getSize() {
121
122        return m_size;
123    }
124
125    /**
126     * Returns the structureId.<p>
127     *
128     * @return the structureId
129     */
130    public CmsUUID getStructureId() {
131
132        return m_structureId;
133    }
134
135    /**
136     * Returns the title.<p>
137     *
138     * @return the title
139     */
140    public String getTitle() {
141
142        return m_title;
143    }
144
145    /**
146     * Gets the user who last modified the history version.<p>+
147     *
148     * @return the user who last modified the resource
149     */
150    public String getUserLastModified() {
151
152        return m_userLastModified;
153    }
154
155    /**
156     * Returns the version.<p>
157     *
158     * @return the version
159     */
160    public CmsHistoryVersion getVersion() {
161
162        return m_version;
163    }
164
165    /**
166     * Sets the modification date.<p>
167     *
168     * @param formatDate the modification date
169     */
170    public void setDateLastModified(CmsClientDateBean formatDate) {
171
172        m_modificationDate = formatDate;
173    }
174
175    /**
176     * Sets the publish date.<p>
177     *
178     * @param formatDate the publish date
179     */
180    public void setDatePublished(CmsClientDateBean formatDate) {
181
182        m_publishDate = formatDate;
183    }
184
185    /**
186     * Sets the description.<p>
187     *
188     * @param description the description
189     */
190    public void setDescription(String description) {
191
192        m_description = description;
193    }
194
195    /**
196     * Sets the rootPath.<p>
197     *
198     * @param rootPath the rootPath to set
199     */
200    public void setRootPath(String rootPath) {
201
202        m_rootPath = rootPath;
203    }
204
205    /**
206     * Sets the size.<p>
207     *
208     * @param size the size
209     */
210    public void setSize(int size) {
211
212        m_size = size;
213    }
214
215    /**
216     * Sets the structure id
217     * @param structureId the structure id to set
218     */
219    public void setStructureId(CmsUUID structureId) {
220
221        m_structureId = structureId;
222    }
223
224    /**
225     * Sets the title.<p>
226     * @param title the title to set
227     */
228    public void setTitle(String title) {
229
230        m_title = title;
231
232    }
233
234    /**
235     * Sets the name of the user who last modified the resource.<p>
236     *
237     * @param userName the name of the user
238     */
239    public void setUserLastModified(String userName) {
240
241        m_userLastModified = userName;
242    }
243
244    /**
245     * Sets the version.<p>
246     *
247     * @param version the version to set
248     */
249    public void setVersion(CmsHistoryVersion version) {
250
251        m_version = version;
252    }
253
254}