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 java.util.List;
031
032import com.google.gwt.user.client.rpc.IsSerializable;
033
034/**
035 * Wraps the model page and model group info into one object.<p>
036 */
037public class CmsModelInfo implements IsSerializable {
038
039    /** The model group info. */
040    private List<CmsModelPageEntry> m_modelGroups;
041
042    /** The model page info. */
043    private List<CmsModelPageEntry> m_modelPages;
044
045    /** The parent model pages. */
046    private List<CmsModelPageEntry> m_parentModelPages;
047
048    /**
049     * Constructor.<p>
050     *
051     * @param modelPages the model pages
052     * @param parentModelPages the global model pages
053     * @param modelGroups the model groups
054     */
055    public CmsModelInfo(
056        List<CmsModelPageEntry> modelPages,
057        List<CmsModelPageEntry> parentModelPages,
058        List<CmsModelPageEntry> modelGroups) {
059
060        m_modelPages = modelPages;
061        m_parentModelPages = parentModelPages;
062        m_modelGroups = modelGroups;
063    }
064
065    /**
066     * Constructor required for serialization.<p>
067     */
068    protected CmsModelInfo() {
069
070        // nothing to do
071    }
072
073    /**
074     * Returns the model group info.<p>
075     *
076     * @return the model group info
077     */
078    public List<CmsModelPageEntry> getModelGroups() {
079
080        return m_modelGroups;
081    }
082
083    /**
084     * Returns the model page info.<p>
085     *
086     * @return the model page info
087     */
088    public List<CmsModelPageEntry> getModelPages() {
089
090        return m_modelPages;
091    }
092
093    /**
094     * Returns the parent model pages.<p>
095     *
096     * @return the parent model pages
097     */
098    public List<CmsModelPageEntry> getParentModelPages() {
099
100        return m_parentModelPages;
101    }
102
103}