001
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
030 public class TeamWrapper implements Team, ModelWrapper<Team> {
031 public TeamWrapper(Team team) {
032 _team = team;
033 }
034
035 public Class<?> getModelClass() {
036 return Team.class;
037 }
038
039 public String getModelClassName() {
040 return Team.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("teamId", getTeamId());
047 attributes.put("companyId", getCompanyId());
048 attributes.put("userId", getUserId());
049 attributes.put("userName", getUserName());
050 attributes.put("createDate", getCreateDate());
051 attributes.put("modifiedDate", getModifiedDate());
052 attributes.put("groupId", getGroupId());
053 attributes.put("name", getName());
054 attributes.put("description", getDescription());
055
056 return attributes;
057 }
058
059 public void setModelAttributes(Map<String, Object> attributes) {
060 Long teamId = (Long)attributes.get("teamId");
061
062 if (teamId != null) {
063 setTeamId(teamId);
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 String userName = (String)attributes.get("userName");
079
080 if (userName != null) {
081 setUserName(userName);
082 }
083
084 Date createDate = (Date)attributes.get("createDate");
085
086 if (createDate != null) {
087 setCreateDate(createDate);
088 }
089
090 Date modifiedDate = (Date)attributes.get("modifiedDate");
091
092 if (modifiedDate != null) {
093 setModifiedDate(modifiedDate);
094 }
095
096 Long groupId = (Long)attributes.get("groupId");
097
098 if (groupId != null) {
099 setGroupId(groupId);
100 }
101
102 String name = (String)attributes.get("name");
103
104 if (name != null) {
105 setName(name);
106 }
107
108 String description = (String)attributes.get("description");
109
110 if (description != null) {
111 setDescription(description);
112 }
113 }
114
115
120 public long getPrimaryKey() {
121 return _team.getPrimaryKey();
122 }
123
124
129 public void setPrimaryKey(long primaryKey) {
130 _team.setPrimaryKey(primaryKey);
131 }
132
133
138 public long getTeamId() {
139 return _team.getTeamId();
140 }
141
142
147 public void setTeamId(long teamId) {
148 _team.setTeamId(teamId);
149 }
150
151
156 public long getCompanyId() {
157 return _team.getCompanyId();
158 }
159
160
165 public void setCompanyId(long companyId) {
166 _team.setCompanyId(companyId);
167 }
168
169
174 public long getUserId() {
175 return _team.getUserId();
176 }
177
178
183 public void setUserId(long userId) {
184 _team.setUserId(userId);
185 }
186
187
193 public java.lang.String getUserUuid()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return _team.getUserUuid();
196 }
197
198
203 public void setUserUuid(java.lang.String userUuid) {
204 _team.setUserUuid(userUuid);
205 }
206
207
212 public java.lang.String getUserName() {
213 return _team.getUserName();
214 }
215
216
221 public void setUserName(java.lang.String userName) {
222 _team.setUserName(userName);
223 }
224
225
230 public java.util.Date getCreateDate() {
231 return _team.getCreateDate();
232 }
233
234
239 public void setCreateDate(java.util.Date createDate) {
240 _team.setCreateDate(createDate);
241 }
242
243
248 public java.util.Date getModifiedDate() {
249 return _team.getModifiedDate();
250 }
251
252
257 public void setModifiedDate(java.util.Date modifiedDate) {
258 _team.setModifiedDate(modifiedDate);
259 }
260
261
266 public long getGroupId() {
267 return _team.getGroupId();
268 }
269
270
275 public void setGroupId(long groupId) {
276 _team.setGroupId(groupId);
277 }
278
279
284 public java.lang.String getName() {
285 return _team.getName();
286 }
287
288
293 public void setName(java.lang.String name) {
294 _team.setName(name);
295 }
296
297
302 public java.lang.String getDescription() {
303 return _team.getDescription();
304 }
305
306
311 public void setDescription(java.lang.String description) {
312 _team.setDescription(description);
313 }
314
315 public boolean isNew() {
316 return _team.isNew();
317 }
318
319 public void setNew(boolean n) {
320 _team.setNew(n);
321 }
322
323 public boolean isCachedModel() {
324 return _team.isCachedModel();
325 }
326
327 public void setCachedModel(boolean cachedModel) {
328 _team.setCachedModel(cachedModel);
329 }
330
331 public boolean isEscapedModel() {
332 return _team.isEscapedModel();
333 }
334
335 public java.io.Serializable getPrimaryKeyObj() {
336 return _team.getPrimaryKeyObj();
337 }
338
339 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
340 _team.setPrimaryKeyObj(primaryKeyObj);
341 }
342
343 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
344 return _team.getExpandoBridge();
345 }
346
347 public void setExpandoBridgeAttributes(
348 com.liferay.portal.service.ServiceContext serviceContext) {
349 _team.setExpandoBridgeAttributes(serviceContext);
350 }
351
352 @Override
353 public java.lang.Object clone() {
354 return new TeamWrapper((Team)_team.clone());
355 }
356
357 public int compareTo(com.liferay.portal.model.Team team) {
358 return _team.compareTo(team);
359 }
360
361 @Override
362 public int hashCode() {
363 return _team.hashCode();
364 }
365
366 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Team> toCacheModel() {
367 return _team.toCacheModel();
368 }
369
370 public com.liferay.portal.model.Team toEscapedModel() {
371 return new TeamWrapper(_team.toEscapedModel());
372 }
373
374 @Override
375 public java.lang.String toString() {
376 return _team.toString();
377 }
378
379 public java.lang.String toXmlString() {
380 return _team.toXmlString();
381 }
382
383 public void persist()
384 throws com.liferay.portal.kernel.exception.SystemException {
385 _team.persist();
386 }
387
388 public com.liferay.portal.model.Role getRole()
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException {
391 return _team.getRole();
392 }
393
394
397 public Team getWrappedTeam() {
398 return _team;
399 }
400
401 public Team getWrappedModel() {
402 return _team;
403 }
404
405 public void resetOriginalValues() {
406 _team.resetOriginalValues();
407 }
408
409 private Team _team;
410 }