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 RepositoryEntryWrapper implements RepositoryEntry,
031 ModelWrapper<RepositoryEntry> {
032 public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) {
033 _repositoryEntry = repositoryEntry;
034 }
035
036 public Class<?> getModelClass() {
037 return RepositoryEntry.class;
038 }
039
040 public String getModelClassName() {
041 return RepositoryEntry.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("uuid", getUuid());
048 attributes.put("repositoryEntryId", getRepositoryEntryId());
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("repositoryId", getRepositoryId());
056 attributes.put("mappedId", getMappedId());
057 attributes.put("manualCheckInRequired", getManualCheckInRequired());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 String uuid = (String)attributes.get("uuid");
064
065 if (uuid != null) {
066 setUuid(uuid);
067 }
068
069 Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
070
071 if (repositoryEntryId != null) {
072 setRepositoryEntryId(repositoryEntryId);
073 }
074
075 Long groupId = (Long)attributes.get("groupId");
076
077 if (groupId != null) {
078 setGroupId(groupId);
079 }
080
081 Long companyId = (Long)attributes.get("companyId");
082
083 if (companyId != null) {
084 setCompanyId(companyId);
085 }
086
087 Long userId = (Long)attributes.get("userId");
088
089 if (userId != null) {
090 setUserId(userId);
091 }
092
093 String userName = (String)attributes.get("userName");
094
095 if (userName != null) {
096 setUserName(userName);
097 }
098
099 Date createDate = (Date)attributes.get("createDate");
100
101 if (createDate != null) {
102 setCreateDate(createDate);
103 }
104
105 Date modifiedDate = (Date)attributes.get("modifiedDate");
106
107 if (modifiedDate != null) {
108 setModifiedDate(modifiedDate);
109 }
110
111 Long repositoryId = (Long)attributes.get("repositoryId");
112
113 if (repositoryId != null) {
114 setRepositoryId(repositoryId);
115 }
116
117 String mappedId = (String)attributes.get("mappedId");
118
119 if (mappedId != null) {
120 setMappedId(mappedId);
121 }
122
123 Boolean manualCheckInRequired = (Boolean)attributes.get(
124 "manualCheckInRequired");
125
126 if (manualCheckInRequired != null) {
127 setManualCheckInRequired(manualCheckInRequired);
128 }
129 }
130
131
136 public long getPrimaryKey() {
137 return _repositoryEntry.getPrimaryKey();
138 }
139
140
145 public void setPrimaryKey(long primaryKey) {
146 _repositoryEntry.setPrimaryKey(primaryKey);
147 }
148
149
154 public java.lang.String getUuid() {
155 return _repositoryEntry.getUuid();
156 }
157
158
163 public void setUuid(java.lang.String uuid) {
164 _repositoryEntry.setUuid(uuid);
165 }
166
167
172 public long getRepositoryEntryId() {
173 return _repositoryEntry.getRepositoryEntryId();
174 }
175
176
181 public void setRepositoryEntryId(long repositoryEntryId) {
182 _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
183 }
184
185
190 public long getGroupId() {
191 return _repositoryEntry.getGroupId();
192 }
193
194
199 public void setGroupId(long groupId) {
200 _repositoryEntry.setGroupId(groupId);
201 }
202
203
208 public long getCompanyId() {
209 return _repositoryEntry.getCompanyId();
210 }
211
212
217 public void setCompanyId(long companyId) {
218 _repositoryEntry.setCompanyId(companyId);
219 }
220
221
226 public long getUserId() {
227 return _repositoryEntry.getUserId();
228 }
229
230
235 public void setUserId(long userId) {
236 _repositoryEntry.setUserId(userId);
237 }
238
239
245 public java.lang.String getUserUuid()
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return _repositoryEntry.getUserUuid();
248 }
249
250
255 public void setUserUuid(java.lang.String userUuid) {
256 _repositoryEntry.setUserUuid(userUuid);
257 }
258
259
264 public java.lang.String getUserName() {
265 return _repositoryEntry.getUserName();
266 }
267
268
273 public void setUserName(java.lang.String userName) {
274 _repositoryEntry.setUserName(userName);
275 }
276
277
282 public java.util.Date getCreateDate() {
283 return _repositoryEntry.getCreateDate();
284 }
285
286
291 public void setCreateDate(java.util.Date createDate) {
292 _repositoryEntry.setCreateDate(createDate);
293 }
294
295
300 public java.util.Date getModifiedDate() {
301 return _repositoryEntry.getModifiedDate();
302 }
303
304
309 public void setModifiedDate(java.util.Date modifiedDate) {
310 _repositoryEntry.setModifiedDate(modifiedDate);
311 }
312
313
318 public long getRepositoryId() {
319 return _repositoryEntry.getRepositoryId();
320 }
321
322
327 public void setRepositoryId(long repositoryId) {
328 _repositoryEntry.setRepositoryId(repositoryId);
329 }
330
331
336 public java.lang.String getMappedId() {
337 return _repositoryEntry.getMappedId();
338 }
339
340
345 public void setMappedId(java.lang.String mappedId) {
346 _repositoryEntry.setMappedId(mappedId);
347 }
348
349
354 public boolean getManualCheckInRequired() {
355 return _repositoryEntry.getManualCheckInRequired();
356 }
357
358
363 public boolean isManualCheckInRequired() {
364 return _repositoryEntry.isManualCheckInRequired();
365 }
366
367
372 public void setManualCheckInRequired(boolean manualCheckInRequired) {
373 _repositoryEntry.setManualCheckInRequired(manualCheckInRequired);
374 }
375
376 public boolean isNew() {
377 return _repositoryEntry.isNew();
378 }
379
380 public void setNew(boolean n) {
381 _repositoryEntry.setNew(n);
382 }
383
384 public boolean isCachedModel() {
385 return _repositoryEntry.isCachedModel();
386 }
387
388 public void setCachedModel(boolean cachedModel) {
389 _repositoryEntry.setCachedModel(cachedModel);
390 }
391
392 public boolean isEscapedModel() {
393 return _repositoryEntry.isEscapedModel();
394 }
395
396 public java.io.Serializable getPrimaryKeyObj() {
397 return _repositoryEntry.getPrimaryKeyObj();
398 }
399
400 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
401 _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
402 }
403
404 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
405 return _repositoryEntry.getExpandoBridge();
406 }
407
408 public void setExpandoBridgeAttributes(
409 com.liferay.portal.model.BaseModel<?> baseModel) {
410 _repositoryEntry.setExpandoBridgeAttributes(baseModel);
411 }
412
413 public void setExpandoBridgeAttributes(
414 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
415 _repositoryEntry.setExpandoBridgeAttributes(expandoBridge);
416 }
417
418 public void setExpandoBridgeAttributes(
419 com.liferay.portal.service.ServiceContext serviceContext) {
420 _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
421 }
422
423 @Override
424 public java.lang.Object clone() {
425 return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
426 }
427
428 public int compareTo(
429 com.liferay.portal.model.RepositoryEntry repositoryEntry) {
430 return _repositoryEntry.compareTo(repositoryEntry);
431 }
432
433 @Override
434 public int hashCode() {
435 return _repositoryEntry.hashCode();
436 }
437
438 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
439 return _repositoryEntry.toCacheModel();
440 }
441
442 public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
443 return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
444 }
445
446 public com.liferay.portal.model.RepositoryEntry toUnescapedModel() {
447 return new RepositoryEntryWrapper(_repositoryEntry.toUnescapedModel());
448 }
449
450 @Override
451 public java.lang.String toString() {
452 return _repositoryEntry.toString();
453 }
454
455 public java.lang.String toXmlString() {
456 return _repositoryEntry.toXmlString();
457 }
458
459 public void persist()
460 throws com.liferay.portal.kernel.exception.SystemException {
461 _repositoryEntry.persist();
462 }
463
464
467 public RepositoryEntry getWrappedRepositoryEntry() {
468 return _repositoryEntry;
469 }
470
471 public RepositoryEntry getWrappedModel() {
472 return _repositoryEntry;
473 }
474
475 public void resetOriginalValues() {
476 _repositoryEntry.resetOriginalValues();
477 }
478
479 private RepositoryEntry _repositoryEntry;
480 }