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.ugc.shared;
029
030import org.opencms.util.CmsUUID;
031
032import java.util.Map;
033
034import com.google.gwt.user.client.rpc.IsSerializable;
035
036/**
037 * The form content information bean.<p>
038 */
039public class CmsUgcContent implements IsSerializable {
040
041    /** The edit session id. */
042    private CmsUUID m_sessionId;
043
044    /** The content values. */
045    private Map<String, String> m_contentValues;
046
047    /** The edited resource structure id. */
048    private CmsUUID m_strucureId;
049
050    /** The edited resource site path. */
051    private String m_sitePath;
052
053    /** The resource type name. */
054    private String m_resourceType;
055
056    /**
057     * Returns the content values.<p>
058     *
059     * @return the content values
060     */
061    public Map<String, String> getContentValues() {
062
063        return m_contentValues;
064    }
065
066    /**
067     * Returns  the resource type name.<p>
068     *
069     * @return the resource type name
070     */
071    public String getResourceType() {
072
073        return m_resourceType;
074    }
075
076    /**
077     * Returns the editing session id.<p>
078     *
079     * @return the session id
080     */
081    public CmsUUID getSessionId() {
082
083        return m_sessionId;
084    }
085
086    /**
087     * Returns the edited resource site path.<p>
088     *
089     * @return the site path
090     */
091    public String getSitePath() {
092
093        return m_sitePath;
094    }
095
096    /**
097     * Returns the edited resource structure id.<p>
098     *
099     * @return the structure id
100     */
101    public CmsUUID getStrucureId() {
102
103        return m_strucureId;
104    }
105
106    /**
107     * Sets the content values.<p>
108     *
109     * @param contentValues the content values
110     */
111    public void setContentValues(Map<String, String> contentValues) {
112
113        m_contentValues = contentValues;
114    }
115
116    /**
117     * Sets the resource type name
118     *
119     * @param resourceType the resource type
120     */
121    public void setResourceType(String resourceType) {
122
123        m_resourceType = resourceType;
124    }
125
126    /**
127     * Sets the editing session id.<p>
128     *
129     * @param sessionId the session id
130     */
131    public void setSessionId(CmsUUID sessionId) {
132
133        m_sessionId = sessionId;
134    }
135
136    /**
137     * Sets the site path.<p>
138     *
139     * @param sitePath the site path
140     */
141    public void setSitePath(String sitePath) {
142
143        m_sitePath = sitePath;
144    }
145
146    /**
147     * Sets the structure id.<p>
148     *
149     * @param strucureId the structure id
150     */
151    public void setStrucureId(CmsUUID strucureId) {
152
153        m_strucureId = strucureId;
154    }
155
156}