001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link LayoutPrototype}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LayoutPrototype
024     * @generated
025     */
026    public class LayoutPrototypeWrapper implements LayoutPrototype {
027            public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) {
028                    _layoutPrototype = layoutPrototype;
029            }
030    
031            /**
032            * Gets the primary key of this layout prototype.
033            *
034            * @return the primary key of this layout prototype
035            */
036            public long getPrimaryKey() {
037                    return _layoutPrototype.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this layout prototype
042            *
043            * @param pk the primary key of this layout prototype
044            */
045            public void setPrimaryKey(long pk) {
046                    _layoutPrototype.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the layout prototype id of this layout prototype.
051            *
052            * @return the layout prototype id of this layout prototype
053            */
054            public long getLayoutPrototypeId() {
055                    return _layoutPrototype.getLayoutPrototypeId();
056            }
057    
058            /**
059            * Sets the layout prototype id of this layout prototype.
060            *
061            * @param layoutPrototypeId the layout prototype id of this layout prototype
062            */
063            public void setLayoutPrototypeId(long layoutPrototypeId) {
064                    _layoutPrototype.setLayoutPrototypeId(layoutPrototypeId);
065            }
066    
067            /**
068            * Gets the company id of this layout prototype.
069            *
070            * @return the company id of this layout prototype
071            */
072            public long getCompanyId() {
073                    return _layoutPrototype.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this layout prototype.
078            *
079            * @param companyId the company id of this layout prototype
080            */
081            public void setCompanyId(long companyId) {
082                    _layoutPrototype.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the name of this layout prototype.
087            *
088            * @return the name of this layout prototype
089            */
090            public java.lang.String getName() {
091                    return _layoutPrototype.getName();
092            }
093    
094            /**
095            * Gets the localized name of this layout prototype. Uses the default language if no localization exists for the requested language.
096            *
097            * @param locale the locale to get the localized name for
098            * @return the localized name of this layout prototype
099            */
100            public java.lang.String getName(java.util.Locale locale) {
101                    return _layoutPrototype.getName(locale);
102            }
103    
104            /**
105            * Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.
106            *
107            * @param locale the local to get the localized name for
108            * @param useDefault whether to use the default language if no localization exists for the requested language
109            * @return the localized name of this layout prototype. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
110            */
111            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
112                    return _layoutPrototype.getName(locale, useDefault);
113            }
114    
115            /**
116            * Gets the localized name of this layout prototype. Uses the default language if no localization exists for the requested language.
117            *
118            * @param languageId the id of the language to get the localized name for
119            * @return the localized name of this layout prototype
120            */
121            public java.lang.String getName(java.lang.String languageId) {
122                    return _layoutPrototype.getName(languageId);
123            }
124    
125            /**
126            * Gets the localized name of this layout prototype, optionally using the default language if no localization exists for the requested language.
127            *
128            * @param languageId the id of the language to get the localized name for
129            * @param useDefault whether to use the default language if no localization exists for the requested language
130            * @return the localized name of this layout prototype
131            */
132            public java.lang.String getName(java.lang.String languageId,
133                    boolean useDefault) {
134                    return _layoutPrototype.getName(languageId, useDefault);
135            }
136    
137            /**
138            * Gets a map of the locales and localized name of this layout prototype.
139            *
140            * @return the locales and localized name
141            */
142            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
143                    return _layoutPrototype.getNameMap();
144            }
145    
146            /**
147            * Sets the name of this layout prototype.
148            *
149            * @param name the name of this layout prototype
150            */
151            public void setName(java.lang.String name) {
152                    _layoutPrototype.setName(name);
153            }
154    
155            /**
156            * Sets the localized name of this layout prototype.
157            *
158            * @param locale the locale to set the localized name for
159            * @param name the localized name of this layout prototype
160            */
161            public void setName(java.util.Locale locale, java.lang.String name) {
162                    _layoutPrototype.setName(locale, name);
163            }
164    
165            /**
166            * Sets the localized names of this layout prototype from the map of locales and localized names.
167            *
168            * @param nameMap the locales and localized names of this layout prototype
169            */
170            public void setNameMap(
171                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
172                    _layoutPrototype.setNameMap(nameMap);
173            }
174    
175            /**
176            * Gets the description of this layout prototype.
177            *
178            * @return the description of this layout prototype
179            */
180            public java.lang.String getDescription() {
181                    return _layoutPrototype.getDescription();
182            }
183    
184            /**
185            * Sets the description of this layout prototype.
186            *
187            * @param description the description of this layout prototype
188            */
189            public void setDescription(java.lang.String description) {
190                    _layoutPrototype.setDescription(description);
191            }
192    
193            /**
194            * Gets the settings of this layout prototype.
195            *
196            * @return the settings of this layout prototype
197            */
198            public java.lang.String getSettings() {
199                    return _layoutPrototype.getSettings();
200            }
201    
202            /**
203            * Sets the settings of this layout prototype.
204            *
205            * @param settings the settings of this layout prototype
206            */
207            public void setSettings(java.lang.String settings) {
208                    _layoutPrototype.setSettings(settings);
209            }
210    
211            /**
212            * Gets the active of this layout prototype.
213            *
214            * @return the active of this layout prototype
215            */
216            public boolean getActive() {
217                    return _layoutPrototype.getActive();
218            }
219    
220            /**
221            * Determines whether this layout prototype is active.
222            *
223            * @return whether this layout prototype is active
224            */
225            public boolean isActive() {
226                    return _layoutPrototype.isActive();
227            }
228    
229            /**
230            * Sets whether this {$entity.humanName} is active.
231            *
232            * @param active the active of this layout prototype
233            */
234            public void setActive(boolean active) {
235                    _layoutPrototype.setActive(active);
236            }
237    
238            public boolean isNew() {
239                    return _layoutPrototype.isNew();
240            }
241    
242            public void setNew(boolean n) {
243                    _layoutPrototype.setNew(n);
244            }
245    
246            public boolean isCachedModel() {
247                    return _layoutPrototype.isCachedModel();
248            }
249    
250            public void setCachedModel(boolean cachedModel) {
251                    _layoutPrototype.setCachedModel(cachedModel);
252            }
253    
254            public boolean isEscapedModel() {
255                    return _layoutPrototype.isEscapedModel();
256            }
257    
258            public void setEscapedModel(boolean escapedModel) {
259                    _layoutPrototype.setEscapedModel(escapedModel);
260            }
261    
262            public java.io.Serializable getPrimaryKeyObj() {
263                    return _layoutPrototype.getPrimaryKeyObj();
264            }
265    
266            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
267                    return _layoutPrototype.getExpandoBridge();
268            }
269    
270            public void setExpandoBridgeAttributes(
271                    com.liferay.portal.service.ServiceContext serviceContext) {
272                    _layoutPrototype.setExpandoBridgeAttributes(serviceContext);
273            }
274    
275            public java.lang.Object clone() {
276                    return _layoutPrototype.clone();
277            }
278    
279            public int compareTo(
280                    com.liferay.portal.model.LayoutPrototype layoutPrototype) {
281                    return _layoutPrototype.compareTo(layoutPrototype);
282            }
283    
284            public int hashCode() {
285                    return _layoutPrototype.hashCode();
286            }
287    
288            public com.liferay.portal.model.LayoutPrototype toEscapedModel() {
289                    return _layoutPrototype.toEscapedModel();
290            }
291    
292            public java.lang.String toString() {
293                    return _layoutPrototype.toString();
294            }
295    
296            public java.lang.String toXmlString() {
297                    return _layoutPrototype.toXmlString();
298            }
299    
300            public com.liferay.portal.model.Group getGroup()
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _layoutPrototype.getGroup();
304            }
305    
306            public com.liferay.portal.model.Layout getLayout()
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _layoutPrototype.getLayout();
310            }
311    
312            public LayoutPrototype getWrappedLayoutPrototype() {
313                    return _layoutPrototype;
314            }
315    
316            private LayoutPrototype _layoutPrototype;
317    }