com.liferay.portal.model.WebDAVPropsWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.util.Validator;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link WebDAVProps}.
*
*
* @author Brian Wing Shun Chan
* @see WebDAVProps
* @generated
*/
@ProviderType
public class WebDAVPropsWrapper implements WebDAVProps,
ModelWrapper {
public WebDAVPropsWrapper(WebDAVProps webDAVProps) {
_webDAVProps = webDAVProps;
}
@Override
public Class> getModelClass() {
return WebDAVProps.class;
}
@Override
public String getModelClassName() {
return WebDAVProps.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("webDavPropsId", getWebDavPropsId());
attributes.put("companyId", getCompanyId());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("classNameId", getClassNameId());
attributes.put("classPK", getClassPK());
attributes.put("props", getProps());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long webDavPropsId = (Long)attributes.get("webDavPropsId");
if (webDavPropsId != null) {
setWebDavPropsId(webDavPropsId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
Long classNameId = (Long)attributes.get("classNameId");
if (classNameId != null) {
setClassNameId(classNameId);
}
Long classPK = (Long)attributes.get("classPK");
if (classPK != null) {
setClassPK(classPK);
}
String props = (String)attributes.get("props");
if (props != null) {
setProps(props);
}
}
/**
* Returns the primary key of this web d a v props.
*
* @return the primary key of this web d a v props
*/
@Override
public long getPrimaryKey() {
return _webDAVProps.getPrimaryKey();
}
/**
* Sets the primary key of this web d a v props.
*
* @param primaryKey the primary key of this web d a v props
*/
@Override
public void setPrimaryKey(long primaryKey) {
_webDAVProps.setPrimaryKey(primaryKey);
}
/**
* Returns the web dav props ID of this web d a v props.
*
* @return the web dav props ID of this web d a v props
*/
@Override
public long getWebDavPropsId() {
return _webDAVProps.getWebDavPropsId();
}
/**
* Sets the web dav props ID of this web d a v props.
*
* @param webDavPropsId the web dav props ID of this web d a v props
*/
@Override
public void setWebDavPropsId(long webDavPropsId) {
_webDAVProps.setWebDavPropsId(webDavPropsId);
}
/**
* Returns the company ID of this web d a v props.
*
* @return the company ID of this web d a v props
*/
@Override
public long getCompanyId() {
return _webDAVProps.getCompanyId();
}
/**
* Sets the company ID of this web d a v props.
*
* @param companyId the company ID of this web d a v props
*/
@Override
public void setCompanyId(long companyId) {
_webDAVProps.setCompanyId(companyId);
}
/**
* Returns the create date of this web d a v props.
*
* @return the create date of this web d a v props
*/
@Override
public java.util.Date getCreateDate() {
return _webDAVProps.getCreateDate();
}
/**
* Sets the create date of this web d a v props.
*
* @param createDate the create date of this web d a v props
*/
@Override
public void setCreateDate(java.util.Date createDate) {
_webDAVProps.setCreateDate(createDate);
}
/**
* Returns the modified date of this web d a v props.
*
* @return the modified date of this web d a v props
*/
@Override
public java.util.Date getModifiedDate() {
return _webDAVProps.getModifiedDate();
}
/**
* Sets the modified date of this web d a v props.
*
* @param modifiedDate the modified date of this web d a v props
*/
@Override
public void setModifiedDate(java.util.Date modifiedDate) {
_webDAVProps.setModifiedDate(modifiedDate);
}
/**
* Returns the fully qualified class name of this web d a v props.
*
* @return the fully qualified class name of this web d a v props
*/
@Override
public java.lang.String getClassName() {
return _webDAVProps.getClassName();
}
@Override
public void setClassName(java.lang.String className) {
_webDAVProps.setClassName(className);
}
/**
* Returns the class name ID of this web d a v props.
*
* @return the class name ID of this web d a v props
*/
@Override
public long getClassNameId() {
return _webDAVProps.getClassNameId();
}
/**
* Sets the class name ID of this web d a v props.
*
* @param classNameId the class name ID of this web d a v props
*/
@Override
public void setClassNameId(long classNameId) {
_webDAVProps.setClassNameId(classNameId);
}
/**
* Returns the class p k of this web d a v props.
*
* @return the class p k of this web d a v props
*/
@Override
public long getClassPK() {
return _webDAVProps.getClassPK();
}
/**
* Sets the class p k of this web d a v props.
*
* @param classPK the class p k of this web d a v props
*/
@Override
public void setClassPK(long classPK) {
_webDAVProps.setClassPK(classPK);
}
/**
* Returns the props of this web d a v props.
*
* @return the props of this web d a v props
*/
@Override
public java.lang.String getProps() {
return _webDAVProps.getProps();
}
/**
* Sets the props of this web d a v props.
*
* @param props the props of this web d a v props
*/
@Override
public void setProps(java.lang.String props) {
_webDAVProps.setProps(props);
}
@Override
public boolean isNew() {
return _webDAVProps.isNew();
}
@Override
public void setNew(boolean n) {
_webDAVProps.setNew(n);
}
@Override
public boolean isCachedModel() {
return _webDAVProps.isCachedModel();
}
@Override
public void setCachedModel(boolean cachedModel) {
_webDAVProps.setCachedModel(cachedModel);
}
@Override
public boolean isEscapedModel() {
return _webDAVProps.isEscapedModel();
}
@Override
public java.io.Serializable getPrimaryKeyObj() {
return _webDAVProps.getPrimaryKeyObj();
}
@Override
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_webDAVProps.setPrimaryKeyObj(primaryKeyObj);
}
@Override
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _webDAVProps.getExpandoBridge();
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.model.BaseModel> baseModel) {
_webDAVProps.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
_webDAVProps.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_webDAVProps.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new WebDAVPropsWrapper((WebDAVProps)_webDAVProps.clone());
}
@Override
public int compareTo(com.liferay.portal.model.WebDAVProps webDAVProps) {
return _webDAVProps.compareTo(webDAVProps);
}
@Override
public int hashCode() {
return _webDAVProps.hashCode();
}
@Override
public com.liferay.portal.model.CacheModel toCacheModel() {
return _webDAVProps.toCacheModel();
}
@Override
public com.liferay.portal.model.WebDAVProps toEscapedModel() {
return new WebDAVPropsWrapper(_webDAVProps.toEscapedModel());
}
@Override
public com.liferay.portal.model.WebDAVProps toUnescapedModel() {
return new WebDAVPropsWrapper(_webDAVProps.toUnescapedModel());
}
@Override
public java.lang.String toString() {
return _webDAVProps.toString();
}
@Override
public java.lang.String toXmlString() {
return _webDAVProps.toXmlString();
}
@Override
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_webDAVProps.persist();
}
@Override
public void addProp(java.lang.String name, java.lang.String prefix,
java.lang.String uri) throws java.lang.Exception {
_webDAVProps.addProp(name, prefix, uri);
}
@Override
public void addProp(java.lang.String name, java.lang.String prefix,
java.lang.String uri, java.lang.String text) throws java.lang.Exception {
_webDAVProps.addProp(name, prefix, uri, text);
}
@Override
public java.util.Set getPropsSet()
throws java.lang.Exception {
return _webDAVProps.getPropsSet();
}
@Override
public java.lang.String getText(java.lang.String name,
java.lang.String prefix, java.lang.String uri)
throws java.lang.Exception {
return _webDAVProps.getText(name, prefix, uri);
}
@Override
public void removeProp(java.lang.String name, java.lang.String prefix,
java.lang.String uri) throws java.lang.Exception {
_webDAVProps.removeProp(name, prefix, uri);
}
@Override
public void store() throws java.lang.Exception {
_webDAVProps.store();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof WebDAVPropsWrapper)) {
return false;
}
WebDAVPropsWrapper webDAVPropsWrapper = (WebDAVPropsWrapper)obj;
if (Validator.equals(_webDAVProps, webDAVPropsWrapper._webDAVProps)) {
return true;
}
return false;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
*/
public WebDAVProps getWrappedWebDAVProps() {
return _webDAVProps;
}
@Override
public WebDAVProps getWrappedModel() {
return _webDAVProps;
}
@Override
public void resetOriginalValues() {
_webDAVProps.resetOriginalValues();
}
private WebDAVProps _webDAVProps;
}