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 WebDAVPropsWrapper implements WebDAVProps,
031 ModelWrapper<WebDAVProps> {
032 public WebDAVPropsWrapper(WebDAVProps webDAVProps) {
033 _webDAVProps = webDAVProps;
034 }
035
036 public Class<?> getModelClass() {
037 return WebDAVProps.class;
038 }
039
040 public String getModelClassName() {
041 return WebDAVProps.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("webDavPropsId", getWebDavPropsId());
048 attributes.put("companyId", getCompanyId());
049 attributes.put("createDate", getCreateDate());
050 attributes.put("modifiedDate", getModifiedDate());
051 attributes.put("classNameId", getClassNameId());
052 attributes.put("classPK", getClassPK());
053 attributes.put("props", getProps());
054
055 return attributes;
056 }
057
058 public void setModelAttributes(Map<String, Object> attributes) {
059 Long webDavPropsId = (Long)attributes.get("webDavPropsId");
060
061 if (webDavPropsId != null) {
062 setWebDavPropsId(webDavPropsId);
063 }
064
065 Long companyId = (Long)attributes.get("companyId");
066
067 if (companyId != null) {
068 setCompanyId(companyId);
069 }
070
071 Date createDate = (Date)attributes.get("createDate");
072
073 if (createDate != null) {
074 setCreateDate(createDate);
075 }
076
077 Date modifiedDate = (Date)attributes.get("modifiedDate");
078
079 if (modifiedDate != null) {
080 setModifiedDate(modifiedDate);
081 }
082
083 Long classNameId = (Long)attributes.get("classNameId");
084
085 if (classNameId != null) {
086 setClassNameId(classNameId);
087 }
088
089 Long classPK = (Long)attributes.get("classPK");
090
091 if (classPK != null) {
092 setClassPK(classPK);
093 }
094
095 String props = (String)attributes.get("props");
096
097 if (props != null) {
098 setProps(props);
099 }
100 }
101
102
107 public long getPrimaryKey() {
108 return _webDAVProps.getPrimaryKey();
109 }
110
111
116 public void setPrimaryKey(long primaryKey) {
117 _webDAVProps.setPrimaryKey(primaryKey);
118 }
119
120
125 public long getWebDavPropsId() {
126 return _webDAVProps.getWebDavPropsId();
127 }
128
129
134 public void setWebDavPropsId(long webDavPropsId) {
135 _webDAVProps.setWebDavPropsId(webDavPropsId);
136 }
137
138
143 public long getCompanyId() {
144 return _webDAVProps.getCompanyId();
145 }
146
147
152 public void setCompanyId(long companyId) {
153 _webDAVProps.setCompanyId(companyId);
154 }
155
156
161 public java.util.Date getCreateDate() {
162 return _webDAVProps.getCreateDate();
163 }
164
165
170 public void setCreateDate(java.util.Date createDate) {
171 _webDAVProps.setCreateDate(createDate);
172 }
173
174
179 public java.util.Date getModifiedDate() {
180 return _webDAVProps.getModifiedDate();
181 }
182
183
188 public void setModifiedDate(java.util.Date modifiedDate) {
189 _webDAVProps.setModifiedDate(modifiedDate);
190 }
191
192
197 public java.lang.String getClassName() {
198 return _webDAVProps.getClassName();
199 }
200
201 public void setClassName(java.lang.String className) {
202 _webDAVProps.setClassName(className);
203 }
204
205
210 public long getClassNameId() {
211 return _webDAVProps.getClassNameId();
212 }
213
214
219 public void setClassNameId(long classNameId) {
220 _webDAVProps.setClassNameId(classNameId);
221 }
222
223
228 public long getClassPK() {
229 return _webDAVProps.getClassPK();
230 }
231
232
237 public void setClassPK(long classPK) {
238 _webDAVProps.setClassPK(classPK);
239 }
240
241
246 public java.lang.String getProps() {
247 return _webDAVProps.getProps();
248 }
249
250
255 public void setProps(java.lang.String props) {
256 _webDAVProps.setProps(props);
257 }
258
259 public boolean isNew() {
260 return _webDAVProps.isNew();
261 }
262
263 public void setNew(boolean n) {
264 _webDAVProps.setNew(n);
265 }
266
267 public boolean isCachedModel() {
268 return _webDAVProps.isCachedModel();
269 }
270
271 public void setCachedModel(boolean cachedModel) {
272 _webDAVProps.setCachedModel(cachedModel);
273 }
274
275 public boolean isEscapedModel() {
276 return _webDAVProps.isEscapedModel();
277 }
278
279 public java.io.Serializable getPrimaryKeyObj() {
280 return _webDAVProps.getPrimaryKeyObj();
281 }
282
283 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
284 _webDAVProps.setPrimaryKeyObj(primaryKeyObj);
285 }
286
287 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
288 return _webDAVProps.getExpandoBridge();
289 }
290
291 public void setExpandoBridgeAttributes(
292 com.liferay.portal.model.BaseModel<?> baseModel) {
293 _webDAVProps.setExpandoBridgeAttributes(baseModel);
294 }
295
296 public void setExpandoBridgeAttributes(
297 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
298 _webDAVProps.setExpandoBridgeAttributes(expandoBridge);
299 }
300
301 public void setExpandoBridgeAttributes(
302 com.liferay.portal.service.ServiceContext serviceContext) {
303 _webDAVProps.setExpandoBridgeAttributes(serviceContext);
304 }
305
306 @Override
307 public java.lang.Object clone() {
308 return new WebDAVPropsWrapper((WebDAVProps)_webDAVProps.clone());
309 }
310
311 public int compareTo(com.liferay.portal.model.WebDAVProps webDAVProps) {
312 return _webDAVProps.compareTo(webDAVProps);
313 }
314
315 @Override
316 public int hashCode() {
317 return _webDAVProps.hashCode();
318 }
319
320 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WebDAVProps> toCacheModel() {
321 return _webDAVProps.toCacheModel();
322 }
323
324 public com.liferay.portal.model.WebDAVProps toEscapedModel() {
325 return new WebDAVPropsWrapper(_webDAVProps.toEscapedModel());
326 }
327
328 public com.liferay.portal.model.WebDAVProps toUnescapedModel() {
329 return new WebDAVPropsWrapper(_webDAVProps.toUnescapedModel());
330 }
331
332 @Override
333 public java.lang.String toString() {
334 return _webDAVProps.toString();
335 }
336
337 public java.lang.String toXmlString() {
338 return _webDAVProps.toXmlString();
339 }
340
341 public void persist()
342 throws com.liferay.portal.kernel.exception.SystemException {
343 _webDAVProps.persist();
344 }
345
346 public void addProp(java.lang.String name, java.lang.String prefix,
347 java.lang.String uri) throws java.lang.Exception {
348 _webDAVProps.addProp(name, prefix, uri);
349 }
350
351 public void addProp(java.lang.String name, java.lang.String prefix,
352 java.lang.String uri, java.lang.String text) throws java.lang.Exception {
353 _webDAVProps.addProp(name, prefix, uri, text);
354 }
355
356 public java.util.Set<com.liferay.portal.kernel.xml.QName> getPropsSet()
357 throws java.lang.Exception {
358 return _webDAVProps.getPropsSet();
359 }
360
361 public java.lang.String getText(java.lang.String name,
362 java.lang.String prefix, java.lang.String uri)
363 throws java.lang.Exception {
364 return _webDAVProps.getText(name, prefix, uri);
365 }
366
367 public void removeProp(java.lang.String name, java.lang.String prefix,
368 java.lang.String uri) throws java.lang.Exception {
369 _webDAVProps.removeProp(name, prefix, uri);
370 }
371
372 public void store() throws java.lang.Exception {
373 _webDAVProps.store();
374 }
375
376
379 public WebDAVProps getWrappedWebDAVProps() {
380 return _webDAVProps;
381 }
382
383 public WebDAVProps getWrappedModel() {
384 return _webDAVProps;
385 }
386
387 public void resetOriginalValues() {
388 _webDAVProps.resetOriginalValues();
389 }
390
391 private WebDAVProps _webDAVProps;
392 }