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