/**
* 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;
/**
* <p>
* This class is a wrapper for {@link KBArticle}.
* </p>
*
* @author Brian Wing Shun Chan
* @see KBArticle
* @generated
*/
@ProviderType
public class KBArticleWrapper implements KBArticle, ModelWrapper<KBArticle> {
public KBArticleWrapper(KBArticle kbArticle) {
_kbArticle = kbArticle;
}
@Override
public Class<?> getModelClass() {
return KBArticle.class;
}
@Override
public String getModelClassName() {
return KBArticle.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("uuid", getUuid());
attributes.put("kbArticleId", getKbArticleId());
attributes.put("resourcePrimKey", getResourcePrimKey());
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("rootResourcePrimKey", getRootResourcePrimKey());
attributes.put("parentResourceClassNameId",
getParentResourceClassNameId());
attributes.put("parentResourcePrimKey", getParentResourcePrimKey());
attributes.put("kbFolderId", getKbFolderId());
attributes.put("version", getVersion());
attributes.put("title", getTitle());
attributes.put("urlTitle", getUrlTitle());
attributes.put("content", getContent());
attributes.put("description", getDescription());
attributes.put("priority", getPriority());
attributes.put("sections", getSections());
attributes.put("viewCount", getViewCount());
attributes.put("latest", getLatest());
attributes.put("main", getMain());
attributes.put("sourceURL", getSourceURL());
attributes.put("lastPublishDate", getLastPublishDate());
attributes.put("status", getStatus());
attributes.put("statusByUserId", getStatusByUserId());
attributes.put("statusByUserName", getStatusByUserName());
attributes.put("statusDate", getStatusDate());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
String uuid = (String)attributes.get("uuid");
if (uuid != null) {
setUuid(uuid);
}
Long kbArticleId = (Long)attributes.get("kbArticleId");
if (kbArticleId != null) {
setKbArticleId(kbArticleId);
}
Long resourcePrimKey = (Long)attributes.get("resourcePrimKey");
if (resourcePrimKey != null) {
setResourcePrimKey(resourcePrimKey);
}
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);
}
Long rootResourcePrimKey = (Long)attributes.get("rootResourcePrimKey");
if (rootResourcePrimKey != null) {
setRootResourcePrimKey(rootResourcePrimKey);
}
Long parentResourceClassNameId = (Long)attributes.get(
"parentResourceClassNameId");
if (parentResourceClassNameId != null) {
setParentResourceClassNameId(parentResourceClassNameId);
}
Long parentResourcePrimKey = (Long)attributes.get(
"parentResourcePrimKey");
if (parentResourcePrimKey != null) {
setParentResourcePrimKey(parentResourcePrimKey);
}
Long kbFolderId = (Long)attributes.get("kbFolderId");
if (kbFolderId != null) {
setKbFolderId(kbFolderId);
}
Integer version = (Integer)attributes.get("version");
if (version != null) {
setVersion(version);
}
String title = (String)attributes.get("title");
if (title != null) {
setTitle(title);
}
String urlTitle = (String)attributes.get("urlTitle");
if (urlTitle != null) {
setUrlTitle(urlTitle);
}
String content = (String)attributes.get("content");
if (content != null) {
setContent(content);
}
String description = (String)attributes.get("description");
if (description != null) {
setDescription(description);
}
Double priority = (Double)attributes.get("priority");
if (priority != null) {
setPriority(priority);
}
String sections = (String)attributes.get("sections");
if (sections != null) {
setSections(sections);
}
Integer viewCount = (Integer)attributes.get("viewCount");
if (viewCount != null) {
setViewCount(viewCount);
}
Boolean latest = (Boolean)attributes.get("latest");
if (latest != null) {
setLatest(latest);
}
Boolean main = (Boolean)attributes.get("main");
if (main != null) {
setMain(main);
}
String sourceURL = (String)attributes.get("sourceURL");
if (sourceURL != null) {
setSourceURL(sourceURL);
}
Date lastPublishDate = (Date)attributes.get("lastPublishDate");
if (lastPublishDate != null) {
setLastPublishDate(lastPublishDate);
}
Integer status = (Integer)attributes.get("status");
if (status != null) {
setStatus(status);
}
Long statusByUserId = (Long)attributes.get("statusByUserId");
if (statusByUserId != null) {
setStatusByUserId(statusByUserId);
}
String statusByUserName = (String)attributes.get("statusByUserName");
if (statusByUserName != null) {
setStatusByUserName(statusByUserName);
}
Date statusDate = (Date)attributes.get("statusDate");
if (statusDate != null) {
setStatusDate(statusDate);
}
}
@Override
public KBArticle toEscapedModel() {
return new KBArticleWrapper(_kbArticle.toEscapedModel());
}
@Override
public KBArticle toUnescapedModel() {
return new KBArticleWrapper(_kbArticle.toUnescapedModel());
}
/**
* Returns the latest of this kb article.
*
* @return the latest of this kb article
*/
@Override
public boolean getLatest() {
return _kbArticle.getLatest();
}
/**
* Returns the main of this kb article.
*
* @return the main of this kb article
*/
@Override
public boolean getMain() {
return _kbArticle.getMain();
}
/**
* Returns <code>true</code> if this kb article is approved.
*
* @return <code>true</code> if this kb article is approved; <code>false</code> otherwise
*/
@Override
public boolean isApproved() {
return _kbArticle.isApproved();
}
@Override
public boolean isCachedModel() {
return _kbArticle.isCachedModel();
}
/**
* Returns <code>true</code> if this kb article is denied.
*
* @return <code>true</code> if this kb article is denied; <code>false</code> otherwise
*/
@Override
public boolean isDenied() {
return _kbArticle.isDenied();
}
/**
* Returns <code>true</code> if this kb article is a draft.
*
* @return <code>true</code> if this kb article is a draft; <code>false</code> otherwise
*/
@Override
public boolean isDraft() {
return _kbArticle.isDraft();
}
@Override
public boolean isEscapedModel() {
return _kbArticle.isEscapedModel();
}
/**
* Returns <code>true</code> if this kb article is expired.
*
* @return <code>true</code> if this kb article is expired; <code>false</code> otherwise
*/
@Override
public boolean isExpired() {
return _kbArticle.isExpired();
}
@Override
public boolean isFirstVersion() {
return _kbArticle.isFirstVersion();
}
/**
* Returns <code>true</code> if this kb article is inactive.
*
* @return <code>true</code> if this kb article is inactive; <code>false</code> otherwise
*/
@Override
public boolean isInactive() {
return _kbArticle.isInactive();
}
/**
* Returns <code>true</code> if this kb article is incomplete.
*
* @return <code>true</code> if this kb article is incomplete; <code>false</code> otherwise
*/
@Override
public boolean isIncomplete() {
return _kbArticle.isIncomplete();
}
/**
* Returns <code>true</code> if this kb article is latest.
*
* @return <code>true</code> if this kb article is latest; <code>false</code> otherwise
*/
@Override
public boolean isLatest() {
return _kbArticle.isLatest();
}
/**
* Returns <code>true</code> if this kb article is main.
*
* @return <code>true</code> if this kb article is main; <code>false</code> otherwise
*/
@Override
public boolean isMain() {
return _kbArticle.isMain();
}
@Override
public boolean isNew() {
return _kbArticle.isNew();
}
/**
* Returns <code>true</code> if this kb article is pending.
*
* @return <code>true</code> if this kb article is pending; <code>false</code> otherwise
*/
@Override
public boolean isPending() {
return _kbArticle.isPending();
}
@Override
public boolean isResourceMain() {
return _kbArticle.isResourceMain();
}
@Override
public boolean isRoot() {
return _kbArticle.isRoot();
}
/**
* Returns <code>true</code> if this kb article is scheduled.
*
* @return <code>true</code> if this kb article is scheduled; <code>false</code> otherwise
*/
@Override
public boolean isScheduled() {
return _kbArticle.isScheduled();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _kbArticle.getExpandoBridge();
}
@Override
public KBArticle getParentKBArticle()
throws com.liferay.portal.kernel.exception.PortalException {
return _kbArticle.getParentKBArticle();
}
@Override
public com.liferay.portal.kernel.model.CacheModel<KBArticle> toCacheModel() {
return _kbArticle.toCacheModel();
}
/**
* Returns the priority of this kb article.
*
* @return the priority of this kb article
*/
@Override
public double getPriority() {
return _kbArticle.getPriority();
}
@Override
public int compareTo(KBArticle kbArticle) {
return _kbArticle.compareTo(kbArticle);
}
/**
* Returns the status of this kb article.
*
* @return the status of this kb article
*/
@Override
public int getStatus() {
return _kbArticle.getStatus();
}
/**
* Returns the version of this kb article.
*
* @return the version of this kb article
*/
@Override
public int getVersion() {
return _kbArticle.getVersion();
}
/**
* Returns the view count of this kb article.
*
* @return the view count of this kb article
*/
@Override
public int getViewCount() {
return _kbArticle.getViewCount();
}
@Override
public int hashCode() {
return _kbArticle.hashCode();
}
@Override
public Serializable getPrimaryKeyObj() {
return _kbArticle.getPrimaryKeyObj();
}
@Override
public java.lang.Object clone() {
return new KBArticleWrapper((KBArticle)_kbArticle.clone());
}
/**
* Returns the content of this kb article.
*
* @return the content of this kb article
*/
@Override
public java.lang.String getContent() {
return _kbArticle.getContent();
}
/**
* Returns the description of this kb article.
*
* @return the description of this kb article
*/
@Override
public java.lang.String getDescription() {
return _kbArticle.getDescription();
}
@Override
public java.lang.String getParentTitle(java.util.Locale locale, int status)
throws com.liferay.portal.kernel.exception.PortalException {
return _kbArticle.getParentTitle(locale, status);
}
/**
* Returns the sections of this kb article.
*
* @return the sections of this kb article
*/
@Override
public java.lang.String getSections() {
return _kbArticle.getSections();
}
/**
* Returns the source url of this kb article.
*
* @return the source url of this kb article
*/
@Override
public java.lang.String getSourceURL() {
return _kbArticle.getSourceURL();
}
/**
* Returns the status by user name of this kb article.
*
* @return the status by user name of this kb article
*/
@Override
public java.lang.String getStatusByUserName() {
return _kbArticle.getStatusByUserName();
}
/**
* Returns the status by user uuid of this kb article.
*
* @return the status by user uuid of this kb article
*/
@Override
public java.lang.String getStatusByUserUuid() {
return _kbArticle.getStatusByUserUuid();
}
/**
* Returns the title of this kb article.
*
* @return the title of this kb article
*/
@Override
public java.lang.String getTitle() {
return _kbArticle.getTitle();
}
/**
* Returns the url title of this kb article.
*
* @return the url title of this kb article
*/
@Override
public java.lang.String getUrlTitle() {
return _kbArticle.getUrlTitle();
}
/**
* Returns the user name of this kb article.
*
* @return the user name of this kb article
*/
@Override
public java.lang.String getUserName() {
return _kbArticle.getUserName();
}
/**
* Returns the user uuid of this kb article.
*
* @return the user uuid of this kb article
*/
@Override
public java.lang.String getUserUuid() {
return _kbArticle.getUserUuid();
}
/**
* Returns the uuid of this kb article.
*
* @return the uuid of this kb article
*/
@Override
public java.lang.String getUuid() {
return _kbArticle.getUuid();
}
@Override
public java.lang.String toString() {
return _kbArticle.toString();
}
@Override
public java.lang.String toXmlString() {
return _kbArticle.toXmlString();
}
/**
* Returns the create date of this kb article.
*
* @return the create date of this kb article
*/
@Override
public Date getCreateDate() {
return _kbArticle.getCreateDate();
}
/**
* Returns the last publish date of this kb article.
*
* @return the last publish date of this kb article
*/
@Override
public Date getLastPublishDate() {
return _kbArticle.getLastPublishDate();
}
/**
* Returns the modified date of this kb article.
*
* @return the modified date of this kb article
*/
@Override
public Date getModifiedDate() {
return _kbArticle.getModifiedDate();
}
/**
* Returns the status date of this kb article.
*
* @return the status date of this kb article
*/
@Override
public Date getStatusDate() {
return _kbArticle.getStatusDate();
}
@Override
public java.util.List<java.lang.Long> getAncestorResourcePrimaryKeys()
throws com.liferay.portal.kernel.exception.PortalException {
return _kbArticle.getAncestorResourcePrimaryKeys();
}
@Override
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
throws com.liferay.portal.kernel.exception.PortalException {
return _kbArticle.getAttachmentsFileEntries();
}
@Override
public long getAttachmentsFolderId()
throws com.liferay.portal.kernel.exception.PortalException {
return _kbArticle.getAttachmentsFolderId();
}
@Override
public long getClassNameId() {
return _kbArticle.getClassNameId();
}
@Override
public long getClassPK() {
return _kbArticle.getClassPK();
}
/**
* Returns the company ID of this kb article.
*
* @return the company ID of this kb article
*/
@Override
public long getCompanyId() {
return _kbArticle.getCompanyId();
}
/**
* Returns the group ID of this kb article.
*
* @return the group ID of this kb article
*/
@Override
public long getGroupId() {
return _kbArticle.getGroupId();
}
/**
* Returns the kb article ID of this kb article.
*
* @return the kb article ID of this kb article
*/
@Override
public long getKbArticleId() {
return _kbArticle.getKbArticleId();
}
/**
* Returns the kb folder ID of this kb article.
*
* @return the kb folder ID of this kb article
*/
@Override
public long getKbFolderId() {
return _kbArticle.getKbFolderId();
}
/**
* Returns the parent resource class name ID of this kb article.
*
* @return the parent resource class name ID of this kb article
*/
@Override
public long getParentResourceClassNameId() {
return _kbArticle.getParentResourceClassNameId();
}
/**
* Returns the parent resource prim key of this kb article.
*
* @return the parent resource prim key of this kb article
*/
@Override
public long getParentResourcePrimKey() {
return _kbArticle.getParentResourcePrimKey();
}
/**
* Returns the primary key of this kb article.
*
* @return the primary key of this kb article
*/
@Override
public long getPrimaryKey() {
return _kbArticle.getPrimaryKey();
}
/**
* Returns the resource prim key of this kb article.
*
* @return the resource prim key of this kb article
*/
@Override
public long getResourcePrimKey() {
return _kbArticle.getResourcePrimKey();
}
/**
* Returns the root resource prim key of this kb article.
*
* @return the root resource prim key of this kb article
*/
@Override
public long getRootResourcePrimKey() {
return _kbArticle.getRootResourcePrimKey();
}
/**
* Returns the status by user ID of this kb article.
*
* @return the status by user ID of this kb article
*/
@Override
public long getStatusByUserId() {
return _kbArticle.getStatusByUserId();
}
/**
* Returns the user ID of this kb article.
*
* @return the user ID of this kb article
*/
@Override
public long getUserId() {
return _kbArticle.getUserId();
}
@Override
public void persist() {
_kbArticle.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_kbArticle.setCachedModel(cachedModel);
}
/**
* Sets the company ID of this kb article.
*
* @param companyId the company ID of this kb article
*/
@Override
public void setCompanyId(long companyId) {
_kbArticle.setCompanyId(companyId);
}
/**
* Sets the content of this kb article.
*
* @param content the content of this kb article
*/
@Override
public void setContent(java.lang.String content) {
_kbArticle.setContent(content);
}
/**
* Sets the create date of this kb article.
*
* @param createDate the create date of this kb article
*/
@Override
public void setCreateDate(Date createDate) {
_kbArticle.setCreateDate(createDate);
}
/**
* Sets the description of this kb article.
*
* @param description the description of this kb article
*/
@Override
public void setDescription(java.lang.String description) {
_kbArticle.setDescription(description);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_kbArticle.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
_kbArticle.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_kbArticle.setExpandoBridgeAttributes(serviceContext);
}
/**
* Sets the group ID of this kb article.
*
* @param groupId the group ID of this kb article
*/
@Override
public void setGroupId(long groupId) {
_kbArticle.setGroupId(groupId);
}
/**
* Sets the kb article ID of this kb article.
*
* @param kbArticleId the kb article ID of this kb article
*/
@Override
public void setKbArticleId(long kbArticleId) {
_kbArticle.setKbArticleId(kbArticleId);
}
/**
* Sets the kb folder ID of this kb article.
*
* @param kbFolderId the kb folder ID of this kb article
*/
@Override
public void setKbFolderId(long kbFolderId) {
_kbArticle.setKbFolderId(kbFolderId);
}
/**
* Sets the last publish date of this kb article.
*
* @param lastPublishDate the last publish date of this kb article
*/
@Override
public void setLastPublishDate(Date lastPublishDate) {
_kbArticle.setLastPublishDate(lastPublishDate);
}
/**
* Sets whether this kb article is latest.
*
* @param latest the latest of this kb article
*/
@Override
public void setLatest(boolean latest) {
_kbArticle.setLatest(latest);
}
/**
* Sets whether this kb article is main.
*
* @param main the main of this kb article
*/
@Override
public void setMain(boolean main) {
_kbArticle.setMain(main);
}
/**
* Sets the modified date of this kb article.
*
* @param modifiedDate the modified date of this kb article
*/
@Override
public void setModifiedDate(Date modifiedDate) {
_kbArticle.setModifiedDate(modifiedDate);
}
@Override
public void setNew(boolean n) {
_kbArticle.setNew(n);
}
/**
* Sets the parent resource class name ID of this kb article.
*
* @param parentResourceClassNameId the parent resource class name ID of this kb article
*/
@Override
public void setParentResourceClassNameId(long parentResourceClassNameId) {
_kbArticle.setParentResourceClassNameId(parentResourceClassNameId);
}
/**
* Sets the parent resource prim key of this kb article.
*
* @param parentResourcePrimKey the parent resource prim key of this kb article
*/
@Override
public void setParentResourcePrimKey(long parentResourcePrimKey) {
_kbArticle.setParentResourcePrimKey(parentResourcePrimKey);
}
/**
* Sets the primary key of this kb article.
*
* @param primaryKey the primary key of this kb article
*/
@Override
public void setPrimaryKey(long primaryKey) {
_kbArticle.setPrimaryKey(primaryKey);
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
_kbArticle.setPrimaryKeyObj(primaryKeyObj);
}
/**
* Sets the priority of this kb article.
*
* @param priority the priority of this kb article
*/
@Override
public void setPriority(double priority) {
_kbArticle.setPriority(priority);
}
/**
* Sets the resource prim key of this kb article.
*
* @param resourcePrimKey the resource prim key of this kb article
*/
@Override
public void setResourcePrimKey(long resourcePrimKey) {
_kbArticle.setResourcePrimKey(resourcePrimKey);
}
/**
* Sets the root resource prim key of this kb article.
*
* @param rootResourcePrimKey the root resource prim key of this kb article
*/
@Override
public void setRootResourcePrimKey(long rootResourcePrimKey) {
_kbArticle.setRootResourcePrimKey(rootResourcePrimKey);
}
/**
* Sets the sections of this kb article.
*
* @param sections the sections of this kb article
*/
@Override
public void setSections(java.lang.String sections) {
_kbArticle.setSections(sections);
}
/**
* Sets the source url of this kb article.
*
* @param sourceURL the source url of this kb article
*/
@Override
public void setSourceURL(java.lang.String sourceURL) {
_kbArticle.setSourceURL(sourceURL);
}
/**
* Sets the status of this kb article.
*
* @param status the status of this kb article
*/
@Override
public void setStatus(int status) {
_kbArticle.setStatus(status);
}
/**
* Sets the status by user ID of this kb article.
*
* @param statusByUserId the status by user ID of this kb article
*/
@Override
public void setStatusByUserId(long statusByUserId) {
_kbArticle.setStatusByUserId(statusByUserId);
}
/**
* Sets the status by user name of this kb article.
*
* @param statusByUserName the status by user name of this kb article
*/
@Override
public void setStatusByUserName(java.lang.String statusByUserName) {
_kbArticle.setStatusByUserName(statusByUserName);
}
/**
* Sets the status by user uuid of this kb article.
*
* @param statusByUserUuid the status by user uuid of this kb article
*/
@Override
public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
_kbArticle.setStatusByUserUuid(statusByUserUuid);
}
/**
* Sets the status date of this kb article.
*
* @param statusDate the status date of this kb article
*/
@Override
public void setStatusDate(Date statusDate) {
_kbArticle.setStatusDate(statusDate);
}
/**
* Sets the title of this kb article.
*
* @param title the title of this kb article
*/
@Override
public void setTitle(java.lang.String title) {
_kbArticle.setTitle(title);
}
/**
* Sets the url title of this kb article.
*
* @param urlTitle the url title of this kb article
*/
@Override
public void setUrlTitle(java.lang.String urlTitle) {
_kbArticle.setUrlTitle(urlTitle);
}
/**
* Sets the user ID of this kb article.
*
* @param userId the user ID of this kb article
*/
@Override
public void setUserId(long userId) {
_kbArticle.setUserId(userId);
}
/**
* Sets the user name of this kb article.
*
* @param userName the user name of this kb article
*/
@Override
public void setUserName(java.lang.String userName) {
_kbArticle.setUserName(userName);
}
/**
* Sets the user uuid of this kb article.
*
* @param userUuid the user uuid of this kb article
*/
@Override
public void setUserUuid(java.lang.String userUuid) {
_kbArticle.setUserUuid(userUuid);
}
/**
* Sets the uuid of this kb article.
*
* @param uuid the uuid of this kb article
*/
@Override
public void setUuid(java.lang.String uuid) {
_kbArticle.setUuid(uuid);
}
/**
* Sets the version of this kb article.
*
* @param version the version of this kb article
*/
@Override
public void setVersion(int version) {
_kbArticle.setVersion(version);
}
/**
* Sets the view count of this kb article.
*
* @param viewCount the view count of this kb article
*/
@Override
public void setViewCount(int viewCount) {
_kbArticle.setViewCount(viewCount);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof KBArticleWrapper)) {
return false;
}
KBArticleWrapper kbArticleWrapper = (KBArticleWrapper)obj;
if (Objects.equals(_kbArticle, kbArticleWrapper._kbArticle)) {
return true;
}
return false;
}
@Override
public StagedModelType getStagedModelType() {
return _kbArticle.getStagedModelType();
}
@Override
public KBArticle getWrappedModel() {
return _kbArticle;
}
@Override
public boolean isEntityCacheEnabled() {
return _kbArticle.isEntityCacheEnabled();
}
@Override
public boolean isFinderCacheEnabled() {
return _kbArticle.isFinderCacheEnabled();
}
@Override
public void resetOriginalValues() {
_kbArticle.resetOriginalValues();
}
private final KBArticle _kbArticle;
}