All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.knowledge.base.model.KBTemplateWrapper Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * 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.knowledge.base.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.exportimport.kernel.lar.StagedModelType;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;

import java.io.Serializable;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * 

* This class is a wrapper for {@link KBTemplate}. *

* * @author Brian Wing Shun Chan * @see KBTemplate * @generated */ @ProviderType public class KBTemplateWrapper implements KBTemplate, ModelWrapper { public KBTemplateWrapper(KBTemplate kbTemplate) { _kbTemplate = kbTemplate; } @Override public Class getModelClass() { return KBTemplate.class; } @Override public String getModelClassName() { return KBTemplate.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("uuid", getUuid()); attributes.put("kbTemplateId", getKbTemplateId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("title", getTitle()); attributes.put("content", getContent()); attributes.put("lastPublishDate", getLastPublishDate()); return attributes; } @Override public void setModelAttributes(Map attributes) { String uuid = (String)attributes.get("uuid"); if (uuid != null) { setUuid(uuid); } Long kbTemplateId = (Long)attributes.get("kbTemplateId"); if (kbTemplateId != null) { setKbTemplateId(kbTemplateId); } Long groupId = (Long)attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Long userId = (Long)attributes.get("userId"); if (userId != null) { setUserId(userId); } String userName = (String)attributes.get("userName"); if (userName != null) { setUserName(userName); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Date modifiedDate = (Date)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } String title = (String)attributes.get("title"); if (title != null) { setTitle(title); } String content = (String)attributes.get("content"); if (content != null) { setContent(content); } Date lastPublishDate = (Date)attributes.get("lastPublishDate"); if (lastPublishDate != null) { setLastPublishDate(lastPublishDate); } } @Override public Object clone() { return new KBTemplateWrapper((KBTemplate)_kbTemplate.clone()); } @Override public int compareTo(KBTemplate kbTemplate) { return _kbTemplate.compareTo(kbTemplate); } /** * Returns the company ID of this kb template. * * @return the company ID of this kb template */ @Override public long getCompanyId() { return _kbTemplate.getCompanyId(); } /** * Returns the content of this kb template. * * @return the content of this kb template */ @Override public String getContent() { return _kbTemplate.getContent(); } /** * Returns the create date of this kb template. * * @return the create date of this kb template */ @Override public Date getCreateDate() { return _kbTemplate.getCreateDate(); } @Override public ExpandoBridge getExpandoBridge() { return _kbTemplate.getExpandoBridge(); } /** * Returns the group ID of this kb template. * * @return the group ID of this kb template */ @Override public long getGroupId() { return _kbTemplate.getGroupId(); } /** * Returns the kb template ID of this kb template. * * @return the kb template ID of this kb template */ @Override public long getKbTemplateId() { return _kbTemplate.getKbTemplateId(); } /** * Returns the last publish date of this kb template. * * @return the last publish date of this kb template */ @Override public Date getLastPublishDate() { return _kbTemplate.getLastPublishDate(); } /** * Returns the modified date of this kb template. * * @return the modified date of this kb template */ @Override public Date getModifiedDate() { return _kbTemplate.getModifiedDate(); } /** * Returns the primary key of this kb template. * * @return the primary key of this kb template */ @Override public long getPrimaryKey() { return _kbTemplate.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _kbTemplate.getPrimaryKeyObj(); } /** * Returns the title of this kb template. * * @return the title of this kb template */ @Override public String getTitle() { return _kbTemplate.getTitle(); } /** * Returns the user ID of this kb template. * * @return the user ID of this kb template */ @Override public long getUserId() { return _kbTemplate.getUserId(); } /** * Returns the user name of this kb template. * * @return the user name of this kb template */ @Override public String getUserName() { return _kbTemplate.getUserName(); } /** * Returns the user uuid of this kb template. * * @return the user uuid of this kb template */ @Override public String getUserUuid() { return _kbTemplate.getUserUuid(); } /** * Returns the uuid of this kb template. * * @return the uuid of this kb template */ @Override public String getUuid() { return _kbTemplate.getUuid(); } @Override public int hashCode() { return _kbTemplate.hashCode(); } @Override public boolean isCachedModel() { return _kbTemplate.isCachedModel(); } @Override public boolean isEscapedModel() { return _kbTemplate.isEscapedModel(); } @Override public boolean isNew() { return _kbTemplate.isNew(); } @Override public void persist() { _kbTemplate.persist(); } @Override public void setCachedModel(boolean cachedModel) { _kbTemplate.setCachedModel(cachedModel); } /** * Sets the company ID of this kb template. * * @param companyId the company ID of this kb template */ @Override public void setCompanyId(long companyId) { _kbTemplate.setCompanyId(companyId); } /** * Sets the content of this kb template. * * @param content the content of this kb template */ @Override public void setContent(String content) { _kbTemplate.setContent(content); } /** * Sets the create date of this kb template. * * @param createDate the create date of this kb template */ @Override public void setCreateDate(Date createDate) { _kbTemplate.setCreateDate(createDate); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel baseModel) { _kbTemplate.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _kbTemplate.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _kbTemplate.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this kb template. * * @param groupId the group ID of this kb template */ @Override public void setGroupId(long groupId) { _kbTemplate.setGroupId(groupId); } /** * Sets the kb template ID of this kb template. * * @param kbTemplateId the kb template ID of this kb template */ @Override public void setKbTemplateId(long kbTemplateId) { _kbTemplate.setKbTemplateId(kbTemplateId); } /** * Sets the last publish date of this kb template. * * @param lastPublishDate the last publish date of this kb template */ @Override public void setLastPublishDate(Date lastPublishDate) { _kbTemplate.setLastPublishDate(lastPublishDate); } /** * Sets the modified date of this kb template. * * @param modifiedDate the modified date of this kb template */ @Override public void setModifiedDate(Date modifiedDate) { _kbTemplate.setModifiedDate(modifiedDate); } @Override public void setNew(boolean n) { _kbTemplate.setNew(n); } /** * Sets the primary key of this kb template. * * @param primaryKey the primary key of this kb template */ @Override public void setPrimaryKey(long primaryKey) { _kbTemplate.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _kbTemplate.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the title of this kb template. * * @param title the title of this kb template */ @Override public void setTitle(String title) { _kbTemplate.setTitle(title); } /** * Sets the user ID of this kb template. * * @param userId the user ID of this kb template */ @Override public void setUserId(long userId) { _kbTemplate.setUserId(userId); } /** * Sets the user name of this kb template. * * @param userName the user name of this kb template */ @Override public void setUserName(String userName) { _kbTemplate.setUserName(userName); } /** * Sets the user uuid of this kb template. * * @param userUuid the user uuid of this kb template */ @Override public void setUserUuid(String userUuid) { _kbTemplate.setUserUuid(userUuid); } /** * Sets the uuid of this kb template. * * @param uuid the uuid of this kb template */ @Override public void setUuid(String uuid) { _kbTemplate.setUuid(uuid); } @Override public com.liferay.portal.kernel.model.CacheModel toCacheModel() { return _kbTemplate.toCacheModel(); } @Override public KBTemplate toEscapedModel() { return new KBTemplateWrapper(_kbTemplate.toEscapedModel()); } @Override public String toString() { return _kbTemplate.toString(); } @Override public KBTemplate toUnescapedModel() { return new KBTemplateWrapper(_kbTemplate.toUnescapedModel()); } @Override public String toXmlString() { return _kbTemplate.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof KBTemplateWrapper)) { return false; } KBTemplateWrapper kbTemplateWrapper = (KBTemplateWrapper)obj; if (Objects.equals(_kbTemplate, kbTemplateWrapper._kbTemplate)) { return true; } return false; } @Override public StagedModelType getStagedModelType() { return _kbTemplate.getStagedModelType(); } @Override public KBTemplate getWrappedModel() { return _kbTemplate; } @Override public boolean isEntityCacheEnabled() { return _kbTemplate.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _kbTemplate.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _kbTemplate.resetOriginalValues(); } private final KBTemplate _kbTemplate; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy