001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class RepositoryEntryWrapper implements RepositoryEntry,
030 ModelWrapper<RepositoryEntry> {
031 public RepositoryEntryWrapper(RepositoryEntry repositoryEntry) {
032 _repositoryEntry = repositoryEntry;
033 }
034
035 public Class<?> getModelClass() {
036 return RepositoryEntry.class;
037 }
038
039 public String getModelClassName() {
040 return RepositoryEntry.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("uuid", getUuid());
047 attributes.put("repositoryEntryId", getRepositoryEntryId());
048 attributes.put("groupId", getGroupId());
049 attributes.put("repositoryId", getRepositoryId());
050 attributes.put("mappedId", getMappedId());
051 attributes.put("manualCheckInRequired", getManualCheckInRequired());
052
053 return attributes;
054 }
055
056 public void setModelAttributes(Map<String, Object> attributes) {
057 String uuid = (String)attributes.get("uuid");
058
059 if (uuid != null) {
060 setUuid(uuid);
061 }
062
063 Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
064
065 if (repositoryEntryId != null) {
066 setRepositoryEntryId(repositoryEntryId);
067 }
068
069 Long groupId = (Long)attributes.get("groupId");
070
071 if (groupId != null) {
072 setGroupId(groupId);
073 }
074
075 Long repositoryId = (Long)attributes.get("repositoryId");
076
077 if (repositoryId != null) {
078 setRepositoryId(repositoryId);
079 }
080
081 String mappedId = (String)attributes.get("mappedId");
082
083 if (mappedId != null) {
084 setMappedId(mappedId);
085 }
086
087 Boolean manualCheckInRequired = (Boolean)attributes.get(
088 "manualCheckInRequired");
089
090 if (manualCheckInRequired != null) {
091 setManualCheckInRequired(manualCheckInRequired);
092 }
093 }
094
095
100 public long getPrimaryKey() {
101 return _repositoryEntry.getPrimaryKey();
102 }
103
104
109 public void setPrimaryKey(long primaryKey) {
110 _repositoryEntry.setPrimaryKey(primaryKey);
111 }
112
113
118 public java.lang.String getUuid() {
119 return _repositoryEntry.getUuid();
120 }
121
122
127 public void setUuid(java.lang.String uuid) {
128 _repositoryEntry.setUuid(uuid);
129 }
130
131
136 public long getRepositoryEntryId() {
137 return _repositoryEntry.getRepositoryEntryId();
138 }
139
140
145 public void setRepositoryEntryId(long repositoryEntryId) {
146 _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
147 }
148
149
154 public long getGroupId() {
155 return _repositoryEntry.getGroupId();
156 }
157
158
163 public void setGroupId(long groupId) {
164 _repositoryEntry.setGroupId(groupId);
165 }
166
167
172 public long getRepositoryId() {
173 return _repositoryEntry.getRepositoryId();
174 }
175
176
181 public void setRepositoryId(long repositoryId) {
182 _repositoryEntry.setRepositoryId(repositoryId);
183 }
184
185
190 public java.lang.String getMappedId() {
191 return _repositoryEntry.getMappedId();
192 }
193
194
199 public void setMappedId(java.lang.String mappedId) {
200 _repositoryEntry.setMappedId(mappedId);
201 }
202
203
208 public boolean getManualCheckInRequired() {
209 return _repositoryEntry.getManualCheckInRequired();
210 }
211
212
217 public boolean isManualCheckInRequired() {
218 return _repositoryEntry.isManualCheckInRequired();
219 }
220
221
226 public void setManualCheckInRequired(boolean manualCheckInRequired) {
227 _repositoryEntry.setManualCheckInRequired(manualCheckInRequired);
228 }
229
230 public boolean isNew() {
231 return _repositoryEntry.isNew();
232 }
233
234 public void setNew(boolean n) {
235 _repositoryEntry.setNew(n);
236 }
237
238 public boolean isCachedModel() {
239 return _repositoryEntry.isCachedModel();
240 }
241
242 public void setCachedModel(boolean cachedModel) {
243 _repositoryEntry.setCachedModel(cachedModel);
244 }
245
246 public boolean isEscapedModel() {
247 return _repositoryEntry.isEscapedModel();
248 }
249
250 public java.io.Serializable getPrimaryKeyObj() {
251 return _repositoryEntry.getPrimaryKeyObj();
252 }
253
254 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
255 _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
256 }
257
258 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
259 return _repositoryEntry.getExpandoBridge();
260 }
261
262 public void setExpandoBridgeAttributes(
263 com.liferay.portal.service.ServiceContext serviceContext) {
264 _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
265 }
266
267 @Override
268 public java.lang.Object clone() {
269 return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
270 }
271
272 public int compareTo(
273 com.liferay.portal.model.RepositoryEntry repositoryEntry) {
274 return _repositoryEntry.compareTo(repositoryEntry);
275 }
276
277 @Override
278 public int hashCode() {
279 return _repositoryEntry.hashCode();
280 }
281
282 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
283 return _repositoryEntry.toCacheModel();
284 }
285
286 public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
287 return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
288 }
289
290 @Override
291 public java.lang.String toString() {
292 return _repositoryEntry.toString();
293 }
294
295 public java.lang.String toXmlString() {
296 return _repositoryEntry.toXmlString();
297 }
298
299 public void persist()
300 throws com.liferay.portal.kernel.exception.SystemException {
301 _repositoryEntry.persist();
302 }
303
304
307 public RepositoryEntry getWrappedRepositoryEntry() {
308 return _repositoryEntry;
309 }
310
311 public RepositoryEntry getWrappedModel() {
312 return _repositoryEntry;
313 }
314
315 public void resetOriginalValues() {
316 _repositoryEntry.resetOriginalValues();
317 }
318
319 private RepositoryEntry _repositoryEntry;
320 }