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.portlet.asset.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    import java.util.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link AssetTag}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       AssetTag
030     * @generated
031     */
032    public class AssetTagWrapper implements AssetTag, ModelWrapper<AssetTag> {
033            public AssetTagWrapper(AssetTag assetTag) {
034                    _assetTag = assetTag;
035            }
036    
037            public Class<?> getModelClass() {
038                    return AssetTag.class;
039            }
040    
041            public String getModelClassName() {
042                    return AssetTag.class.getName();
043            }
044    
045            public Map<String, Object> getModelAttributes() {
046                    Map<String, Object> attributes = new HashMap<String, Object>();
047    
048                    attributes.put("tagId", getTagId());
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("name", getName());
056                    attributes.put("assetCount", getAssetCount());
057    
058                    return attributes;
059            }
060    
061            public void setModelAttributes(Map<String, Object> attributes) {
062                    Long tagId = (Long)attributes.get("tagId");
063    
064                    if (tagId != null) {
065                            setTagId(tagId);
066                    }
067    
068                    Long groupId = (Long)attributes.get("groupId");
069    
070                    if (groupId != null) {
071                            setGroupId(groupId);
072                    }
073    
074                    Long companyId = (Long)attributes.get("companyId");
075    
076                    if (companyId != null) {
077                            setCompanyId(companyId);
078                    }
079    
080                    Long userId = (Long)attributes.get("userId");
081    
082                    if (userId != null) {
083                            setUserId(userId);
084                    }
085    
086                    String userName = (String)attributes.get("userName");
087    
088                    if (userName != null) {
089                            setUserName(userName);
090                    }
091    
092                    Date createDate = (Date)attributes.get("createDate");
093    
094                    if (createDate != null) {
095                            setCreateDate(createDate);
096                    }
097    
098                    Date modifiedDate = (Date)attributes.get("modifiedDate");
099    
100                    if (modifiedDate != null) {
101                            setModifiedDate(modifiedDate);
102                    }
103    
104                    String name = (String)attributes.get("name");
105    
106                    if (name != null) {
107                            setName(name);
108                    }
109    
110                    Integer assetCount = (Integer)attributes.get("assetCount");
111    
112                    if (assetCount != null) {
113                            setAssetCount(assetCount);
114                    }
115            }
116    
117            /**
118            * Returns the primary key of this asset tag.
119            *
120            * @return the primary key of this asset tag
121            */
122            public long getPrimaryKey() {
123                    return _assetTag.getPrimaryKey();
124            }
125    
126            /**
127            * Sets the primary key of this asset tag.
128            *
129            * @param primaryKey the primary key of this asset tag
130            */
131            public void setPrimaryKey(long primaryKey) {
132                    _assetTag.setPrimaryKey(primaryKey);
133            }
134    
135            /**
136            * Returns the tag ID of this asset tag.
137            *
138            * @return the tag ID of this asset tag
139            */
140            public long getTagId() {
141                    return _assetTag.getTagId();
142            }
143    
144            /**
145            * Sets the tag ID of this asset tag.
146            *
147            * @param tagId the tag ID of this asset tag
148            */
149            public void setTagId(long tagId) {
150                    _assetTag.setTagId(tagId);
151            }
152    
153            /**
154            * Returns the group ID of this asset tag.
155            *
156            * @return the group ID of this asset tag
157            */
158            public long getGroupId() {
159                    return _assetTag.getGroupId();
160            }
161    
162            /**
163            * Sets the group ID of this asset tag.
164            *
165            * @param groupId the group ID of this asset tag
166            */
167            public void setGroupId(long groupId) {
168                    _assetTag.setGroupId(groupId);
169            }
170    
171            /**
172            * Returns the company ID of this asset tag.
173            *
174            * @return the company ID of this asset tag
175            */
176            public long getCompanyId() {
177                    return _assetTag.getCompanyId();
178            }
179    
180            /**
181            * Sets the company ID of this asset tag.
182            *
183            * @param companyId the company ID of this asset tag
184            */
185            public void setCompanyId(long companyId) {
186                    _assetTag.setCompanyId(companyId);
187            }
188    
189            /**
190            * Returns the user ID of this asset tag.
191            *
192            * @return the user ID of this asset tag
193            */
194            public long getUserId() {
195                    return _assetTag.getUserId();
196            }
197    
198            /**
199            * Sets the user ID of this asset tag.
200            *
201            * @param userId the user ID of this asset tag
202            */
203            public void setUserId(long userId) {
204                    _assetTag.setUserId(userId);
205            }
206    
207            /**
208            * Returns the user uuid of this asset tag.
209            *
210            * @return the user uuid of this asset tag
211            * @throws SystemException if a system exception occurred
212            */
213            public java.lang.String getUserUuid()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _assetTag.getUserUuid();
216            }
217    
218            /**
219            * Sets the user uuid of this asset tag.
220            *
221            * @param userUuid the user uuid of this asset tag
222            */
223            public void setUserUuid(java.lang.String userUuid) {
224                    _assetTag.setUserUuid(userUuid);
225            }
226    
227            /**
228            * Returns the user name of this asset tag.
229            *
230            * @return the user name of this asset tag
231            */
232            public java.lang.String getUserName() {
233                    return _assetTag.getUserName();
234            }
235    
236            /**
237            * Sets the user name of this asset tag.
238            *
239            * @param userName the user name of this asset tag
240            */
241            public void setUserName(java.lang.String userName) {
242                    _assetTag.setUserName(userName);
243            }
244    
245            /**
246            * Returns the create date of this asset tag.
247            *
248            * @return the create date of this asset tag
249            */
250            public java.util.Date getCreateDate() {
251                    return _assetTag.getCreateDate();
252            }
253    
254            /**
255            * Sets the create date of this asset tag.
256            *
257            * @param createDate the create date of this asset tag
258            */
259            public void setCreateDate(java.util.Date createDate) {
260                    _assetTag.setCreateDate(createDate);
261            }
262    
263            /**
264            * Returns the modified date of this asset tag.
265            *
266            * @return the modified date of this asset tag
267            */
268            public java.util.Date getModifiedDate() {
269                    return _assetTag.getModifiedDate();
270            }
271    
272            /**
273            * Sets the modified date of this asset tag.
274            *
275            * @param modifiedDate the modified date of this asset tag
276            */
277            public void setModifiedDate(java.util.Date modifiedDate) {
278                    _assetTag.setModifiedDate(modifiedDate);
279            }
280    
281            /**
282            * Returns the name of this asset tag.
283            *
284            * @return the name of this asset tag
285            */
286            public java.lang.String getName() {
287                    return _assetTag.getName();
288            }
289    
290            /**
291            * Sets the name of this asset tag.
292            *
293            * @param name the name of this asset tag
294            */
295            public void setName(java.lang.String name) {
296                    _assetTag.setName(name);
297            }
298    
299            /**
300            * Returns the asset count of this asset tag.
301            *
302            * @return the asset count of this asset tag
303            */
304            public int getAssetCount() {
305                    return _assetTag.getAssetCount();
306            }
307    
308            /**
309            * Sets the asset count of this asset tag.
310            *
311            * @param assetCount the asset count of this asset tag
312            */
313            public void setAssetCount(int assetCount) {
314                    _assetTag.setAssetCount(assetCount);
315            }
316    
317            public boolean isNew() {
318                    return _assetTag.isNew();
319            }
320    
321            public void setNew(boolean n) {
322                    _assetTag.setNew(n);
323            }
324    
325            public boolean isCachedModel() {
326                    return _assetTag.isCachedModel();
327            }
328    
329            public void setCachedModel(boolean cachedModel) {
330                    _assetTag.setCachedModel(cachedModel);
331            }
332    
333            public boolean isEscapedModel() {
334                    return _assetTag.isEscapedModel();
335            }
336    
337            public java.io.Serializable getPrimaryKeyObj() {
338                    return _assetTag.getPrimaryKeyObj();
339            }
340    
341            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
342                    _assetTag.setPrimaryKeyObj(primaryKeyObj);
343            }
344    
345            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
346                    return _assetTag.getExpandoBridge();
347            }
348    
349            public void setExpandoBridgeAttributes(
350                    com.liferay.portal.model.BaseModel<?> baseModel) {
351                    _assetTag.setExpandoBridgeAttributes(baseModel);
352            }
353    
354            public void setExpandoBridgeAttributes(
355                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
356                    _assetTag.setExpandoBridgeAttributes(expandoBridge);
357            }
358    
359            public void setExpandoBridgeAttributes(
360                    com.liferay.portal.service.ServiceContext serviceContext) {
361                    _assetTag.setExpandoBridgeAttributes(serviceContext);
362            }
363    
364            @Override
365            public java.lang.Object clone() {
366                    return new AssetTagWrapper((AssetTag)_assetTag.clone());
367            }
368    
369            public int compareTo(com.liferay.portlet.asset.model.AssetTag assetTag) {
370                    return _assetTag.compareTo(assetTag);
371            }
372    
373            @Override
374            public int hashCode() {
375                    return _assetTag.hashCode();
376            }
377    
378            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetTag> toCacheModel() {
379                    return _assetTag.toCacheModel();
380            }
381    
382            public com.liferay.portlet.asset.model.AssetTag toEscapedModel() {
383                    return new AssetTagWrapper(_assetTag.toEscapedModel());
384            }
385    
386            public com.liferay.portlet.asset.model.AssetTag toUnescapedModel() {
387                    return new AssetTagWrapper(_assetTag.toUnescapedModel());
388            }
389    
390            @Override
391            public java.lang.String toString() {
392                    return _assetTag.toString();
393            }
394    
395            public java.lang.String toXmlString() {
396                    return _assetTag.toXmlString();
397            }
398    
399            public void persist()
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    _assetTag.persist();
402            }
403    
404            /**
405             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
406             */
407            public AssetTag getWrappedAssetTag() {
408                    return _assetTag;
409            }
410    
411            public AssetTag getWrappedModel() {
412                    return _assetTag;
413            }
414    
415            public void resetOriginalValues() {
416                    _assetTag.resetOriginalValues();
417            }
418    
419            private AssetTag _assetTag;
420    }