001    /**
002     * Copyright (c) 2000-2013 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("userId", getUserId());
051                    attributes.put("userName", getUserName());
052                    attributes.put("createDate", getCreateDate());
053                    attributes.put("modifiedDate", getModifiedDate());
054                    attributes.put("name", getName());
055                    attributes.put("description", getDescription());
056                    attributes.put("settings", getSettings());
057                    attributes.put("active", getActive());
058    
059                    return attributes;
060            }
061    
062            public void setModelAttributes(Map<String, Object> attributes) {
063                    String uuid = (String)attributes.get("uuid");
064    
065                    if (uuid != null) {
066                            setUuid(uuid);
067                    }
068    
069                    Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
070    
071                    if (layoutSetPrototypeId != null) {
072                            setLayoutSetPrototypeId(layoutSetPrototypeId);
073                    }
074    
075                    Long companyId = (Long)attributes.get("companyId");
076    
077                    if (companyId != null) {
078                            setCompanyId(companyId);
079                    }
080    
081                    Long userId = (Long)attributes.get("userId");
082    
083                    if (userId != null) {
084                            setUserId(userId);
085                    }
086    
087                    String userName = (String)attributes.get("userName");
088    
089                    if (userName != null) {
090                            setUserName(userName);
091                    }
092    
093                    Date createDate = (Date)attributes.get("createDate");
094    
095                    if (createDate != null) {
096                            setCreateDate(createDate);
097                    }
098    
099                    Date modifiedDate = (Date)attributes.get("modifiedDate");
100    
101                    if (modifiedDate != null) {
102                            setModifiedDate(modifiedDate);
103                    }
104    
105                    String name = (String)attributes.get("name");
106    
107                    if (name != null) {
108                            setName(name);
109                    }
110    
111                    String description = (String)attributes.get("description");
112    
113                    if (description != null) {
114                            setDescription(description);
115                    }
116    
117                    String settings = (String)attributes.get("settings");
118    
119                    if (settings != null) {
120                            setSettings(settings);
121                    }
122    
123                    Boolean active = (Boolean)attributes.get("active");
124    
125                    if (active != null) {
126                            setActive(active);
127                    }
128            }
129    
130            /**
131            * Returns the primary key of this layout set prototype.
132            *
133            * @return the primary key of this layout set prototype
134            */
135            public long getPrimaryKey() {
136                    return _layoutSetPrototype.getPrimaryKey();
137            }
138    
139            /**
140            * Sets the primary key of this layout set prototype.
141            *
142            * @param primaryKey the primary key of this layout set prototype
143            */
144            public void setPrimaryKey(long primaryKey) {
145                    _layoutSetPrototype.setPrimaryKey(primaryKey);
146            }
147    
148            /**
149            * Returns the uuid of this layout set prototype.
150            *
151            * @return the uuid of this layout set prototype
152            */
153            public java.lang.String getUuid() {
154                    return _layoutSetPrototype.getUuid();
155            }
156    
157            /**
158            * Sets the uuid of this layout set prototype.
159            *
160            * @param uuid the uuid of this layout set prototype
161            */
162            public void setUuid(java.lang.String uuid) {
163                    _layoutSetPrototype.setUuid(uuid);
164            }
165    
166            /**
167            * Returns the layout set prototype ID of this layout set prototype.
168            *
169            * @return the layout set prototype ID of this layout set prototype
170            */
171            public long getLayoutSetPrototypeId() {
172                    return _layoutSetPrototype.getLayoutSetPrototypeId();
173            }
174    
175            /**
176            * Sets the layout set prototype ID of this layout set prototype.
177            *
178            * @param layoutSetPrototypeId the layout set prototype ID of this layout set prototype
179            */
180            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
181                    _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
182            }
183    
184            /**
185            * Returns the company ID of this layout set prototype.
186            *
187            * @return the company ID of this layout set prototype
188            */
189            public long getCompanyId() {
190                    return _layoutSetPrototype.getCompanyId();
191            }
192    
193            /**
194            * Sets the company ID of this layout set prototype.
195            *
196            * @param companyId the company ID of this layout set prototype
197            */
198            public void setCompanyId(long companyId) {
199                    _layoutSetPrototype.setCompanyId(companyId);
200            }
201    
202            /**
203            * Returns the user ID of this layout set prototype.
204            *
205            * @return the user ID of this layout set prototype
206            */
207            public long getUserId() {
208                    return _layoutSetPrototype.getUserId();
209            }
210    
211            /**
212            * Sets the user ID of this layout set prototype.
213            *
214            * @param userId the user ID of this layout set prototype
215            */
216            public void setUserId(long userId) {
217                    _layoutSetPrototype.setUserId(userId);
218            }
219    
220            /**
221            * Returns the user uuid of this layout set prototype.
222            *
223            * @return the user uuid of this layout set prototype
224            * @throws SystemException if a system exception occurred
225            */
226            public java.lang.String getUserUuid()
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _layoutSetPrototype.getUserUuid();
229            }
230    
231            /**
232            * Sets the user uuid of this layout set prototype.
233            *
234            * @param userUuid the user uuid of this layout set prototype
235            */
236            public void setUserUuid(java.lang.String userUuid) {
237                    _layoutSetPrototype.setUserUuid(userUuid);
238            }
239    
240            /**
241            * Returns the user name of this layout set prototype.
242            *
243            * @return the user name of this layout set prototype
244            */
245            public java.lang.String getUserName() {
246                    return _layoutSetPrototype.getUserName();
247            }
248    
249            /**
250            * Sets the user name of this layout set prototype.
251            *
252            * @param userName the user name of this layout set prototype
253            */
254            public void setUserName(java.lang.String userName) {
255                    _layoutSetPrototype.setUserName(userName);
256            }
257    
258            /**
259            * Returns the create date of this layout set prototype.
260            *
261            * @return the create date of this layout set prototype
262            */
263            public java.util.Date getCreateDate() {
264                    return _layoutSetPrototype.getCreateDate();
265            }
266    
267            /**
268            * Sets the create date of this layout set prototype.
269            *
270            * @param createDate the create date of this layout set prototype
271            */
272            public void setCreateDate(java.util.Date createDate) {
273                    _layoutSetPrototype.setCreateDate(createDate);
274            }
275    
276            /**
277            * Returns the modified date of this layout set prototype.
278            *
279            * @return the modified date of this layout set prototype
280            */
281            public java.util.Date getModifiedDate() {
282                    return _layoutSetPrototype.getModifiedDate();
283            }
284    
285            /**
286            * Sets the modified date of this layout set prototype.
287            *
288            * @param modifiedDate the modified date of this layout set prototype
289            */
290            public void setModifiedDate(java.util.Date modifiedDate) {
291                    _layoutSetPrototype.setModifiedDate(modifiedDate);
292            }
293    
294            /**
295            * Returns the name of this layout set prototype.
296            *
297            * @return the name of this layout set prototype
298            */
299            public java.lang.String getName() {
300                    return _layoutSetPrototype.getName();
301            }
302    
303            /**
304            * Returns the localized name of this layout set prototype in the language. Uses the default language if no localization exists for the requested language.
305            *
306            * @param locale the locale of the language
307            * @return the localized name of this layout set prototype
308            */
309            public java.lang.String getName(java.util.Locale locale) {
310                    return _layoutSetPrototype.getName(locale);
311            }
312    
313            /**
314            * 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.
315            *
316            * @param locale the local of the language
317            * @param useDefault whether to use the default language if no localization exists for the requested language
318            * @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.
319            */
320            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
321                    return _layoutSetPrototype.getName(locale, useDefault);
322            }
323    
324            /**
325            * Returns the localized name of this layout set prototype in the language. Uses the default language if no localization exists for the requested language.
326            *
327            * @param languageId the ID of the language
328            * @return the localized name of this layout set prototype
329            */
330            public java.lang.String getName(java.lang.String languageId) {
331                    return _layoutSetPrototype.getName(languageId);
332            }
333    
334            /**
335            * 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.
336            *
337            * @param languageId the ID of the language
338            * @param useDefault whether to use the default language if no localization exists for the requested language
339            * @return the localized name of this layout set prototype
340            */
341            public java.lang.String getName(java.lang.String languageId,
342                    boolean useDefault) {
343                    return _layoutSetPrototype.getName(languageId, useDefault);
344            }
345    
346            public java.lang.String getNameCurrentLanguageId() {
347                    return _layoutSetPrototype.getNameCurrentLanguageId();
348            }
349    
350            public java.lang.String getNameCurrentValue() {
351                    return _layoutSetPrototype.getNameCurrentValue();
352            }
353    
354            /**
355            * Returns a map of the locales and localized names of this layout set prototype.
356            *
357            * @return the locales and localized names of this layout set prototype
358            */
359            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
360                    return _layoutSetPrototype.getNameMap();
361            }
362    
363            /**
364            * Sets the name of this layout set prototype.
365            *
366            * @param name the name of this layout set prototype
367            */
368            public void setName(java.lang.String name) {
369                    _layoutSetPrototype.setName(name);
370            }
371    
372            /**
373            * Sets the localized name of this layout set prototype in the language.
374            *
375            * @param name the localized name of this layout set prototype
376            * @param locale the locale of the language
377            */
378            public void setName(java.lang.String name, java.util.Locale locale) {
379                    _layoutSetPrototype.setName(name, locale);
380            }
381    
382            /**
383            * Sets the localized name of this layout set prototype in the language, and sets the default locale.
384            *
385            * @param name the localized name of this layout set prototype
386            * @param locale the locale of the language
387            * @param defaultLocale the default locale
388            */
389            public void setName(java.lang.String name, java.util.Locale locale,
390                    java.util.Locale defaultLocale) {
391                    _layoutSetPrototype.setName(name, locale, defaultLocale);
392            }
393    
394            public void setNameCurrentLanguageId(java.lang.String languageId) {
395                    _layoutSetPrototype.setNameCurrentLanguageId(languageId);
396            }
397    
398            /**
399            * Sets the localized names of this layout set prototype from the map of locales and localized names.
400            *
401            * @param nameMap the locales and localized names of this layout set prototype
402            */
403            public void setNameMap(
404                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
405                    _layoutSetPrototype.setNameMap(nameMap);
406            }
407    
408            /**
409            * Sets the localized names of this layout set prototype from the map of locales and localized names, and sets the default locale.
410            *
411            * @param nameMap the locales and localized names of this layout set prototype
412            * @param defaultLocale the default locale
413            */
414            public void setNameMap(
415                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
416                    java.util.Locale defaultLocale) {
417                    _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
418            }
419    
420            /**
421            * Returns the description of this layout set prototype.
422            *
423            * @return the description of this layout set prototype
424            */
425            public java.lang.String getDescription() {
426                    return _layoutSetPrototype.getDescription();
427            }
428    
429            /**
430            * Sets the description of this layout set prototype.
431            *
432            * @param description the description of this layout set prototype
433            */
434            public void setDescription(java.lang.String description) {
435                    _layoutSetPrototype.setDescription(description);
436            }
437    
438            /**
439            * Returns the settings of this layout set prototype.
440            *
441            * @return the settings of this layout set prototype
442            */
443            public java.lang.String getSettings() {
444                    return _layoutSetPrototype.getSettings();
445            }
446    
447            /**
448            * Sets the settings of this layout set prototype.
449            *
450            * @param settings the settings of this layout set prototype
451            */
452            public void setSettings(java.lang.String settings) {
453                    _layoutSetPrototype.setSettings(settings);
454            }
455    
456            /**
457            * Returns the active of this layout set prototype.
458            *
459            * @return the active of this layout set prototype
460            */
461            public boolean getActive() {
462                    return _layoutSetPrototype.getActive();
463            }
464    
465            /**
466            * Returns <code>true</code> if this layout set prototype is active.
467            *
468            * @return <code>true</code> if this layout set prototype is active; <code>false</code> otherwise
469            */
470            public boolean isActive() {
471                    return _layoutSetPrototype.isActive();
472            }
473    
474            /**
475            * Sets whether this layout set prototype is active.
476            *
477            * @param active the active of this layout set prototype
478            */
479            public void setActive(boolean active) {
480                    _layoutSetPrototype.setActive(active);
481            }
482    
483            public boolean isNew() {
484                    return _layoutSetPrototype.isNew();
485            }
486    
487            public void setNew(boolean n) {
488                    _layoutSetPrototype.setNew(n);
489            }
490    
491            public boolean isCachedModel() {
492                    return _layoutSetPrototype.isCachedModel();
493            }
494    
495            public void setCachedModel(boolean cachedModel) {
496                    _layoutSetPrototype.setCachedModel(cachedModel);
497            }
498    
499            public boolean isEscapedModel() {
500                    return _layoutSetPrototype.isEscapedModel();
501            }
502    
503            public java.io.Serializable getPrimaryKeyObj() {
504                    return _layoutSetPrototype.getPrimaryKeyObj();
505            }
506    
507            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
508                    _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
509            }
510    
511            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
512                    return _layoutSetPrototype.getExpandoBridge();
513            }
514    
515            public void setExpandoBridgeAttributes(
516                    com.liferay.portal.model.BaseModel<?> baseModel) {
517                    _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
518            }
519    
520            public void setExpandoBridgeAttributes(
521                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
522                    _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
523            }
524    
525            public void setExpandoBridgeAttributes(
526                    com.liferay.portal.service.ServiceContext serviceContext) {
527                    _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
528            }
529    
530            public void prepareLocalizedFieldsForImport(
531                    java.util.Locale defaultImportLocale)
532                    throws com.liferay.portal.LocaleException {
533                    _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
534            }
535    
536            @Override
537            public java.lang.Object clone() {
538                    return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
539            }
540    
541            public int compareTo(
542                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
543                    return _layoutSetPrototype.compareTo(layoutSetPrototype);
544            }
545    
546            @Override
547            public int hashCode() {
548                    return _layoutSetPrototype.hashCode();
549            }
550    
551            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
552                    return _layoutSetPrototype.toCacheModel();
553            }
554    
555            public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
556                    return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
557            }
558    
559            public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
560                    return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
561            }
562    
563            @Override
564            public java.lang.String toString() {
565                    return _layoutSetPrototype.toString();
566            }
567    
568            public java.lang.String toXmlString() {
569                    return _layoutSetPrototype.toXmlString();
570            }
571    
572            public void persist()
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    _layoutSetPrototype.persist();
575            }
576    
577            public com.liferay.portal.model.Group getGroup()
578                    throws com.liferay.portal.kernel.exception.PortalException,
579                            com.liferay.portal.kernel.exception.SystemException {
580                    return _layoutSetPrototype.getGroup();
581            }
582    
583            public com.liferay.portal.model.LayoutSet getLayoutSet()
584                    throws com.liferay.portal.kernel.exception.PortalException,
585                            com.liferay.portal.kernel.exception.SystemException {
586                    return _layoutSetPrototype.getLayoutSet();
587            }
588    
589            public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
590                    return _layoutSetPrototype.getSettingsProperties();
591            }
592    
593            public java.lang.String getSettingsProperty(java.lang.String key) {
594                    return _layoutSetPrototype.getSettingsProperty(key);
595            }
596    
597            public void setSettingsProperties(
598                    com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
599                    _layoutSetPrototype.setSettingsProperties(settingsProperties);
600            }
601    
602            /**
603             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
604             */
605            public LayoutSetPrototype getWrappedLayoutSetPrototype() {
606                    return _layoutSetPrototype;
607            }
608    
609            public LayoutSetPrototype getWrappedModel() {
610                    return _layoutSetPrototype;
611            }
612    
613            public void resetOriginalValues() {
614                    _layoutSetPrototype.resetOriginalValues();
615            }
616    
617            private LayoutSetPrototype _layoutSetPrototype;
618    }