com.liferay.portal.kernel.model.WebDAVPropsWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel 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-present 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.kernel.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
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("mvccVersion", getMvccVersion());
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 mvccVersion = (Long)attributes.get("mvccVersion");
if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}
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);
}
}
@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.lang.Object clone() {
return new WebDAVPropsWrapper((WebDAVProps)_webDAVProps.clone());
}
@Override
public int compareTo(
com.liferay.portal.kernel.model.WebDAVProps webDAVProps) {
return _webDAVProps.compareTo(webDAVProps);
}
/**
* 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();
}
/**
* 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();
}
/**
* 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();
}
/**
* 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();
}
/**
* Returns the create date of this web d a v props.
*
* @return the create date of this web d a v props
*/
@Override
public Date getCreateDate() {
return _webDAVProps.getCreateDate();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _webDAVProps.getExpandoBridge();
}
/**
* Returns the modified date of this web d a v props.
*
* @return the modified date of this web d a v props
*/
@Override
public Date getModifiedDate() {
return _webDAVProps.getModifiedDate();
}
/**
* Returns the mvcc version of this web d a v props.
*
* @return the mvcc version of this web d a v props
*/
@Override
public long getMvccVersion() {
return _webDAVProps.getMvccVersion();
}
/**
* 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();
}
@Override
public Serializable getPrimaryKeyObj() {
return _webDAVProps.getPrimaryKeyObj();
}
/**
* 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();
}
@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);
}
/**
* 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();
}
@Override
public int hashCode() {
return _webDAVProps.hashCode();
}
@Override
public boolean isCachedModel() {
return _webDAVProps.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _webDAVProps.isEscapedModel();
}
@Override
public boolean isNew() {
return _webDAVProps.isNew();
}
@Override
public void persist() {
_webDAVProps.persist();
}
@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 setCachedModel(boolean cachedModel) {
_webDAVProps.setCachedModel(cachedModel);
}
@Override
public void setClassName(java.lang.String className) {
_webDAVProps.setClassName(className);
}
/**
* 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);
}
/**
* 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);
}
/**
* 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);
}
/**
* 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(Date createDate) {
_webDAVProps.setCreateDate(createDate);
}
@Override
public void setExpandoBridgeAttributes(BaseModel> baseModel) {
_webDAVProps.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_webDAVProps.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_webDAVProps.setExpandoBridgeAttributes(serviceContext);
}
/**
* 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(Date modifiedDate) {
_webDAVProps.setModifiedDate(modifiedDate);
}
/**
* Sets the mvcc version of this web d a v props.
*
* @param mvccVersion the mvcc version of this web d a v props
*/
@Override
public void setMvccVersion(long mvccVersion) {
_webDAVProps.setMvccVersion(mvccVersion);
}
@Override
public void setNew(boolean n) {
_webDAVProps.setNew(n);
}
/**
* 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);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_webDAVProps.setPrimaryKeyObj(primaryKeyObj);
}
/**
* 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);
}
/**
* 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);
}
@Override
public void store() throws java.lang.Exception {
_webDAVProps.store();
}
@Override
public CacheModel toCacheModel() {
return _webDAVProps.toCacheModel();
}
@Override
public com.liferay.portal.kernel.model.WebDAVProps toEscapedModel() {
return new WebDAVPropsWrapper(_webDAVProps.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _webDAVProps.toString();
}
@Override
public com.liferay.portal.kernel.model.WebDAVProps toUnescapedModel() {
return new WebDAVPropsWrapper(_webDAVProps.toUnescapedModel());
}
@Override
public java.lang.String toXmlString() {
return _webDAVProps.toXmlString();
}
@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;
}
@Override
public WebDAVProps getWrappedModel() {
return _webDAVProps;
}
@Override
public boolean isEntityCacheEnabled() {
return _webDAVProps.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _webDAVProps.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_webDAVProps.resetOriginalValues();
}
private final WebDAVProps _webDAVProps;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy