public class KBArticleWrapper extends BaseModelWrapper<KBArticle> implements KBArticle, ModelWrapper<KBArticle>
This class is a wrapper for KBArticle.
KBArticle,
Serialized FormmodelKB_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<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.
|
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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNameclonegetWrappedModelpublic KBArticleWrapper(KBArticle kbArticle)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<KBArticle>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<KBArticle>public java.util.List<java.lang.Long> getAncestorResourcePrimaryKeys()
throws PortalException
getAncestorResourcePrimaryKeys in interface KBArticlePortalExceptionpublic java.util.List<FileEntry> getAttachmentsFileEntries() throws PortalException
getAttachmentsFileEntries in interface KBArticlePortalExceptionpublic long getAttachmentsFolderId()
throws PortalException
getAttachmentsFolderId in interface KBArticlePortalExceptionpublic long getClassNameId()
getClassNameId in interface KBArticlepublic long getClassPK()
getClassPK in interface KBArticlepublic long getCompanyId()
getCompanyId in interface KBArticleModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic java.lang.String getContent()
getContent in interface KBArticleModelpublic java.util.Date getCreateDate()
getCreateDate in interface KBArticleModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic java.lang.String getDescription()
getDescription in interface KBArticleModelpublic long getGroupId()
getGroupId in interface KBArticleModelgetGroupId in interface GroupedModelpublic long getKbArticleId()
getKbArticleId in interface KBArticleModelpublic long getKbFolderId()
getKbFolderId in interface KBArticleModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface KBArticleModelgetLastPublishDate in interface StagedGroupedModelpublic boolean getLatest()
getLatest in interface KBArticleModelpublic boolean getMain()
getMain in interface KBArticleModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface KBArticleModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface KBArticleModelgetMvccVersion in interface MVCCModelpublic KBArticle getParentKBArticle() throws PortalException
getParentKBArticle in interface KBArticlePortalExceptionpublic long getParentResourceClassNameId()
getParentResourceClassNameId in interface KBArticleModelpublic long getParentResourcePrimKey()
getParentResourcePrimKey in interface KBArticleModelpublic java.lang.String getParentTitle(java.util.Locale locale,
int status)
throws PortalException
getParentTitle in interface KBArticlePortalExceptionpublic long getPrimaryKey()
getPrimaryKey in interface KBArticleModelpublic double getPriority()
getPriority in interface KBArticleModelpublic long getResourcePrimKey()
getResourcePrimKey in interface KBArticleModelgetResourcePrimKey in interface ResourcedModelpublic long getRootResourcePrimKey()
getRootResourcePrimKey in interface KBArticleModelpublic java.lang.String getSections()
getSections in interface KBArticleModelpublic java.lang.String getSourceURL()
getSourceURL in interface KBArticleModelpublic int getStatus()
getStatus in interface KBArticleModelgetStatus in interface WorkflowedModelpublic long getStatusByUserId()
getStatusByUserId in interface KBArticleModelgetStatusByUserId in interface WorkflowedModelpublic java.lang.String getStatusByUserName()
getStatusByUserName in interface KBArticleModelgetStatusByUserName in interface WorkflowedModelpublic java.lang.String getStatusByUserUuid()
getStatusByUserUuid in interface KBArticleModelgetStatusByUserUuid in interface WorkflowedModelpublic java.util.Date getStatusDate()
getStatusDate in interface KBArticleModelgetStatusDate in interface WorkflowedModelpublic java.lang.String getTitle()
getTitle in interface KBArticleModelpublic java.lang.String getUrlTitle()
getUrlTitle in interface KBArticleModelpublic long getUserId()
getUserId in interface KBArticleModelgetUserId in interface AuditedModelpublic java.lang.String getUserName()
getUserName in interface KBArticleModelgetUserName in interface AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface KBArticleModelgetUserUuid in interface AuditedModelpublic java.lang.String getUuid()
getUuid in interface KBArticleModelgetUuid in interface StagedModelpublic int getVersion()
getVersion in interface KBArticleModelpublic long getViewCount()
getViewCount in interface KBArticlepublic boolean isApproved()
true if this kb article is approved.isApproved in interface KBArticleModelisApproved in interface WorkflowedModeltrue if this kb article is approved; false otherwisepublic boolean isDenied()
true if this kb article is denied.isDenied in interface KBArticleModelisDenied in interface WorkflowedModeltrue if this kb article is denied; false otherwisepublic boolean isDraft()
true if this kb article is a draft.isDraft in interface KBArticleModelisDraft in interface WorkflowedModeltrue if this kb article is a draft; false otherwisepublic boolean isExpired()
true if this kb article is expired.isExpired in interface KBArticleModelisExpired in interface WorkflowedModeltrue if this kb article is expired; false otherwisepublic boolean isFirstVersion()
isFirstVersion in interface KBArticlepublic boolean isInactive()
true if this kb article is inactive.isInactive in interface KBArticleModelisInactive in interface WorkflowedModeltrue if this kb article is inactive; false otherwisepublic boolean isIncomplete()
true if this kb article is incomplete.isIncomplete in interface KBArticleModelisIncomplete in interface WorkflowedModeltrue if this kb article is incomplete; false otherwisepublic boolean isLatest()
true if this kb article is latest.isLatest in interface KBArticleModeltrue if this kb article is latest; false otherwisepublic boolean isMain()
true if this kb article is main.isMain in interface KBArticleModeltrue if this kb article is main; false otherwisepublic boolean isPending()
true if this kb article is pending.isPending in interface KBArticleModelisPending in interface WorkflowedModeltrue if this kb article is pending; false otherwisepublic boolean isResourceMain()
isResourceMain in interface KBArticleModelisResourceMain in interface ResourcedModelpublic boolean isScheduled()
true if this kb article is scheduled.isScheduled in interface KBArticleModelisScheduled in interface WorkflowedModeltrue if this kb article is scheduled; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCompanyId(long companyId)
setCompanyId in interface KBArticleModelsetCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this kb articlepublic void setContent(java.lang.String content)
setContent in interface KBArticleModelcontent - the content of this kb articlepublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface KBArticleModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this kb articlepublic void setDescription(java.lang.String description)
setDescription in interface KBArticleModeldescription - the description of this kb articlepublic void setGroupId(long groupId)
setGroupId in interface KBArticleModelsetGroupId in interface GroupedModelgroupId - the group ID of this kb articlepublic void setKbArticleId(long kbArticleId)
setKbArticleId in interface KBArticleModelkbArticleId - the kb article ID of this kb articlepublic void setKbFolderId(long kbFolderId)
setKbFolderId in interface KBArticleModelkbFolderId - the kb folder ID of this kb articlepublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface KBArticleModelsetLastPublishDate in interface StagedGroupedModellastPublishDate - the last publish date of this kb articlepublic void setLatest(boolean latest)
setLatest in interface KBArticleModellatest - the latest of this kb articlepublic void setMain(boolean main)
setMain in interface KBArticleModelmain - the main of this kb articlepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface KBArticleModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this kb articlepublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface KBArticleModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this kb articlepublic void setParentResourceClassNameId(long parentResourceClassNameId)
setParentResourceClassNameId in interface KBArticleModelparentResourceClassNameId - the parent resource class name ID of this kb articlepublic void setParentResourcePrimKey(long parentResourcePrimKey)
setParentResourcePrimKey in interface KBArticleModelparentResourcePrimKey - the parent resource prim key of this kb articlepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface KBArticleModelprimaryKey - the primary key of this kb articlepublic void setPriority(double priority)
setPriority in interface KBArticleModelpriority - the priority of this kb articlepublic void setResourcePrimKey(long resourcePrimKey)
setResourcePrimKey in interface KBArticleModelsetResourcePrimKey in interface ResourcedModelresourcePrimKey - the resource prim key of this kb articlepublic void setRootResourcePrimKey(long rootResourcePrimKey)
setRootResourcePrimKey in interface KBArticleModelrootResourcePrimKey - the root resource prim key of this kb articlepublic void setSections(java.lang.String sections)
setSections in interface KBArticleModelsections - the sections of this kb articlepublic void setSourceURL(java.lang.String sourceURL)
setSourceURL in interface KBArticleModelsourceURL - the source url of this kb articlepublic void setStatus(int status)
setStatus in interface KBArticleModelsetStatus in interface WorkflowedModelstatus - the status of this kb articlepublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface KBArticleModelsetStatusByUserId in interface WorkflowedModelstatusByUserId - the status by user ID of this kb articlepublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName in interface KBArticleModelsetStatusByUserName in interface WorkflowedModelstatusByUserName - the status by user name of this kb articlepublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid in interface KBArticleModelsetStatusByUserUuid in interface WorkflowedModelstatusByUserUuid - the status by user uuid of this kb articlepublic void setStatusDate(java.util.Date statusDate)
setStatusDate in interface KBArticleModelsetStatusDate in interface WorkflowedModelstatusDate - the status date of this kb articlepublic void setTitle(java.lang.String title)
setTitle in interface KBArticleModeltitle - the title of this kb articlepublic void setUrlTitle(java.lang.String urlTitle)
setUrlTitle in interface KBArticleModelurlTitle - the url title of this kb articlepublic void setUserId(long userId)
setUserId in interface KBArticleModelsetUserId in interface AuditedModeluserId - the user ID of this kb articlepublic void setUserName(java.lang.String userName)
setUserName in interface KBArticleModelsetUserName in interface AuditedModeluserName - the user name of this kb articlepublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface KBArticleModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this kb articlepublic void setUuid(java.lang.String uuid)
setUuid in interface KBArticleModelsetUuid in interface StagedModeluuid - the uuid of this kb articlepublic void setVersion(int version)
setVersion in interface KBArticleModelversion - the version of this kb articlepublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected KBArticleWrapper wrap(KBArticle kbArticle)
wrap in class BaseModelWrapper<KBArticle>