001    /**
002     * Copyright (c) 2000-2012 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.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link RepositoryEntry}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       RepositoryEntry
027     * @generated
028     */
029    public class RepositoryEntryWrapper implements RepositoryEntry,
030            ModelWrapper<RepositoryEntry> {
031            public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) {
032                    _repositoryEntry = repositoryEntry;
033            }
034    
035            public Class<?> getModelClass() {
036                    return RepositoryEntry.class;
037            }
038    
039            public String getModelClassName() {
040                    return RepositoryEntry.class.getName();
041            }
042    
043            public Map<String, Object> getModelAttributes() {
044                    Map<String, Object> attributes = new HashMap<String, Object>();
045    
046                    attributes.put("uuid", getUuid());
047                    attributes.put("repositoryEntryId", getRepositoryEntryId());
048                    attributes.put("groupId", getGroupId());
049                    attributes.put("repositoryId", getRepositoryId());
050                    attributes.put("mappedId", getMappedId());
051                    attributes.put("manualCheckInRequired", getManualCheckInRequired());
052    
053                    return attributes;
054            }
055    
056            public void setModelAttributes(Map<String, Object> attributes) {
057                    String uuid = (String)attributes.get("uuid");
058    
059                    if (uuid != null) {
060                            setUuid(uuid);
061                    }
062    
063                    Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
064    
065                    if (repositoryEntryId != null) {
066                            setRepositoryEntryId(repositoryEntryId);
067                    }
068    
069                    Long groupId = (Long)attributes.get("groupId");
070    
071                    if (groupId != null) {
072                            setGroupId(groupId);
073                    }
074    
075                    Long repositoryId = (Long)attributes.get("repositoryId");
076    
077                    if (repositoryId != null) {
078                            setRepositoryId(repositoryId);
079                    }
080    
081                    String mappedId = (String)attributes.get("mappedId");
082    
083                    if (mappedId != null) {
084                            setMappedId(mappedId);
085                    }
086    
087                    Boolean manualCheckInRequired = (Boolean)attributes.get(
088                                    "manualCheckInRequired");
089    
090                    if (manualCheckInRequired != null) {
091                            setManualCheckInRequired(manualCheckInRequired);
092                    }
093            }
094    
095            /**
096            * Returns the primary key of this repository entry.
097            *
098            * @return the primary key of this repository entry
099            */
100            public long getPrimaryKey() {
101                    return _repositoryEntry.getPrimaryKey();
102            }
103    
104            /**
105            * Sets the primary key of this repository entry.
106            *
107            * @param primaryKey the primary key of this repository entry
108            */
109            public void setPrimaryKey(long primaryKey) {
110                    _repositoryEntry.setPrimaryKey(primaryKey);
111            }
112    
113            /**
114            * Returns the uuid of this repository entry.
115            *
116            * @return the uuid of this repository entry
117            */
118            public java.lang.String getUuid() {
119                    return _repositoryEntry.getUuid();
120            }
121    
122            /**
123            * Sets the uuid of this repository entry.
124            *
125            * @param uuid the uuid of this repository entry
126            */
127            public void setUuid(java.lang.String uuid) {
128                    _repositoryEntry.setUuid(uuid);
129            }
130    
131            /**
132            * Returns the repository entry ID of this repository entry.
133            *
134            * @return the repository entry ID of this repository entry
135            */
136            public long getRepositoryEntryId() {
137                    return _repositoryEntry.getRepositoryEntryId();
138            }
139    
140            /**
141            * Sets the repository entry ID of this repository entry.
142            *
143            * @param repositoryEntryId the repository entry ID of this repository entry
144            */
145            public void setRepositoryEntryId(long repositoryEntryId) {
146                    _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
147            }
148    
149            /**
150            * Returns the group ID of this repository entry.
151            *
152            * @return the group ID of this repository entry
153            */
154            public long getGroupId() {
155                    return _repositoryEntry.getGroupId();
156            }
157    
158            /**
159            * Sets the group ID of this repository entry.
160            *
161            * @param groupId the group ID of this repository entry
162            */
163            public void setGroupId(long groupId) {
164                    _repositoryEntry.setGroupId(groupId);
165            }
166    
167            /**
168            * Returns the repository ID of this repository entry.
169            *
170            * @return the repository ID of this repository entry
171            */
172            public long getRepositoryId() {
173                    return _repositoryEntry.getRepositoryId();
174            }
175    
176            /**
177            * Sets the repository ID of this repository entry.
178            *
179            * @param repositoryId the repository ID of this repository entry
180            */
181            public void setRepositoryId(long repositoryId) {
182                    _repositoryEntry.setRepositoryId(repositoryId);
183            }
184    
185            /**
186            * Returns the mapped ID of this repository entry.
187            *
188            * @return the mapped ID of this repository entry
189            */
190            public java.lang.String getMappedId() {
191                    return _repositoryEntry.getMappedId();
192            }
193    
194            /**
195            * Sets the mapped ID of this repository entry.
196            *
197            * @param mappedId the mapped ID of this repository entry
198            */
199            public void setMappedId(java.lang.String mappedId) {
200                    _repositoryEntry.setMappedId(mappedId);
201            }
202    
203            /**
204            * Returns the manual check in required of this repository entry.
205            *
206            * @return the manual check in required of this repository entry
207            */
208            public boolean getManualCheckInRequired() {
209                    return _repositoryEntry.getManualCheckInRequired();
210            }
211    
212            /**
213            * Returns <code>true</code> if this repository entry is manual check in required.
214            *
215            * @return <code>true</code> if this repository entry is manual check in required; <code>false</code> otherwise
216            */
217            public boolean isManualCheckInRequired() {
218                    return _repositoryEntry.isManualCheckInRequired();
219            }
220    
221            /**
222            * Sets whether this repository entry is manual check in required.
223            *
224            * @param manualCheckInRequired the manual check in required of this repository entry
225            */
226            public void setManualCheckInRequired(boolean manualCheckInRequired) {
227                    _repositoryEntry.setManualCheckInRequired(manualCheckInRequired);
228            }
229    
230            public boolean isNew() {
231                    return _repositoryEntry.isNew();
232            }
233    
234            public void setNew(boolean n) {
235                    _repositoryEntry.setNew(n);
236            }
237    
238            public boolean isCachedModel() {
239                    return _repositoryEntry.isCachedModel();
240            }
241    
242            public void setCachedModel(boolean cachedModel) {
243                    _repositoryEntry.setCachedModel(cachedModel);
244            }
245    
246            public boolean isEscapedModel() {
247                    return _repositoryEntry.isEscapedModel();
248            }
249    
250            public java.io.Serializable getPrimaryKeyObj() {
251                    return _repositoryEntry.getPrimaryKeyObj();
252            }
253    
254            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
255                    _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
256            }
257    
258            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
259                    return _repositoryEntry.getExpandoBridge();
260            }
261    
262            public void setExpandoBridgeAttributes(
263                    com.liferay.portal.service.ServiceContext serviceContext) {
264                    _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
265            }
266    
267            @Override
268            public java.lang.Object clone() {
269                    return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
270            }
271    
272            public int compareTo(
273                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
274                    return _repositoryEntry.compareTo(repositoryEntry);
275            }
276    
277            @Override
278            public int hashCode() {
279                    return _repositoryEntry.hashCode();
280            }
281    
282            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
283                    return _repositoryEntry.toCacheModel();
284            }
285    
286            public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
287                    return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
288            }
289    
290            public com.liferay.portal.model.RepositoryEntry toUnescapedModel() {
291                    return new RepositoryEntryWrapper(_repositoryEntry.toUnescapedModel());
292            }
293    
294            @Override
295            public java.lang.String toString() {
296                    return _repositoryEntry.toString();
297            }
298    
299            public java.lang.String toXmlString() {
300                    return _repositoryEntry.toXmlString();
301            }
302    
303            public void persist()
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    _repositoryEntry.persist();
306            }
307    
308            /**
309             * @deprecated Renamed to {@link #getWrappedModel}
310             */
311            public RepositoryEntry getWrappedRepositoryEntry() {
312                    return _repositoryEntry;
313            }
314    
315            public RepositoryEntry getWrappedModel() {
316                    return _repositoryEntry;
317            }
318    
319            public void resetOriginalValues() {
320                    _repositoryEntry.resetOriginalValues();
321            }
322    
323            private RepositoryEntry _repositoryEntry;
324    }