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 java.util.List;
031
032import com.google.gwt.user.client.rpc.IsSerializable;
033
034/**
035 * The inheritance container data.<p>
036 */
037public class CmsInheritanceContainer implements IsSerializable {
038
039    /** The container reference client id. */
040    private String m_clientId;
041
042    /** The description. */
043    private String m_description;
044
045    /** The elements of the container. */
046    private List<CmsContainerElement> m_elements;
047
048    /** Indicates whether a change has occurred. */
049    private boolean m_elementsChanged;
050
051    /** Indicates whether elements have been moved. */
052    private boolean m_elementsMoved;
053
054    /** The name of the inheritance line. */
055    private String m_name;
056
057    /** Flag indicating if this is a new inheritance reference. */
058    private boolean m_new;
059
060    /** The title. */
061    private String m_title;
062
063    /**
064     * Returns the clientId.<p>
065     *
066     * @return the clientId
067     */
068    public String getClientId() {
069
070        return m_clientId;
071    }
072
073    /**
074     * Returns the description.<p>
075     *
076     * @return the description
077     */
078    public String getDescription() {
079
080        return m_description;
081    }
082
083    /**
084     * Returns the container elements.<p>
085     *
086     * @return the elements
087     */
088    public List<CmsContainerElement> getElements() {
089
090        return m_elements;
091    }
092
093    /**
094     * Returns true whether the inheritance information has been changed.<p>
095     *
096     * @return true if the inheritance information has been changed
097     */
098    public boolean getElementsChanged() {
099
100        return m_elementsChanged;
101    }
102
103    /**
104     * Returns true when the elements have been moved.<p>
105     *
106     * @return true if the elements have been moved
107     */
108    public boolean getElementsMoved() {
109
110        return m_elementsMoved;
111    }
112
113    /**
114     * Returns the name of the inheritance line.<p>
115     *
116     * @return the name
117     */
118    public String getName() {
119
120        return m_name;
121    }
122
123    /**
124     * Returns the title.<p>
125     *
126     * @return the title
127     */
128    public String getTitle() {
129
130        return m_title;
131    }
132
133    /**
134     * Returns if this is a new inheritance reference.<p>
135     *
136     * @return <code>true</code> if this is a new inheritance reference
137     */
138    public boolean isNew() {
139
140        return m_new;
141    }
142
143    /**
144     * Sets the container reference client id.<p>
145     *
146     * @param clientId the container reference client id to set
147     */
148    public void setClientId(String clientId) {
149
150        m_clientId = clientId;
151    }
152
153    /**
154     * Sets the description.<p>
155     *
156     * @param description the description to set
157     */
158    public void setDescription(String description) {
159
160        m_description = description;
161    }
162
163    /**
164     * Sets the container elements.<p>
165     *
166     * @param elements the elements to set
167     */
168    public void setElements(List<CmsContainerElement> elements) {
169
170        m_elements = elements;
171    }
172
173    /**
174     * Sets the 'elements changed' flag.<p>
175     *
176     * @param elementsChanged the 'element changed' flag's new value
177     */
178    public void setElementsChanged(boolean elementsChanged) {
179
180        m_elementsChanged = elementsChanged;
181    }
182
183    /**
184     * Sets the 'elements moved' flag.<p>
185     *
186     * @param moved the 'element moved' flag's new value
187     */
188    public void setElementsMoved(boolean moved) {
189
190        m_elementsMoved = moved;
191    }
192
193    /**
194     * Sets the name of the inheritance line.<p>
195     *
196     * @param name the name to set
197     */
198    public void setName(String name) {
199
200        m_name = name;
201    }
202
203    /**
204     * Sets the if this is a new inheritance reference.<p>
205     *
206     * @param new1  <code>true</code> if this is a new inheritance reference
207     */
208    public void setNew(boolean new1) {
209
210        m_new = new1;
211    }
212
213    /**
214     * Sets the title.<p>
215     *
216     * @param title the title to set
217     */
218    public void setTitle(String title) {
219
220        m_title = title;
221    }
222
223}