001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.util.Date;
018    import java.util.HashMap;
019    import java.util.Map;
020    
021    /**
022     * <p>
023     * This class is a wrapper for {@link LayoutSetPrototype}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       LayoutSetPrototype
028     * @generated
029     */
030    public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
031            ModelWrapper<LayoutSetPrototype> {
032            public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
033                    _layoutSetPrototype = layoutSetPrototype;
034            }
035    
036            public Class<?> getModelClass() {
037                    return LayoutSetPrototype.class;
038            }
039    
040            public String getModelClassName() {
041                    return LayoutSetPrototype.class.getName();
042            }
043    
044            public Map<String, Object> getModelAttributes() {
045                    Map<String, Object> attributes = new HashMap<String, Object>();
046    
047                    attributes.put("uuid", getUuid());
048                    attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
049                    attributes.put("companyId", getCompanyId());
050                    attributes.put("createDate", getCreateDate());
051                    attributes.put("modifiedDate", getModifiedDate());
052                    attributes.put("name", getName());
053                    attributes.put("description", getDescription());
054                    attributes.put("settings", getSettings());
055                    attributes.put("active", getActive());
056    
057                    return attributes;
058            }
059    
060            public void setModelAttributes(Map<String, Object> attributes) {
061                    String uuid = (String)attributes.get("uuid");
062    
063                    if (uuid != null) {
064                            setUuid(uuid);
065                    }
066    
067                    Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
068    
069                    if (layoutSetPrototypeId != null) {
070                            setLayoutSetPrototypeId(layoutSetPrototypeId);
071                    }
072    
073                    Long companyId = (Long)attributes.get("companyId");
074    
075                    if (companyId != null) {
076                            setCompanyId(companyId);
077                    }
078    
079                    Date createDate = (Date)attributes.get("createDate");
080    
081                    if (createDate != null) {
082                            setCreateDate(createDate);
083                    }
084    
085                    Date modifiedDate = (Date)attributes.get("modifiedDate");
086    
087                    if (modifiedDate != null) {
088                            setModifiedDate(modifiedDate);
089                    }
090    
091                    String name = (String)attributes.get("name");
092    
093                    if (name != null) {
094                            setName(name);
095                    }
096    
097                    String description = (String)attributes.get("description");
098    
099                    if (description != null) {
100                            setDescription(description);
101                    }
102    
103                    String settings = (String)attributes.get("settings");
104    
105                    if (settings != null) {
106                            setSettings(settings);
107                    }
108    
109                    Boolean active = (Boolean)attributes.get("active");
110    
111                    if (active != null) {
112                            setActive(active);
113                    }
114            }
115    
116            /**
117            * Returns the primary key of this layout set prototype.
118            *
119            * @return the primary key of this layout set prototype
120            */
121            public long getPrimaryKey() {
122                    return _layoutSetPrototype.getPrimaryKey();
123            }
124    
125            /**
126            * Sets the primary key of this layout set prototype.
127            *
128            * @param primaryKey the primary key of this layout set prototype
129            */
130            public void setPrimaryKey(long primaryKey) {
131                    _layoutSetPrototype.setPrimaryKey(primaryKey);
132            }
133    
134            /**
135            * Returns the uuid of this layout set prototype.
136            *
137            * @return the uuid of this layout set prototype
138            */
139            public java.lang.String getUuid() {
140                    return _layoutSetPrototype.getUuid();
141            }
142    
143            /**
144            * Sets the uuid of this layout set prototype.
145            *
146            * @param uuid the uuid of this layout set prototype
147            */
148            public void setUuid(java.lang.String uuid) {
149                    _layoutSetPrototype.setUuid(uuid);
150            }
151    
152            /**
153            * Returns the layout set prototype ID of this layout set prototype.
154            *
155            * @return the layout set prototype ID of this layout set prototype
156            */
157            public long getLayoutSetPrototypeId() {
158                    return _layoutSetPrototype.getLayoutSetPrototypeId();
159            }
160    
161            /**
162            * Sets the layout set prototype ID of this layout set prototype.
163            *
164            * @param layoutSetPrototypeId the layout set prototype ID of this layout set prototype
165            */
166            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
167                    _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
168            }
169    
170            /**
171            * Returns the company ID of this layout set prototype.
172            *
173            * @return the company ID of this layout set prototype
174            */
175            public long getCompanyId() {
176                    return _layoutSetPrototype.getCompanyId();
177            }
178    
179            /**
180            * Sets the company ID of this layout set prototype.
181            *
182            * @param companyId the company ID of this layout set prototype
183            */
184            public void setCompanyId(long companyId) {
185                    _layoutSetPrototype.setCompanyId(companyId);
186            }
187    
188            /**
189            * Returns the create date of this layout set prototype.
190            *
191            * @return the create date of this layout set prototype
192            */
193            public java.util.Date getCreateDate() {
194                    return _layoutSetPrototype.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this layout set prototype.
199            *
200            * @param createDate the create date of this layout set prototype
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _layoutSetPrototype.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this layout set prototype.
208            *
209            * @return the modified date of this layout set prototype
210            */
211            public java.util.Date getModifiedDate() {
212                    return _layoutSetPrototype.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this layout set prototype.
217            *
218            * @param modifiedDate the modified date of this layout set prototype
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _layoutSetPrototype.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the name of this layout set prototype.
226            *
227            * @return the name of this layout set prototype
228            */
229            public java.lang.String getName() {
230                    return _layoutSetPrototype.getName();
231            }
232    
233            /**
234            * Returns the localized name of this layout set prototype in the language. Uses the default language if no localization exists for the requested language.
235            *
236            * @param locale the locale of the language
237            * @return the localized name of this layout set prototype
238            */
239            public java.lang.String getName(java.util.Locale locale) {
240                    return _layoutSetPrototype.getName(locale);
241            }
242    
243            /**
244            * Returns the localized name of this layout set prototype in the language, optionally using the default language if no localization exists for the requested language.
245            *
246            * @param locale the local of the language
247            * @param useDefault whether to use the default language if no localization exists for the requested language
248            * @return the localized name of this layout set prototype. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
249            */
250            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
251                    return _layoutSetPrototype.getName(locale, useDefault);
252            }
253    
254            /**
255            * Returns the localized name of this layout set prototype in the language. Uses the default language if no localization exists for the requested language.
256            *
257            * @param languageId the ID of the language
258            * @return the localized name of this layout set prototype
259            */
260            public java.lang.String getName(java.lang.String languageId) {
261                    return _layoutSetPrototype.getName(languageId);
262            }
263    
264            /**
265            * Returns the localized name of this layout set prototype in the language, optionally using the default language if no localization exists for the requested language.
266            *
267            * @param languageId the ID of the language
268            * @param useDefault whether to use the default language if no localization exists for the requested language
269            * @return the localized name of this layout set prototype
270            */
271            public java.lang.String getName(java.lang.String languageId,
272                    boolean useDefault) {
273                    return _layoutSetPrototype.getName(languageId, useDefault);
274            }
275    
276            public java.lang.String getNameCurrentLanguageId() {
277                    return _layoutSetPrototype.getNameCurrentLanguageId();
278            }
279    
280            public java.lang.String getNameCurrentValue() {
281                    return _layoutSetPrototype.getNameCurrentValue();
282            }
283    
284            /**
285            * Returns a map of the locales and localized names of this layout set prototype.
286            *
287            * @return the locales and localized names of this layout set prototype
288            */
289            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
290                    return _layoutSetPrototype.getNameMap();
291            }
292    
293            /**
294            * Sets the name of this layout set prototype.
295            *
296            * @param name the name of this layout set prototype
297            */
298            public void setName(java.lang.String name) {
299                    _layoutSetPrototype.setName(name);
300            }
301    
302            /**
303            * Sets the localized name of this layout set prototype in the language.
304            *
305            * @param name the localized name of this layout set prototype
306            * @param locale the locale of the language
307            */
308            public void setName(java.lang.String name, java.util.Locale locale) {
309                    _layoutSetPrototype.setName(name, locale);
310            }
311    
312            /**
313            * Sets the localized name of this layout set prototype in the language, and sets the default locale.
314            *
315            * @param name the localized name of this layout set prototype
316            * @param locale the locale of the language
317            * @param defaultLocale the default locale
318            */
319            public void setName(java.lang.String name, java.util.Locale locale,
320                    java.util.Locale defaultLocale) {
321                    _layoutSetPrototype.setName(name, locale, defaultLocale);
322            }
323    
324            public void setNameCurrentLanguageId(java.lang.String languageId) {
325                    _layoutSetPrototype.setNameCurrentLanguageId(languageId);
326            }
327    
328            /**
329            * Sets the localized names of this layout set prototype from the map of locales and localized names.
330            *
331            * @param nameMap the locales and localized names of this layout set prototype
332            */
333            public void setNameMap(
334                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
335                    _layoutSetPrototype.setNameMap(nameMap);
336            }
337    
338            /**
339            * Sets the localized names of this layout set prototype from the map of locales and localized names, and sets the default locale.
340            *
341            * @param nameMap the locales and localized names of this layout set prototype
342            * @param defaultLocale the default locale
343            */
344            public void setNameMap(
345                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
346                    java.util.Locale defaultLocale) {
347                    _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
348            }
349    
350            /**
351            * Returns the description of this layout set prototype.
352            *
353            * @return the description of this layout set prototype
354            */
355            public java.lang.String getDescription() {
356                    return _layoutSetPrototype.getDescription();
357            }
358    
359            /**
360            * Sets the description of this layout set prototype.
361            *
362            * @param description the description of this layout set prototype
363            */
364            public void setDescription(java.lang.String description) {
365                    _layoutSetPrototype.setDescription(description);
366            }
367    
368            /**
369            * Returns the settings of this layout set prototype.
370            *
371            * @return the settings of this layout set prototype
372            */
373            public java.lang.String getSettings() {
374                    return _layoutSetPrototype.getSettings();
375            }
376    
377            /**
378            * Sets the settings of this layout set prototype.
379            *
380            * @param settings the settings of this layout set prototype
381            */
382            public void setSettings(java.lang.String settings) {
383                    _layoutSetPrototype.setSettings(settings);
384            }
385    
386            /**
387            * Returns the active of this layout set prototype.
388            *
389            * @return the active of this layout set prototype
390            */
391            public boolean getActive() {
392                    return _layoutSetPrototype.getActive();
393            }
394    
395            /**
396            * Returns <code>true</code> if this layout set prototype is active.
397            *
398            * @return <code>true</code> if this layout set prototype is active; <code>false</code> otherwise
399            */
400            public boolean isActive() {
401                    return _layoutSetPrototype.isActive();
402            }
403    
404            /**
405            * Sets whether this layout set prototype is active.
406            *
407            * @param active the active of this layout set prototype
408            */
409            public void setActive(boolean active) {
410                    _layoutSetPrototype.setActive(active);
411            }
412    
413            public boolean isNew() {
414                    return _layoutSetPrototype.isNew();
415            }
416    
417            public void setNew(boolean n) {
418                    _layoutSetPrototype.setNew(n);
419            }
420    
421            public boolean isCachedModel() {
422                    return _layoutSetPrototype.isCachedModel();
423            }
424    
425            public void setCachedModel(boolean cachedModel) {
426                    _layoutSetPrototype.setCachedModel(cachedModel);
427            }
428    
429            public boolean isEscapedModel() {
430                    return _layoutSetPrototype.isEscapedModel();
431            }
432    
433            public java.io.Serializable getPrimaryKeyObj() {
434                    return _layoutSetPrototype.getPrimaryKeyObj();
435            }
436    
437            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
438                    _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
439            }
440    
441            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
442                    return _layoutSetPrototype.getExpandoBridge();
443            }
444    
445            public void setExpandoBridgeAttributes(
446                    com.liferay.portal.service.ServiceContext serviceContext) {
447                    _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
448            }
449    
450            public void prepareLocalizedFieldsForImport(
451                    java.util.Locale defaultImportLocale)
452                    throws com.liferay.portal.LocaleException {
453                    _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
454            }
455    
456            @Override
457            public java.lang.Object clone() {
458                    return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
459            }
460    
461            public int compareTo(
462                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
463                    return _layoutSetPrototype.compareTo(layoutSetPrototype);
464            }
465    
466            @Override
467            public int hashCode() {
468                    return _layoutSetPrototype.hashCode();
469            }
470    
471            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
472                    return _layoutSetPrototype.toCacheModel();
473            }
474    
475            public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
476                    return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
477            }
478    
479            public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
480                    return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
481            }
482    
483            @Override
484            public java.lang.String toString() {
485                    return _layoutSetPrototype.toString();
486            }
487    
488            public java.lang.String toXmlString() {
489                    return _layoutSetPrototype.toXmlString();
490            }
491    
492            public void persist()
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    _layoutSetPrototype.persist();
495            }
496    
497            public com.liferay.portal.model.Group getGroup()
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    return _layoutSetPrototype.getGroup();
501            }
502    
503            public com.liferay.portal.model.LayoutSet getLayoutSet()
504                    throws com.liferay.portal.kernel.exception.PortalException,
505                            com.liferay.portal.kernel.exception.SystemException {
506                    return _layoutSetPrototype.getLayoutSet();
507            }
508    
509            public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
510                    return _layoutSetPrototype.getSettingsProperties();
511            }
512    
513            public java.lang.String getSettingsProperty(java.lang.String key) {
514                    return _layoutSetPrototype.getSettingsProperty(key);
515            }
516    
517            public void setSettingsProperties(
518                    com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
519                    _layoutSetPrototype.setSettingsProperties(settingsProperties);
520            }
521    
522            /**
523             * @deprecated Renamed to {@link #getWrappedModel}
524             */
525            public LayoutSetPrototype getWrappedLayoutSetPrototype() {
526                    return _layoutSetPrototype;
527            }
528    
529            public LayoutSetPrototype getWrappedModel() {
530                    return _layoutSetPrototype;
531            }
532    
533            public void resetOriginalValues() {
534                    _layoutSetPrototype.resetOriginalValues();
535            }
536    
537            private LayoutSetPrototype _layoutSetPrototype;
538    }