001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class TeamWrapper implements Team, ModelWrapper<Team> {
033 public TeamWrapper(Team team) {
034 _team = team;
035 }
036
037 public Class<?> getModelClass() {
038 return Team.class;
039 }
040
041 public String getModelClassName() {
042 return Team.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("teamId", getTeamId());
049 attributes.put("companyId", getCompanyId());
050 attributes.put("userId", getUserId());
051 attributes.put("userName", getUserName());
052 attributes.put("createDate", getCreateDate());
053 attributes.put("modifiedDate", getModifiedDate());
054 attributes.put("groupId", getGroupId());
055 attributes.put("name", getName());
056 attributes.put("description", getDescription());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long teamId = (Long)attributes.get("teamId");
063
064 if (teamId != null) {
065 setTeamId(teamId);
066 }
067
068 Long companyId = (Long)attributes.get("companyId");
069
070 if (companyId != null) {
071 setCompanyId(companyId);
072 }
073
074 Long userId = (Long)attributes.get("userId");
075
076 if (userId != null) {
077 setUserId(userId);
078 }
079
080 String userName = (String)attributes.get("userName");
081
082 if (userName != null) {
083 setUserName(userName);
084 }
085
086 Date createDate = (Date)attributes.get("createDate");
087
088 if (createDate != null) {
089 setCreateDate(createDate);
090 }
091
092 Date modifiedDate = (Date)attributes.get("modifiedDate");
093
094 if (modifiedDate != null) {
095 setModifiedDate(modifiedDate);
096 }
097
098 Long groupId = (Long)attributes.get("groupId");
099
100 if (groupId != null) {
101 setGroupId(groupId);
102 }
103
104 String name = (String)attributes.get("name");
105
106 if (name != null) {
107 setName(name);
108 }
109
110 String description = (String)attributes.get("description");
111
112 if (description != null) {
113 setDescription(description);
114 }
115 }
116
117
122 public long getPrimaryKey() {
123 return _team.getPrimaryKey();
124 }
125
126
131 public void setPrimaryKey(long primaryKey) {
132 _team.setPrimaryKey(primaryKey);
133 }
134
135
140 public long getTeamId() {
141 return _team.getTeamId();
142 }
143
144
149 public void setTeamId(long teamId) {
150 _team.setTeamId(teamId);
151 }
152
153
158 public long getCompanyId() {
159 return _team.getCompanyId();
160 }
161
162
167 public void setCompanyId(long companyId) {
168 _team.setCompanyId(companyId);
169 }
170
171
176 public long getUserId() {
177 return _team.getUserId();
178 }
179
180
185 public void setUserId(long userId) {
186 _team.setUserId(userId);
187 }
188
189
195 public java.lang.String getUserUuid()
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return _team.getUserUuid();
198 }
199
200
205 public void setUserUuid(java.lang.String userUuid) {
206 _team.setUserUuid(userUuid);
207 }
208
209
214 public java.lang.String getUserName() {
215 return _team.getUserName();
216 }
217
218
223 public void setUserName(java.lang.String userName) {
224 _team.setUserName(userName);
225 }
226
227
232 public java.util.Date getCreateDate() {
233 return _team.getCreateDate();
234 }
235
236
241 public void setCreateDate(java.util.Date createDate) {
242 _team.setCreateDate(createDate);
243 }
244
245
250 public java.util.Date getModifiedDate() {
251 return _team.getModifiedDate();
252 }
253
254
259 public void setModifiedDate(java.util.Date modifiedDate) {
260 _team.setModifiedDate(modifiedDate);
261 }
262
263
268 public long getGroupId() {
269 return _team.getGroupId();
270 }
271
272
277 public void setGroupId(long groupId) {
278 _team.setGroupId(groupId);
279 }
280
281
286 public java.lang.String getName() {
287 return _team.getName();
288 }
289
290
295 public void setName(java.lang.String name) {
296 _team.setName(name);
297 }
298
299
304 public java.lang.String getDescription() {
305 return _team.getDescription();
306 }
307
308
313 public void setDescription(java.lang.String description) {
314 _team.setDescription(description);
315 }
316
317 public boolean isNew() {
318 return _team.isNew();
319 }
320
321 public void setNew(boolean n) {
322 _team.setNew(n);
323 }
324
325 public boolean isCachedModel() {
326 return _team.isCachedModel();
327 }
328
329 public void setCachedModel(boolean cachedModel) {
330 _team.setCachedModel(cachedModel);
331 }
332
333 public boolean isEscapedModel() {
334 return _team.isEscapedModel();
335 }
336
337 public java.io.Serializable getPrimaryKeyObj() {
338 return _team.getPrimaryKeyObj();
339 }
340
341 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
342 _team.setPrimaryKeyObj(primaryKeyObj);
343 }
344
345 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
346 return _team.getExpandoBridge();
347 }
348
349 public void setExpandoBridgeAttributes(
350 com.liferay.portal.service.ServiceContext serviceContext) {
351 _team.setExpandoBridgeAttributes(serviceContext);
352 }
353
354 @Override
355 public java.lang.Object clone() {
356 return new TeamWrapper((Team)_team.clone());
357 }
358
359 public int compareTo(com.liferay.portal.model.Team team) {
360 return _team.compareTo(team);
361 }
362
363 @Override
364 public int hashCode() {
365 return _team.hashCode();
366 }
367
368 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Team> toCacheModel() {
369 return _team.toCacheModel();
370 }
371
372 public com.liferay.portal.model.Team toEscapedModel() {
373 return new TeamWrapper(_team.toEscapedModel());
374 }
375
376 public com.liferay.portal.model.Team toUnescapedModel() {
377 return new TeamWrapper(_team.toUnescapedModel());
378 }
379
380 @Override
381 public java.lang.String toString() {
382 return _team.toString();
383 }
384
385 public java.lang.String toXmlString() {
386 return _team.toXmlString();
387 }
388
389 public void persist()
390 throws com.liferay.portal.kernel.exception.SystemException {
391 _team.persist();
392 }
393
394 public com.liferay.portal.model.Role getRole()
395 throws com.liferay.portal.kernel.exception.PortalException,
396 com.liferay.portal.kernel.exception.SystemException {
397 return _team.getRole();
398 }
399
400 @Override
401 public boolean equals(Object obj) {
402 if (this == obj) {
403 return true;
404 }
405
406 if (!(obj instanceof TeamWrapper)) {
407 return false;
408 }
409
410 TeamWrapper teamWrapper = (TeamWrapper)obj;
411
412 if (Validator.equals(_team, teamWrapper._team)) {
413 return true;
414 }
415
416 return false;
417 }
418
419
422 public Team getWrappedTeam() {
423 return _team;
424 }
425
426 public Team getWrappedModel() {
427 return _team;
428 }
429
430 public void resetOriginalValues() {
431 _team.resetOriginalValues();
432 }
433
434 private Team _team;
435 }