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
052 return attributes;
053 }
054
055 public void setModelAttributes(Map<String, Object> attributes) {
056 String uuid = (String)attributes.get("uuid");
057
058 if (uuid != null) {
059 setUuid(uuid);
060 }
061
062 Long repositoryEntryId = (Long)attributes.get("repositoryEntryId");
063
064 if (repositoryEntryId != null) {
065 setRepositoryEntryId(repositoryEntryId);
066 }
067
068 Long groupId = (Long)attributes.get("groupId");
069
070 if (groupId != null) {
071 setGroupId(groupId);
072 }
073
074 Long repositoryId = (Long)attributes.get("repositoryId");
075
076 if (repositoryId != null) {
077 setRepositoryId(repositoryId);
078 }
079
080 String mappedId = (String)attributes.get("mappedId");
081
082 if (mappedId != null) {
083 setMappedId(mappedId);
084 }
085 }
086
087
092 public long getPrimaryKey() {
093 return _repositoryEntry.getPrimaryKey();
094 }
095
096
101 public void setPrimaryKey(long primaryKey) {
102 _repositoryEntry.setPrimaryKey(primaryKey);
103 }
104
105
110 public java.lang.String getUuid() {
111 return _repositoryEntry.getUuid();
112 }
113
114
119 public void setUuid(java.lang.String uuid) {
120 _repositoryEntry.setUuid(uuid);
121 }
122
123
128 public long getRepositoryEntryId() {
129 return _repositoryEntry.getRepositoryEntryId();
130 }
131
132
137 public void setRepositoryEntryId(long repositoryEntryId) {
138 _repositoryEntry.setRepositoryEntryId(repositoryEntryId);
139 }
140
141
146 public long getGroupId() {
147 return _repositoryEntry.getGroupId();
148 }
149
150
155 public void setGroupId(long groupId) {
156 _repositoryEntry.setGroupId(groupId);
157 }
158
159
164 public long getRepositoryId() {
165 return _repositoryEntry.getRepositoryId();
166 }
167
168
173 public void setRepositoryId(long repositoryId) {
174 _repositoryEntry.setRepositoryId(repositoryId);
175 }
176
177
182 public java.lang.String getMappedId() {
183 return _repositoryEntry.getMappedId();
184 }
185
186
191 public void setMappedId(java.lang.String mappedId) {
192 _repositoryEntry.setMappedId(mappedId);
193 }
194
195 public boolean isNew() {
196 return _repositoryEntry.isNew();
197 }
198
199 public void setNew(boolean n) {
200 _repositoryEntry.setNew(n);
201 }
202
203 public boolean isCachedModel() {
204 return _repositoryEntry.isCachedModel();
205 }
206
207 public void setCachedModel(boolean cachedModel) {
208 _repositoryEntry.setCachedModel(cachedModel);
209 }
210
211 public boolean isEscapedModel() {
212 return _repositoryEntry.isEscapedModel();
213 }
214
215 public java.io.Serializable getPrimaryKeyObj() {
216 return _repositoryEntry.getPrimaryKeyObj();
217 }
218
219 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
220 _repositoryEntry.setPrimaryKeyObj(primaryKeyObj);
221 }
222
223 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
224 return _repositoryEntry.getExpandoBridge();
225 }
226
227 public void setExpandoBridgeAttributes(
228 com.liferay.portal.service.ServiceContext serviceContext) {
229 _repositoryEntry.setExpandoBridgeAttributes(serviceContext);
230 }
231
232 @Override
233 public java.lang.Object clone() {
234 return new RepositoryEntryWrapper((RepositoryEntry)_repositoryEntry.clone());
235 }
236
237 public int compareTo(
238 com.liferay.portal.model.RepositoryEntry repositoryEntry) {
239 return _repositoryEntry.compareTo(repositoryEntry);
240 }
241
242 @Override
243 public int hashCode() {
244 return _repositoryEntry.hashCode();
245 }
246
247 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.RepositoryEntry> toCacheModel() {
248 return _repositoryEntry.toCacheModel();
249 }
250
251 public com.liferay.portal.model.RepositoryEntry toEscapedModel() {
252 return new RepositoryEntryWrapper(_repositoryEntry.toEscapedModel());
253 }
254
255 @Override
256 public java.lang.String toString() {
257 return _repositoryEntry.toString();
258 }
259
260 public java.lang.String toXmlString() {
261 return _repositoryEntry.toXmlString();
262 }
263
264 public void persist()
265 throws com.liferay.portal.kernel.exception.SystemException {
266 _repositoryEntry.persist();
267 }
268
269
272 public RepositoryEntry getWrappedRepositoryEntry() {
273 return _repositoryEntry;
274 }
275
276 public RepositoryEntry getWrappedModel() {
277 return _repositoryEntry;
278 }
279
280 public void resetOriginalValues() {
281 _repositoryEntry.resetOriginalValues();
282 }
283
284 private RepositoryEntry _repositoryEntry;
285 }