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.containerpage.shared;
029
030import org.opencms.util.CmsUUID;
031
032import com.google.gwt.user.client.rpc.IsSerializable;
033
034/**
035 * Bean containing the 'context' of the edited container page for use in RPC calls.<p>
036 */
037public class CmsContainerPageRpcContext implements IsSerializable {
038
039    /**
040     * Structure id of the page.<p>
041     */
042    private CmsUUID m_pageStructureId;
043
044    /**
045     * Template context key.<p>
046     */
047    private String m_templateContext;
048
049    /**
050     * Creates a new instance.<p>
051     *
052     * @param pageStructureId the page structure id
053     * @param templateContext the template context key
054     */
055    public CmsContainerPageRpcContext(CmsUUID pageStructureId, String templateContext) {
056
057        m_pageStructureId = pageStructureId;
058        m_templateContext = templateContext;
059
060    }
061
062    /**
063     * Default constructor for serialization.<p>
064     */
065    protected CmsContainerPageRpcContext() {
066
067        // empty
068
069    }
070
071    /**
072     * Returns the pageStructureId.<p>
073     *
074     * @return the pageStructureId
075     */
076    public CmsUUID getPageStructureId() {
077
078        return m_pageStructureId;
079    }
080
081    /**
082     * Returns the templateContext.<p>
083     *
084     * @return the templateContext
085     */
086    public String getTemplateContext() {
087
088        return m_templateContext;
089    }
090
091}