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