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