001    /**
002     * Copyright (c) 2000-present 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.portlet.exportimport.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    import com.liferay.portal.model.ModelWrapper;
021    
022    import java.util.Date;
023    import java.util.HashMap;
024    import java.util.Map;
025    
026    /**
027     * <p>
028     * This class is a wrapper for {@link ExportImportConfiguration}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see ExportImportConfiguration
033     * @generated
034     */
035    @ProviderType
036    public class ExportImportConfigurationWrapper
037            implements ExportImportConfiguration,
038                    ModelWrapper<ExportImportConfiguration> {
039            public ExportImportConfigurationWrapper(
040                    ExportImportConfiguration exportImportConfiguration) {
041                    _exportImportConfiguration = exportImportConfiguration;
042            }
043    
044            @Override
045            public Class<?> getModelClass() {
046                    return ExportImportConfiguration.class;
047            }
048    
049            @Override
050            public String getModelClassName() {
051                    return ExportImportConfiguration.class.getName();
052            }
053    
054            @Override
055            public Map<String, Object> getModelAttributes() {
056                    Map<String, Object> attributes = new HashMap<String, Object>();
057    
058                    attributes.put("mvccVersion", getMvccVersion());
059                    attributes.put("exportImportConfigurationId",
060                            getExportImportConfigurationId());
061                    attributes.put("groupId", getGroupId());
062                    attributes.put("companyId", getCompanyId());
063                    attributes.put("userId", getUserId());
064                    attributes.put("userName", getUserName());
065                    attributes.put("createDate", getCreateDate());
066                    attributes.put("modifiedDate", getModifiedDate());
067                    attributes.put("name", getName());
068                    attributes.put("description", getDescription());
069                    attributes.put("type", getType());
070                    attributes.put("settings", getSettings());
071                    attributes.put("status", getStatus());
072                    attributes.put("statusByUserId", getStatusByUserId());
073                    attributes.put("statusByUserName", getStatusByUserName());
074                    attributes.put("statusDate", getStatusDate());
075    
076                    return attributes;
077            }
078    
079            @Override
080            public void setModelAttributes(Map<String, Object> attributes) {
081                    Long mvccVersion = (Long)attributes.get("mvccVersion");
082    
083                    if (mvccVersion != null) {
084                            setMvccVersion(mvccVersion);
085                    }
086    
087                    Long exportImportConfigurationId = (Long)attributes.get(
088                                    "exportImportConfigurationId");
089    
090                    if (exportImportConfigurationId != null) {
091                            setExportImportConfigurationId(exportImportConfigurationId);
092                    }
093    
094                    Long groupId = (Long)attributes.get("groupId");
095    
096                    if (groupId != null) {
097                            setGroupId(groupId);
098                    }
099    
100                    Long companyId = (Long)attributes.get("companyId");
101    
102                    if (companyId != null) {
103                            setCompanyId(companyId);
104                    }
105    
106                    Long userId = (Long)attributes.get("userId");
107    
108                    if (userId != null) {
109                            setUserId(userId);
110                    }
111    
112                    String userName = (String)attributes.get("userName");
113    
114                    if (userName != null) {
115                            setUserName(userName);
116                    }
117    
118                    Date createDate = (Date)attributes.get("createDate");
119    
120                    if (createDate != null) {
121                            setCreateDate(createDate);
122                    }
123    
124                    Date modifiedDate = (Date)attributes.get("modifiedDate");
125    
126                    if (modifiedDate != null) {
127                            setModifiedDate(modifiedDate);
128                    }
129    
130                    String name = (String)attributes.get("name");
131    
132                    if (name != null) {
133                            setName(name);
134                    }
135    
136                    String description = (String)attributes.get("description");
137    
138                    if (description != null) {
139                            setDescription(description);
140                    }
141    
142                    Integer type = (Integer)attributes.get("type");
143    
144                    if (type != null) {
145                            setType(type);
146                    }
147    
148                    String settings = (String)attributes.get("settings");
149    
150                    if (settings != null) {
151                            setSettings(settings);
152                    }
153    
154                    Integer status = (Integer)attributes.get("status");
155    
156                    if (status != null) {
157                            setStatus(status);
158                    }
159    
160                    Long statusByUserId = (Long)attributes.get("statusByUserId");
161    
162                    if (statusByUserId != null) {
163                            setStatusByUserId(statusByUserId);
164                    }
165    
166                    String statusByUserName = (String)attributes.get("statusByUserName");
167    
168                    if (statusByUserName != null) {
169                            setStatusByUserName(statusByUserName);
170                    }
171    
172                    Date statusDate = (Date)attributes.get("statusDate");
173    
174                    if (statusDate != null) {
175                            setStatusDate(statusDate);
176                    }
177            }
178    
179            @Override
180            public java.lang.Object clone() {
181                    return new ExportImportConfigurationWrapper((ExportImportConfiguration)_exportImportConfiguration.clone());
182            }
183    
184            @Override
185            public int compareTo(
186                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration) {
187                    return _exportImportConfiguration.compareTo(exportImportConfiguration);
188            }
189    
190            /**
191            * Returns the company ID of this export import configuration.
192            *
193            * @return the company ID of this export import configuration
194            */
195            @Override
196            public long getCompanyId() {
197                    return _exportImportConfiguration.getCompanyId();
198            }
199    
200            /**
201            * Returns the create date of this export import configuration.
202            *
203            * @return the create date of this export import configuration
204            */
205            @Override
206            public Date getCreateDate() {
207                    return _exportImportConfiguration.getCreateDate();
208            }
209    
210            /**
211            * Returns the description of this export import configuration.
212            *
213            * @return the description of this export import configuration
214            */
215            @Override
216            public java.lang.String getDescription() {
217                    return _exportImportConfiguration.getDescription();
218            }
219    
220            @Override
221            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
222                    return _exportImportConfiguration.getExpandoBridge();
223            }
224    
225            /**
226            * Returns the export import configuration ID of this export import configuration.
227            *
228            * @return the export import configuration ID of this export import configuration
229            */
230            @Override
231            public long getExportImportConfigurationId() {
232                    return _exportImportConfiguration.getExportImportConfigurationId();
233            }
234    
235            /**
236            * Returns the group ID of this export import configuration.
237            *
238            * @return the group ID of this export import configuration
239            */
240            @Override
241            public long getGroupId() {
242                    return _exportImportConfiguration.getGroupId();
243            }
244    
245            /**
246            * Returns the modified date of this export import configuration.
247            *
248            * @return the modified date of this export import configuration
249            */
250            @Override
251            public Date getModifiedDate() {
252                    return _exportImportConfiguration.getModifiedDate();
253            }
254    
255            /**
256            * Returns the mvcc version of this export import configuration.
257            *
258            * @return the mvcc version of this export import configuration
259            */
260            @Override
261            public long getMvccVersion() {
262                    return _exportImportConfiguration.getMvccVersion();
263            }
264    
265            /**
266            * Returns the name of this export import configuration.
267            *
268            * @return the name of this export import configuration
269            */
270            @Override
271            public java.lang.String getName() {
272                    return _exportImportConfiguration.getName();
273            }
274    
275            /**
276            * Returns the primary key of this export import configuration.
277            *
278            * @return the primary key of this export import configuration
279            */
280            @Override
281            public long getPrimaryKey() {
282                    return _exportImportConfiguration.getPrimaryKey();
283            }
284    
285            @Override
286            public java.io.Serializable getPrimaryKeyObj() {
287                    return _exportImportConfiguration.getPrimaryKeyObj();
288            }
289    
290            /**
291            * Returns the settings of this export import configuration.
292            *
293            * @return the settings of this export import configuration
294            */
295            @Override
296            public java.lang.String getSettings() {
297                    return _exportImportConfiguration.getSettings();
298            }
299    
300            @Override
301            public Map<java.lang.String, java.io.Serializable> getSettingsMap() {
302                    return _exportImportConfiguration.getSettingsMap();
303            }
304    
305            /**
306            * Returns the status of this export import configuration.
307            *
308            * @return the status of this export import configuration
309            */
310            @Override
311            public int getStatus() {
312                    return _exportImportConfiguration.getStatus();
313            }
314    
315            /**
316            * Returns the status by user ID of this export import configuration.
317            *
318            * @return the status by user ID of this export import configuration
319            */
320            @Override
321            public long getStatusByUserId() {
322                    return _exportImportConfiguration.getStatusByUserId();
323            }
324    
325            /**
326            * Returns the status by user name of this export import configuration.
327            *
328            * @return the status by user name of this export import configuration
329            */
330            @Override
331            public java.lang.String getStatusByUserName() {
332                    return _exportImportConfiguration.getStatusByUserName();
333            }
334    
335            /**
336            * Returns the status by user uuid of this export import configuration.
337            *
338            * @return the status by user uuid of this export import configuration
339            */
340            @Override
341            public java.lang.String getStatusByUserUuid() {
342                    return _exportImportConfiguration.getStatusByUserUuid();
343            }
344    
345            /**
346            * Returns the status date of this export import configuration.
347            *
348            * @return the status date of this export import configuration
349            */
350            @Override
351            public Date getStatusDate() {
352                    return _exportImportConfiguration.getStatusDate();
353            }
354    
355            /**
356            * Returns the trash entry created when this export import configuration was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this export import configuration.
357            *
358            * @return the trash entry created when this export import configuration was moved to the Recycle Bin
359            */
360            @Override
361            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
362                    throws com.liferay.portal.kernel.exception.PortalException {
363                    return _exportImportConfiguration.getTrashEntry();
364            }
365    
366            /**
367            * Returns the class primary key of the trash entry for this export import configuration.
368            *
369            * @return the class primary key of the trash entry for this export import configuration
370            */
371            @Override
372            public long getTrashEntryClassPK() {
373                    return _exportImportConfiguration.getTrashEntryClassPK();
374            }
375    
376            /**
377            * Returns the trash handler for this export import configuration.
378            *
379            * @return the trash handler for this export import configuration
380            */
381            @Override
382            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
383                    return _exportImportConfiguration.getTrashHandler();
384            }
385    
386            /**
387            * Returns the type of this export import configuration.
388            *
389            * @return the type of this export import configuration
390            */
391            @Override
392            public int getType() {
393                    return _exportImportConfiguration.getType();
394            }
395    
396            /**
397            * Returns the user ID of this export import configuration.
398            *
399            * @return the user ID of this export import configuration
400            */
401            @Override
402            public long getUserId() {
403                    return _exportImportConfiguration.getUserId();
404            }
405    
406            /**
407            * Returns the user name of this export import configuration.
408            *
409            * @return the user name of this export import configuration
410            */
411            @Override
412            public java.lang.String getUserName() {
413                    return _exportImportConfiguration.getUserName();
414            }
415    
416            /**
417            * Returns the user uuid of this export import configuration.
418            *
419            * @return the user uuid of this export import configuration
420            */
421            @Override
422            public java.lang.String getUserUuid() {
423                    return _exportImportConfiguration.getUserUuid();
424            }
425    
426            @Override
427            public int hashCode() {
428                    return _exportImportConfiguration.hashCode();
429            }
430    
431            /**
432            * Returns <code>true</code> if this export import configuration is approved.
433            *
434            * @return <code>true</code> if this export import configuration is approved; <code>false</code> otherwise
435            */
436            @Override
437            public boolean isApproved() {
438                    return _exportImportConfiguration.isApproved();
439            }
440    
441            @Override
442            public boolean isCachedModel() {
443                    return _exportImportConfiguration.isCachedModel();
444            }
445    
446            /**
447            * Returns <code>true</code> if this export import configuration is denied.
448            *
449            * @return <code>true</code> if this export import configuration is denied; <code>false</code> otherwise
450            */
451            @Override
452            public boolean isDenied() {
453                    return _exportImportConfiguration.isDenied();
454            }
455    
456            /**
457            * Returns <code>true</code> if this export import configuration is a draft.
458            *
459            * @return <code>true</code> if this export import configuration is a draft; <code>false</code> otherwise
460            */
461            @Override
462            public boolean isDraft() {
463                    return _exportImportConfiguration.isDraft();
464            }
465    
466            @Override
467            public boolean isEscapedModel() {
468                    return _exportImportConfiguration.isEscapedModel();
469            }
470    
471            /**
472            * Returns <code>true</code> if this export import configuration is expired.
473            *
474            * @return <code>true</code> if this export import configuration is expired; <code>false</code> otherwise
475            */
476            @Override
477            public boolean isExpired() {
478                    return _exportImportConfiguration.isExpired();
479            }
480    
481            /**
482            * Returns <code>true</code> if this export import configuration is in the Recycle Bin.
483            *
484            * @return <code>true</code> if this export import configuration is in the Recycle Bin; <code>false</code> otherwise
485            */
486            @Override
487            public boolean isInTrash() {
488                    return _exportImportConfiguration.isInTrash();
489            }
490    
491            /**
492            * Returns <code>true</code> if the parent of this export import configuration is in the Recycle Bin.
493            *
494            * @return <code>true</code> if the parent of this export import configuration is in the Recycle Bin; <code>false</code> otherwise
495            */
496            @Override
497            public boolean isInTrashContainer() {
498                    return _exportImportConfiguration.isInTrashContainer();
499            }
500    
501            @Override
502            public boolean isInTrashExplicitly() {
503                    return _exportImportConfiguration.isInTrashExplicitly();
504            }
505    
506            @Override
507            public boolean isInTrashImplicitly() {
508                    return _exportImportConfiguration.isInTrashImplicitly();
509            }
510    
511            /**
512            * Returns <code>true</code> if this export import configuration is inactive.
513            *
514            * @return <code>true</code> if this export import configuration is inactive; <code>false</code> otherwise
515            */
516            @Override
517            public boolean isInactive() {
518                    return _exportImportConfiguration.isInactive();
519            }
520    
521            /**
522            * Returns <code>true</code> if this export import configuration is incomplete.
523            *
524            * @return <code>true</code> if this export import configuration is incomplete; <code>false</code> otherwise
525            */
526            @Override
527            public boolean isIncomplete() {
528                    return _exportImportConfiguration.isIncomplete();
529            }
530    
531            @Override
532            public boolean isNew() {
533                    return _exportImportConfiguration.isNew();
534            }
535    
536            /**
537            * Returns <code>true</code> if this export import configuration is pending.
538            *
539            * @return <code>true</code> if this export import configuration is pending; <code>false</code> otherwise
540            */
541            @Override
542            public boolean isPending() {
543                    return _exportImportConfiguration.isPending();
544            }
545    
546            /**
547            * Returns <code>true</code> if this export import configuration is scheduled.
548            *
549            * @return <code>true</code> if this export import configuration is scheduled; <code>false</code> otherwise
550            */
551            @Override
552            public boolean isScheduled() {
553                    return _exportImportConfiguration.isScheduled();
554            }
555    
556            @Override
557            public void persist() {
558                    _exportImportConfiguration.persist();
559            }
560    
561            @Override
562            public void setCachedModel(boolean cachedModel) {
563                    _exportImportConfiguration.setCachedModel(cachedModel);
564            }
565    
566            /**
567            * Sets the company ID of this export import configuration.
568            *
569            * @param companyId the company ID of this export import configuration
570            */
571            @Override
572            public void setCompanyId(long companyId) {
573                    _exportImportConfiguration.setCompanyId(companyId);
574            }
575    
576            /**
577            * Sets the create date of this export import configuration.
578            *
579            * @param createDate the create date of this export import configuration
580            */
581            @Override
582            public void setCreateDate(Date createDate) {
583                    _exportImportConfiguration.setCreateDate(createDate);
584            }
585    
586            /**
587            * Sets the description of this export import configuration.
588            *
589            * @param description the description of this export import configuration
590            */
591            @Override
592            public void setDescription(java.lang.String description) {
593                    _exportImportConfiguration.setDescription(description);
594            }
595    
596            @Override
597            public void setExpandoBridgeAttributes(
598                    com.liferay.portal.model.BaseModel<?> baseModel) {
599                    _exportImportConfiguration.setExpandoBridgeAttributes(baseModel);
600            }
601    
602            @Override
603            public void setExpandoBridgeAttributes(
604                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
605                    _exportImportConfiguration.setExpandoBridgeAttributes(expandoBridge);
606            }
607    
608            @Override
609            public void setExpandoBridgeAttributes(
610                    com.liferay.portal.service.ServiceContext serviceContext) {
611                    _exportImportConfiguration.setExpandoBridgeAttributes(serviceContext);
612            }
613    
614            /**
615            * Sets the export import configuration ID of this export import configuration.
616            *
617            * @param exportImportConfigurationId the export import configuration ID of this export import configuration
618            */
619            @Override
620            public void setExportImportConfigurationId(long exportImportConfigurationId) {
621                    _exportImportConfiguration.setExportImportConfigurationId(exportImportConfigurationId);
622            }
623    
624            /**
625            * Sets the group ID of this export import configuration.
626            *
627            * @param groupId the group ID of this export import configuration
628            */
629            @Override
630            public void setGroupId(long groupId) {
631                    _exportImportConfiguration.setGroupId(groupId);
632            }
633    
634            /**
635            * Sets the modified date of this export import configuration.
636            *
637            * @param modifiedDate the modified date of this export import configuration
638            */
639            @Override
640            public void setModifiedDate(Date modifiedDate) {
641                    _exportImportConfiguration.setModifiedDate(modifiedDate);
642            }
643    
644            /**
645            * Sets the mvcc version of this export import configuration.
646            *
647            * @param mvccVersion the mvcc version of this export import configuration
648            */
649            @Override
650            public void setMvccVersion(long mvccVersion) {
651                    _exportImportConfiguration.setMvccVersion(mvccVersion);
652            }
653    
654            /**
655            * Sets the name of this export import configuration.
656            *
657            * @param name the name of this export import configuration
658            */
659            @Override
660            public void setName(java.lang.String name) {
661                    _exportImportConfiguration.setName(name);
662            }
663    
664            @Override
665            public void setNew(boolean n) {
666                    _exportImportConfiguration.setNew(n);
667            }
668    
669            /**
670            * Sets the primary key of this export import configuration.
671            *
672            * @param primaryKey the primary key of this export import configuration
673            */
674            @Override
675            public void setPrimaryKey(long primaryKey) {
676                    _exportImportConfiguration.setPrimaryKey(primaryKey);
677            }
678    
679            @Override
680            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
681                    _exportImportConfiguration.setPrimaryKeyObj(primaryKeyObj);
682            }
683    
684            /**
685            * Sets the settings of this export import configuration.
686            *
687            * @param settings the settings of this export import configuration
688            */
689            @Override
690            public void setSettings(java.lang.String settings) {
691                    _exportImportConfiguration.setSettings(settings);
692            }
693    
694            /**
695            * Sets the status of this export import configuration.
696            *
697            * @param status the status of this export import configuration
698            */
699            @Override
700            public void setStatus(int status) {
701                    _exportImportConfiguration.setStatus(status);
702            }
703    
704            /**
705            * Sets the status by user ID of this export import configuration.
706            *
707            * @param statusByUserId the status by user ID of this export import configuration
708            */
709            @Override
710            public void setStatusByUserId(long statusByUserId) {
711                    _exportImportConfiguration.setStatusByUserId(statusByUserId);
712            }
713    
714            /**
715            * Sets the status by user name of this export import configuration.
716            *
717            * @param statusByUserName the status by user name of this export import configuration
718            */
719            @Override
720            public void setStatusByUserName(java.lang.String statusByUserName) {
721                    _exportImportConfiguration.setStatusByUserName(statusByUserName);
722            }
723    
724            /**
725            * Sets the status by user uuid of this export import configuration.
726            *
727            * @param statusByUserUuid the status by user uuid of this export import configuration
728            */
729            @Override
730            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
731                    _exportImportConfiguration.setStatusByUserUuid(statusByUserUuid);
732            }
733    
734            /**
735            * Sets the status date of this export import configuration.
736            *
737            * @param statusDate the status date of this export import configuration
738            */
739            @Override
740            public void setStatusDate(Date statusDate) {
741                    _exportImportConfiguration.setStatusDate(statusDate);
742            }
743    
744            /**
745            * Sets the type of this export import configuration.
746            *
747            * @param type the type of this export import configuration
748            */
749            @Override
750            public void setType(int type) {
751                    _exportImportConfiguration.setType(type);
752            }
753    
754            /**
755            * Sets the user ID of this export import configuration.
756            *
757            * @param userId the user ID of this export import configuration
758            */
759            @Override
760            public void setUserId(long userId) {
761                    _exportImportConfiguration.setUserId(userId);
762            }
763    
764            /**
765            * Sets the user name of this export import configuration.
766            *
767            * @param userName the user name of this export import configuration
768            */
769            @Override
770            public void setUserName(java.lang.String userName) {
771                    _exportImportConfiguration.setUserName(userName);
772            }
773    
774            /**
775            * Sets the user uuid of this export import configuration.
776            *
777            * @param userUuid the user uuid of this export import configuration
778            */
779            @Override
780            public void setUserUuid(java.lang.String userUuid) {
781                    _exportImportConfiguration.setUserUuid(userUuid);
782            }
783    
784            @Override
785            public com.liferay.portal.model.CacheModel<com.liferay.portlet.exportimport.model.ExportImportConfiguration> toCacheModel() {
786                    return _exportImportConfiguration.toCacheModel();
787            }
788    
789            @Override
790            public com.liferay.portlet.exportimport.model.ExportImportConfiguration toEscapedModel() {
791                    return new ExportImportConfigurationWrapper(_exportImportConfiguration.toEscapedModel());
792            }
793    
794            @Override
795            public java.lang.String toString() {
796                    return _exportImportConfiguration.toString();
797            }
798    
799            @Override
800            public com.liferay.portlet.exportimport.model.ExportImportConfiguration toUnescapedModel() {
801                    return new ExportImportConfigurationWrapper(_exportImportConfiguration.toUnescapedModel());
802            }
803    
804            @Override
805            public java.lang.String toXmlString() {
806                    return _exportImportConfiguration.toXmlString();
807            }
808    
809            @Override
810            public boolean equals(Object obj) {
811                    if (this == obj) {
812                            return true;
813                    }
814    
815                    if (!(obj instanceof ExportImportConfigurationWrapper)) {
816                            return false;
817                    }
818    
819                    ExportImportConfigurationWrapper exportImportConfigurationWrapper = (ExportImportConfigurationWrapper)obj;
820    
821                    if (Validator.equals(_exportImportConfiguration,
822                                            exportImportConfigurationWrapper._exportImportConfiguration)) {
823                            return true;
824                    }
825    
826                    return false;
827            }
828    
829            @Override
830            public ExportImportConfiguration getWrappedModel() {
831                    return _exportImportConfiguration;
832            }
833    
834            @Override
835            public boolean isEntityCacheEnabled() {
836                    return _exportImportConfiguration.isEntityCacheEnabled();
837            }
838    
839            @Override
840            public boolean isFinderCacheEnabled() {
841                    return _exportImportConfiguration.isFinderCacheEnabled();
842            }
843    
844            @Override
845            public void resetOriginalValues() {
846                    _exportImportConfiguration.resetOriginalValues();
847            }
848    
849            private final ExportImportConfiguration _exportImportConfiguration;
850    }