001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.util.Date;
018    import java.util.HashMap;
019    import java.util.Map;
020    
021    /**
022     * <p>
023     * This class is a wrapper for {@link RepositoryEntry}.
024     * </p>
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       RepositoryEntry
028     * @generated
029     */
030    public class RepositoryEntryWrapper implements RepositoryEntry,
031            ModelWrapper<RepositoryEntry> {
032            public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) {
033                    _repositoryEntry = repositoryEntry;
034            }
035    
036            public Class<?> getModelClass() {
037                    return RepositoryEntry.class;
038            }
039    
040            public String getModelClassName() {
041                    return RepositoryEntry.class.getName();
042            }
043    
044            public Map<String, Object> getModelAttributes() {
045                    Map<String, Object> attributes = new HashMap<String, Object>();
046    
047                    attributes.put("uuid", getUuid());
048                    attributes.put("repositoryEntryId", getRepositoryEntryId());
049                    attributes.put("groupId", getGroupId());
050                    attributes.put("companyId", getCompanyId());
051                    attributes.put("userId", getUserId());
052                    attributes.put("userName", getUserName());
053                    attributes.put("createDate", getCreateDate());
054                    attributes.put("modifiedDate", getModifiedDate());
055                    attributes.put("repositoryId", getRepositoryId());
056                    attributes.put("mappedId", getMappedId());
057                    attributes.put("manualCheckInRequired", getManualCheckInRequired());
058    
059                    return attributes;
060            }
061    
062            public void setModelAttributes(Map<String, Object> attributes) {
063                    String uuid = (String)attributes.get("uuid");
064    
065                    if (uuid != null) {
066                            setUuid(uuid);
067                    }
068    
069                    Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
070    
071                    if (repositoryEntryId != null) {
072                            setRepositoryEntryId(repositoryEntryId);
073                    }
074    
075                    Long groupId = (Long)attributes.get("groupId");
076    
077                    if (groupId != null) {
078                            setGroupId(groupId);
079                    }
080    
081                    Long companyId = (Long)attributes.get("companyId");
082    
083                    if (companyId != null) {
084                            setCompanyId(companyId);
085                    }
086    
087                    Long userId = (Long)attributes.get("userId");
088    
089                    if (userId != null) {
090                            setUserId(userId);
091                    }
092    
093                    String userName = (String)attributes.get("userName");
094    
095                    if (userName != null) {
096                            setUserName(userName);
097                    }
098    
099                    Date createDate = (Date)attributes.get("createDate");
100    
101                    if (createDate != null) {
102                            setCreateDate(createDate);
103                    }
104    
105                    Date modifiedDate = (Date)attributes.get("modifiedDate");
106    
107                    if (modifiedDate != null) {
108                            setModifiedDate(modifiedDate);
109                    }
110    
111                    Long repositoryId = (Long)attributes.get("repositoryId");
112    
113                    if (repositoryId != null) {
114                            setRepositoryId(repositoryId);
115                    }
116    
117                    String mappedId = (String)attributes.get("mappedId");
118    
119                    if (mappedId != null) {
120                            setMappedId(mappedId);
121                    }
122    
123                    Boolean manualCheckInRequired = (Boolean)attributes.get(
124                                    "manualCheckInRequired");
125    
126                    if (manualCheckInRequired != null) {
127                            setManualCheckInRequired(manualCheckInRequired);
128                    }
129            }
130    
131            /**
132            * Returns the primary key of this repository entry.
133            *
134            * @return the primary key of this repository entry
135            */
136            public long getPrimaryKey() {
137                    return _repositoryEntry.getPrimaryKey();
138            }
139    
140            /**
141            * Sets the primary key of this repository entry.
142            *
143            * @param primaryKey the primary key of this repository entry
144            */
145            public void setPrimaryKey(long primaryKey) {
146                    _repositoryEntry.setPrimaryKey(primaryKey);
147            }
148    
149            /**
150            * Returns the uuid of this repository entry.
151            *
152            * @return the uuid of this repository entry
153            */
154            public java.lang.String getUuid() {
155                    return _repositoryEntry.getUuid();
156            }
157    
158            /**
159            * Sets the uuid of this repository entry.
160            *
161            * @param uuid the uuid of this repository entry
162            */
163            public void setUuid(java.lang.String uuid) {
164                    _repositoryEntry.setUuid(uuid);
165            }
166    
167            /**
168            * Returns the repository entry ID of this repository entry.
169            *
170            * @return the repository entry ID of this repository entry
171            */
172            public long getRepositoryEntryId() {
173                    return _repositoryEntry.getRepositoryEntryId();
174            }
175    
176            /**
177            * Sets the repository entry ID of this repository entry.
178            *
179            * @param repositoryEntryId the repository entry ID of this repository entry
180            */
181            public void setRepositoryEntryId(long repositoryEntryId) {
182                    _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
183            }
184    
185            /**
186            * Returns the group ID of this repository entry.
187            *
188            * @return the group ID of this repository entry
189            */
190            public long getGroupId() {
191                    return _repositoryEntry.getGroupId();
192            }
193    
194            /**
195            * Sets the group ID of this repository entry.
196            *
197            * @param groupId the group ID of this repository entry
198            */
199            public void setGroupId(long groupId) {
200                    _repositoryEntry.setGroupId(groupId);
201            }
202    
203            /**
204            * Returns the company ID of this repository entry.
205            *
206            * @return the company ID of this repository entry
207            */
208            public long getCompanyId() {
209                    return _repositoryEntry.getCompanyId();
210            }
211    
212            /**
213            * Sets the company ID of this repository entry.
214            *
215            * @param companyId the company ID of this repository entry
216            */
217            public void setCompanyId(long companyId) {
218                    _repositoryEntry.setCompanyId(companyId);
219            }
220    
221            /**
222            * Returns the user ID of this repository entry.
223            *
224            * @return the user ID of this repository entry
225            */
226            public long getUserId() {
227                    return _repositoryEntry.getUserId();
228            }
229    
230            /**
231            * Sets the user ID of this repository entry.
232            *
233            * @param userId the user ID of this repository entry
234            */
235            public void setUserId(long userId) {
236                    _repositoryEntry.setUserId(userId);
237            }
238    
239            /**
240            * Returns the user uuid of this repository entry.
241            *
242            * @return the user uuid of this repository entry
243            * @throws SystemException if a system exception occurred
244            */
245            public java.lang.String getUserUuid()
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _repositoryEntry.getUserUuid();
248            }
249    
250            /**
251            * Sets the user uuid of this repository entry.
252            *
253            * @param userUuid the user uuid of this repository entry
254            */
255            public void setUserUuid(java.lang.String userUuid) {
256                    _repositoryEntry.setUserUuid(userUuid);
257            }
258    
259            /**
260            * Returns the user name of this repository entry.
261            *
262            * @return the user name of this repository entry
263            */
264            public java.lang.String getUserName() {
265                    return _repositoryEntry.getUserName();
266            }
267    
268            /**
269            * Sets the user name of this repository entry.
270            *
271            * @param userName the user name of this repository entry
272            */
273            public void setUserName(java.lang.String userName) {
274                    _repositoryEntry.setUserName(userName);
275            }
276    
277            /**
278            * Returns the create date of this repository entry.
279            *
280            * @return the create date of this repository entry
281            */
282            public java.util.Date getCreateDate() {
283                    return _repositoryEntry.getCreateDate();
284            }
285    
286            /**
287            * Sets the create date of this repository entry.
288            *
289            * @param createDate the create date of this repository entry
290            */
291            public void setCreateDate(java.util.Date createDate) {
292                    _repositoryEntry.setCreateDate(createDate);
293            }
294    
295            /**
296            * Returns the modified date of this repository entry.
297            *
298            * @return the modified date of this repository entry
299            */
300            public java.util.Date getModifiedDate() {
301                    return _repositoryEntry.getModifiedDate();
302            }
303    
304            /**
305            * Sets the modified date of this repository entry.
306            *
307            * @param modifiedDate the modified date of this repository entry
308            */
309            public void setModifiedDate(java.util.Date modifiedDate) {
310                    _repositoryEntry.setModifiedDate(modifiedDate);
311            }
312    
313            /**
314            * Returns the repository ID of this repository entry.
315            *
316            * @return the repository ID of this repository entry
317            */
318            public long getRepositoryId() {
319                    return _repositoryEntry.getRepositoryId();
320            }
321    
322            /**
323            * Sets the repository ID of this repository entry.
324            *
325            * @param repositoryId the repository ID of this repository entry
326            */
327            public void setRepositoryId(long repositoryId) {
328                    _repositoryEntry.setRepositoryId(repositoryId);
329            }
330    
331            /**
332            * Returns the mapped ID of this repository entry.
333            *
334            * @return the mapped ID of this repository entry
335            */
336            public java.lang.String getMappedId() {
337                    return _repositoryEntry.getMappedId();
338            }
339    
340            /**
341            * Sets the mapped ID of this repository entry.
342            *
343            * @param mappedId the mapped ID of this repository entry
344            */
345            public void setMappedId(java.lang.String mappedId) {
346                    _repositoryEntry.setMappedId(mappedId);
347            }
348    
349            /**
350            * Returns the manual check in required of this repository entry.
351            *
352            * @return the manual check in required of this repository entry
353            */
354            public boolean getManualCheckInRequired() {
355                    return _repositoryEntry.getManualCheckInRequired();
356            }
357    
358            /**
359            * Returns <code>true</code> if this repository entry is manual check in required.
360            *
361            * @return <code>true</code> if this repository entry is manual check in required; <code>false</code> otherwise
362            */
363            public boolean isManualCheckInRequired() {
364                    return _repositoryEntry.isManualCheckInRequired();
365            }
366    
367            /**
368            * Sets whether this repository entry is manual check in required.
369            *
370            * @param manualCheckInRequired the manual check in required of this repository entry
371            */
372            public void setManualCheckInRequired(boolean manualCheckInRequired) {
373                    _repositoryEntry.setManualCheckInRequired(manualCheckInRequired);
374            }
375    
376            public boolean isNew() {
377                    return _repositoryEntry.isNew();
378            }
379    
380            public void setNew(boolean n) {
381                    _repositoryEntry.setNew(n);
382            }
383    
384            public boolean isCachedModel() {
385                    return _repositoryEntry.isCachedModel();
386            }
387    
388            public void setCachedModel(boolean cachedModel) {
389                    _repositoryEntry.setCachedModel(cachedModel);
390            }
391    
392            public boolean isEscapedModel() {
393                    return _repositoryEntry.isEscapedModel();
394            }
395    
396            public java.io.Serializable getPrimaryKeyObj() {
397                    return _repositoryEntry.getPrimaryKeyObj();
398            }
399    
400            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
401                    _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
402            }
403    
404            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
405                    return _repositoryEntry.getExpandoBridge();
406            }
407    
408            public void setExpandoBridgeAttributes(
409                    com.liferay.portal.model.BaseModel<?> baseModel) {
410                    _repositoryEntry.setExpandoBridgeAttributes(baseModel);
411            }
412    
413            public void setExpandoBridgeAttributes(
414                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
415                    _repositoryEntry.setExpandoBridgeAttributes(expandoBridge);
416            }
417    
418            public void setExpandoBridgeAttributes(
419                    com.liferay.portal.service.ServiceContext serviceContext) {
420                    _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
421            }
422    
423            @Override
424            public java.lang.Object clone() {
425                    return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
426            }
427    
428            public int compareTo(
429                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
430                    return _repositoryEntry.compareTo(repositoryEntry);
431            }
432    
433            @Override
434            public int hashCode() {
435                    return _repositoryEntry.hashCode();
436            }
437    
438            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
439                    return _repositoryEntry.toCacheModel();
440            }
441    
442            public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
443                    return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
444            }
445    
446            public com.liferay.portal.model.RepositoryEntry toUnescapedModel() {
447                    return new RepositoryEntryWrapper(_repositoryEntry.toUnescapedModel());
448            }
449    
450            @Override
451            public java.lang.String toString() {
452                    return _repositoryEntry.toString();
453            }
454    
455            public java.lang.String toXmlString() {
456                    return _repositoryEntry.toXmlString();
457            }
458    
459            public void persist()
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    _repositoryEntry.persist();
462            }
463    
464            /**
465             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
466             */
467            public RepositoryEntry getWrappedRepositoryEntry() {
468                    return _repositoryEntry;
469            }
470    
471            public RepositoryEntry getWrappedModel() {
472                    return _repositoryEntry;
473            }
474    
475            public void resetOriginalValues() {
476                    _repositoryEntry.resetOriginalValues();
477            }
478    
479            private RepositoryEntry _repositoryEntry;
480    }