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