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.ade.sitemap.shared;
029
030import org.opencms.gwt.shared.property.CmsClientProperty;
031import org.opencms.util.CmsUUID;
032
033import java.util.ArrayList;
034import java.util.List;
035import java.util.Map;
036
037import com.google.gwt.user.client.rpc.IsSerializable;
038
039/**
040 * Gallery folder entry bean.<p>
041 */
042public class CmsGalleryFolderEntry implements IsSerializable {
043
044    /** The resource icon style classes. */
045    private String m_iconClasses;
046
047    /** The resource properties. */
048    private Map<String, CmsClientProperty> m_ownProperties;
049
050    /** The resource type name. */
051    private String m_resourceType;
052
053    /** The site path. */
054    private String m_sitePath;
055
056    /** The structure id. */
057    private CmsUUID m_structureId;
058
059    /** The sub galleries. */
060    private List<CmsGalleryFolderEntry> m_subGalleries;
061
062    /**
063     * Constructor.<p>
064     */
065    public CmsGalleryFolderEntry() {
066
067        m_subGalleries = new ArrayList<CmsGalleryFolderEntry>();
068    }
069
070    /**
071     * Adds a sub gallery.<p>
072     *
073     * @param gallery the gallery to add
074     */
075    public void addSubGallery(CmsGalleryFolderEntry gallery) {
076
077        m_subGalleries.add(gallery);
078    }
079
080    /**
081     * Returns the resource icon style classes.<p>
082     *
083     * @return the resource icon style classes
084     **/
085    public String getIconClasses() {
086
087        return m_iconClasses;
088    }
089
090    /**
091     * Returns the own properties.<p>
092     *
093     * @return the own properties
094     */
095    public Map<String, CmsClientProperty> getOwnProperties() {
096
097        return m_ownProperties;
098    }
099
100    /**
101     * Returns the resource type.<p>
102     *
103     * @return the resource type
104     */
105    public String getResourceType() {
106
107        return m_resourceType;
108    }
109
110    /**
111     * Returns the site path.<p>
112     *
113     * @return the site path
114     */
115    public String getSitePath() {
116
117        return m_sitePath;
118    }
119
120    /**
121     * Returns the structure id.<p>
122     *
123     * @return the structure id
124     */
125    public CmsUUID getStructureId() {
126
127        return m_structureId;
128    }
129
130    /**
131     * Returns the sub galleries.<p>
132     *
133     * @return the sub galleries
134     */
135    public List<CmsGalleryFolderEntry> getSubGalleries() {
136
137        return m_subGalleries;
138    }
139
140    /**
141     * Sets the resource icon style classes.<p>
142     *
143     * @param iconClasses the resource icon style classes
144     **/
145    public void setIconClasses(String iconClasses) {
146
147        m_iconClasses = iconClasses;
148    }
149
150    /**
151     * Sets the own properties.<p>
152     *
153     * @param ownProperties the own properties to set
154     */
155    public void setOwnProperties(Map<String, CmsClientProperty> ownProperties) {
156
157        m_ownProperties = ownProperties;
158    }
159
160    /**
161     * Sets the resource type.<p>
162     *
163     * @param resourceType the resource type to set
164     */
165    public void setResourceType(String resourceType) {
166
167        m_resourceType = resourceType;
168    }
169
170    /**
171     * Sets the site path.<p>
172     *
173     * @param sitePath the site path to set
174     */
175    public void setSitePath(String sitePath) {
176
177        m_sitePath = sitePath;
178    }
179
180    /**
181     * Sets the structure id.<p>
182     *
183     * @param structureId the structure id to set
184     */
185    public void setStructureId(CmsUUID structureId) {
186
187        m_structureId = structureId;
188    }
189
190    /**
191     * Sets the sub galleries.<p>
192     *
193     * @param subGalleries the subGalleries to set
194     */
195    public void setSubGalleries(List<CmsGalleryFolderEntry> subGalleries) {
196
197        m_subGalleries = subGalleries;
198    }
199
200}