public class KBArticleWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KBArticle> implements KBArticle, com.liferay.portal.kernel.model.ModelWrapper<KBArticle>
This class is a wrapper for KBArticle
.
KBArticle
,
Serialized FormKB_ARTICLE_ID_ACCESSOR
Constructor and Description |
---|
KBArticleWrapper(KBArticle kbArticle) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getAncestorResourcePrimaryKeys() |
java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> |
getAttachmentsFileEntries() |
long |
getAttachmentsFolderId() |
long |
getClassNameId() |
long |
getClassPK() |
long |
getCompanyId()
Returns the company ID of this kb article.
|
java.lang.String |
getContent()
Returns the content of this kb article.
|
java.util.Date |
getCreateDate()
Returns the create date of this kb article.
|
java.lang.String |
getDescription()
Returns the description of this kb article.
|
long |
getGroupId()
Returns the group ID of this kb article.
|
long |
getKbArticleId()
Returns the kb article ID of this kb article.
|
long |
getKbFolderId()
Returns the kb folder ID of this kb article.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this kb article.
|
boolean |
getLatest()
Returns the latest of this kb article.
|
boolean |
getMain()
Returns the main of this kb article.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this kb article.
|
long |
getMvccVersion()
Returns the mvcc version of this kb article.
|
KBArticle |
getParentKBArticle() |
long |
getParentResourceClassNameId()
Returns the parent resource class name ID of this kb article.
|
long |
getParentResourcePrimKey()
Returns the parent resource prim key of this kb article.
|
java.lang.String |
getParentTitle(java.util.Locale locale,
int status) |
long |
getPrimaryKey()
Returns the primary key of this kb article.
|
double |
getPriority()
Returns the priority of this kb article.
|
long |
getResourcePrimKey()
Returns the resource prim key of this kb article.
|
long |
getRootResourcePrimKey()
Returns the root resource prim key of this kb article.
|
java.lang.String |
getSections()
Returns the sections of this kb article.
|
java.lang.String |
getSourceURL()
Returns the source url of this kb article.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this kb article.
|
long |
getStatusByUserId()
Returns the status by user ID of this kb article.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this kb article.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this kb article.
|
java.util.Date |
getStatusDate()
Returns the status date of this kb article.
|
java.lang.String |
getTitle()
Returns the title of this kb article.
|
java.lang.String |
getUrlTitle()
Returns the url title of this kb article.
|
long |
getUserId()
Returns the user ID of this kb article.
|
java.lang.String |
getUserName()
Returns the user name of this kb article.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this kb article.
|
java.lang.String |
getUuid()
Returns the uuid of this kb article.
|
int |
getVersion()
Returns the version of this kb article.
|
long |
getViewCount() |
boolean |
isApproved()
Returns
true if this kb article is approved. |
boolean |
isDenied()
Returns
true if this kb article is denied. |
boolean |
isDraft()
Returns
true if this kb article is a draft. |
boolean |
isExpired()
Returns
true if this kb article is expired. |
boolean |
isFirstVersion() |
boolean |
isInactive()
Returns
true if this kb article is inactive. |
boolean |
isIncomplete()
Returns
true if this kb article is incomplete. |
boolean |
isLatest()
Returns
true if this kb article is latest. |
boolean |
isMain()
Returns
true if this kb article is main. |
boolean |
isPending()
Returns
true if this kb article is pending. |
boolean |
isResourceMain() |
boolean |
isRoot() |
boolean |
isScheduled()
Returns
true if this kb article is scheduled. |
void |
persist() |
void |
setCompanyId(long companyId)
Sets the company ID of this kb article.
|
void |
setContent(java.lang.String content)
Sets the content of this kb article.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this kb article.
|
void |
setDescription(java.lang.String description)
Sets the description of this kb article.
|
void |
setGroupId(long groupId)
Sets the group ID of this kb article.
|
void |
setKbArticleId(long kbArticleId)
Sets the kb article ID of this kb article.
|
void |
setKbFolderId(long kbFolderId)
Sets the kb folder ID of this kb article.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this kb article.
|
void |
setLatest(boolean latest)
Sets whether this kb article is latest.
|
void |
setMain(boolean main)
Sets whether this kb article is main.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this kb article.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this kb article.
|
void |
setParentResourceClassNameId(long parentResourceClassNameId)
Sets the parent resource class name ID of this kb article.
|
void |
setParentResourcePrimKey(long parentResourcePrimKey)
Sets the parent resource prim key of this kb article.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this kb article.
|
void |
setPriority(double priority)
Sets the priority of this kb article.
|
void |
setResourcePrimKey(long resourcePrimKey)
Sets the resource prim key of this kb article.
|
void |
setRootResourcePrimKey(long rootResourcePrimKey)
Sets the root resource prim key of this kb article.
|
void |
setSections(java.lang.String sections)
Sets the sections of this kb article.
|
void |
setSourceURL(java.lang.String sourceURL)
Sets the source url of this kb article.
|
void |
setStatus(int status)
Sets the status of this kb article.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this kb article.
|
void |
setStatusByUserName(java.lang.String statusByUserName)
Sets the status by user name of this kb article.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this kb article.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this kb article.
|
void |
setTitle(java.lang.String title)
Sets the title of this kb article.
|
void |
setUrlTitle(java.lang.String urlTitle)
Sets the url title of this kb article.
|
void |
setUserId(long userId)
Sets the user ID of this kb article.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this kb article.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this kb article.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this kb article.
|
void |
setVersion(int version)
Sets the version of this kb article.
|
protected KBArticleWrapper |
wrap(KBArticle kbArticle) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public KBArticleWrapper(KBArticle kbArticle)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<KBArticle>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<KBArticle>
public java.util.List<java.lang.Long> getAncestorResourcePrimaryKeys() throws com.liferay.portal.kernel.exception.PortalException
getAncestorResourcePrimaryKeys
in interface KBArticle
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileEntries
in interface KBArticle
com.liferay.portal.kernel.exception.PortalException
public long getAttachmentsFolderId() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFolderId
in interface KBArticle
com.liferay.portal.kernel.exception.PortalException
public long getClassNameId()
getClassNameId
in interface KBArticle
public long getClassPK()
getClassPK
in interface KBArticle
public long getCompanyId()
getCompanyId
in interface KBArticleModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getContent()
getContent
in interface KBArticleModel
public java.util.Date getCreateDate()
getCreateDate
in interface KBArticleModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getDescription()
getDescription
in interface KBArticleModel
public long getGroupId()
getGroupId
in interface KBArticleModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public long getKbArticleId()
getKbArticleId
in interface KBArticleModel
public long getKbFolderId()
getKbFolderId
in interface KBArticleModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface KBArticleModel
getLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
public boolean getLatest()
getLatest
in interface KBArticleModel
public boolean getMain()
getMain
in interface KBArticleModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface KBArticleModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface KBArticleModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public KBArticle getParentKBArticle() throws com.liferay.portal.kernel.exception.PortalException
getParentKBArticle
in interface KBArticle
com.liferay.portal.kernel.exception.PortalException
public long getParentResourceClassNameId()
getParentResourceClassNameId
in interface KBArticleModel
public long getParentResourcePrimKey()
getParentResourcePrimKey
in interface KBArticleModel
public java.lang.String getParentTitle(java.util.Locale locale, int status) throws com.liferay.portal.kernel.exception.PortalException
getParentTitle
in interface KBArticle
com.liferay.portal.kernel.exception.PortalException
public long getPrimaryKey()
getPrimaryKey
in interface KBArticleModel
public double getPriority()
getPriority
in interface KBArticleModel
public long getResourcePrimKey()
getResourcePrimKey
in interface KBArticleModel
getResourcePrimKey
in interface com.liferay.portal.kernel.model.ResourcedModel
public long getRootResourcePrimKey()
getRootResourcePrimKey
in interface KBArticleModel
public java.lang.String getSections()
getSections
in interface KBArticleModel
public java.lang.String getSourceURL()
getSourceURL
in interface KBArticleModel
public int getStatus()
getStatus
in interface KBArticleModel
getStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
public long getStatusByUserId()
getStatusByUserId
in interface KBArticleModel
getStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserName()
getStatusByUserName
in interface KBArticleModel
getStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserUuid()
getStatusByUserUuid
in interface KBArticleModel
getStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.util.Date getStatusDate()
getStatusDate
in interface KBArticleModel
getStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getTitle()
getTitle
in interface KBArticleModel
public java.lang.String getUrlTitle()
getUrlTitle
in interface KBArticleModel
public long getUserId()
getUserId
in interface KBArticleModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface KBArticleModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface KBArticleModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface KBArticleModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public int getVersion()
getVersion
in interface KBArticleModel
public long getViewCount()
getViewCount
in interface KBArticle
public boolean isApproved()
true
if this kb article is approved.isApproved
in interface KBArticleModel
isApproved
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is approved; false
otherwisepublic boolean isDenied()
true
if this kb article is denied.isDenied
in interface KBArticleModel
isDenied
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is denied; false
otherwisepublic boolean isDraft()
true
if this kb article is a draft.isDraft
in interface KBArticleModel
isDraft
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is a draft; false
otherwisepublic boolean isExpired()
true
if this kb article is expired.isExpired
in interface KBArticleModel
isExpired
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is expired; false
otherwisepublic boolean isFirstVersion()
isFirstVersion
in interface KBArticle
public boolean isInactive()
true
if this kb article is inactive.isInactive
in interface KBArticleModel
isInactive
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is inactive; false
otherwisepublic boolean isIncomplete()
true
if this kb article is incomplete.isIncomplete
in interface KBArticleModel
isIncomplete
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is incomplete; false
otherwisepublic boolean isLatest()
true
if this kb article is latest.isLatest
in interface KBArticleModel
true
if this kb article is latest; false
otherwisepublic boolean isMain()
true
if this kb article is main.isMain
in interface KBArticleModel
true
if this kb article is main; false
otherwisepublic boolean isPending()
true
if this kb article is pending.isPending
in interface KBArticleModel
isPending
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is pending; false
otherwisepublic boolean isResourceMain()
isResourceMain
in interface KBArticleModel
isResourceMain
in interface com.liferay.portal.kernel.model.ResourcedModel
public boolean isScheduled()
true
if this kb article is scheduled.isScheduled
in interface KBArticleModel
isScheduled
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this kb article is scheduled; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface KBArticleModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this kb articlepublic void setContent(java.lang.String content)
setContent
in interface KBArticleModel
content
- the content of this kb articlepublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface KBArticleModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this kb articlepublic void setDescription(java.lang.String description)
setDescription
in interface KBArticleModel
description
- the description of this kb articlepublic void setGroupId(long groupId)
setGroupId
in interface KBArticleModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this kb articlepublic void setKbArticleId(long kbArticleId)
setKbArticleId
in interface KBArticleModel
kbArticleId
- the kb article ID of this kb articlepublic void setKbFolderId(long kbFolderId)
setKbFolderId
in interface KBArticleModel
kbFolderId
- the kb folder ID of this kb articlepublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface KBArticleModel
setLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
lastPublishDate
- the last publish date of this kb articlepublic void setLatest(boolean latest)
setLatest
in interface KBArticleModel
latest
- the latest of this kb articlepublic void setMain(boolean main)
setMain
in interface KBArticleModel
main
- the main of this kb articlepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface KBArticleModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this kb articlepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface KBArticleModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this kb articlepublic void setParentResourceClassNameId(long parentResourceClassNameId)
setParentResourceClassNameId
in interface KBArticleModel
parentResourceClassNameId
- the parent resource class name ID of this kb articlepublic void setParentResourcePrimKey(long parentResourcePrimKey)
setParentResourcePrimKey
in interface KBArticleModel
parentResourcePrimKey
- the parent resource prim key of this kb articlepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface KBArticleModel
primaryKey
- the primary key of this kb articlepublic void setPriority(double priority)
setPriority
in interface KBArticleModel
priority
- the priority of this kb articlepublic void setResourcePrimKey(long resourcePrimKey)
setResourcePrimKey
in interface KBArticleModel
setResourcePrimKey
in interface com.liferay.portal.kernel.model.ResourcedModel
resourcePrimKey
- the resource prim key of this kb articlepublic void setRootResourcePrimKey(long rootResourcePrimKey)
setRootResourcePrimKey
in interface KBArticleModel
rootResourcePrimKey
- the root resource prim key of this kb articlepublic void setSections(java.lang.String sections)
setSections
in interface KBArticleModel
sections
- the sections of this kb articlepublic void setSourceURL(java.lang.String sourceURL)
setSourceURL
in interface KBArticleModel
sourceURL
- the source url of this kb articlepublic void setStatus(int status)
setStatus
in interface KBArticleModel
setStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
status
- the status of this kb articlepublic void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface KBArticleModel
setStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserId
- the status by user ID of this kb articlepublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName
in interface KBArticleModel
setStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserName
- the status by user name of this kb articlepublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid
in interface KBArticleModel
setStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserUuid
- the status by user uuid of this kb articlepublic void setStatusDate(java.util.Date statusDate)
setStatusDate
in interface KBArticleModel
setStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusDate
- the status date of this kb articlepublic void setTitle(java.lang.String title)
setTitle
in interface KBArticleModel
title
- the title of this kb articlepublic void setUrlTitle(java.lang.String urlTitle)
setUrlTitle
in interface KBArticleModel
urlTitle
- the url title of this kb articlepublic void setUserId(long userId)
setUserId
in interface KBArticleModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this kb articlepublic void setUserName(java.lang.String userName)
setUserName
in interface KBArticleModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this kb articlepublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface KBArticleModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this kb articlepublic void setUuid(java.lang.String uuid)
setUuid
in interface KBArticleModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this kb articlepublic void setVersion(int version)
setVersion
in interface KBArticleModel
version
- the version of this kb articlepublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected KBArticleWrapper wrap(KBArticle kbArticle)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KBArticle>