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