public class WikiPageWrapper extends BaseModelWrapper<WikiPage> implements ModelWrapper<WikiPage>, WikiPage
This class is a wrapper for WikiPage.
WikiPage,
Serialized FormmodelPAGE_ID_ACCESSOR| Constructor and Description |
|---|
WikiPageWrapper(WikiPage wikiPage) |
| Modifier and Type | Method and Description |
|---|---|
Folder |
addAttachmentsFolder() |
WikiPage |
fetchParentPage() |
WikiPage |
fetchRedirectPage() |
java.util.List<FileEntry> |
getAttachmentsFileEntries() |
java.util.List<FileEntry> |
getAttachmentsFileEntries(int start,
int end) |
java.util.List<FileEntry> |
getAttachmentsFileEntries(int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
java.util.List<FileEntry> |
getAttachmentsFileEntries(java.lang.String[] mimeTypes,
int start,
int end,
OrderByComparator<FileEntry> orderByComparator) |
int |
getAttachmentsFileEntriesCount() |
int |
getAttachmentsFileEntriesCount(java.lang.String[] mimeTypes) |
long |
getAttachmentsFolderId() |
java.util.List<WikiPage> |
getChildPages() |
long |
getCompanyId()
Returns the company ID of this wiki page.
|
long |
getContainerModelId()
Returns the container model ID of this wiki page.
|
java.lang.String |
getContainerModelName()
Returns the container name of this wiki page.
|
java.lang.String |
getContent()
Returns the content of this wiki page.
|
java.util.Date |
getCreateDate()
Returns the create date of this wiki page.
|
java.util.List<FileEntry> |
getDeletedAttachmentsFileEntries() |
java.util.List<FileEntry> |
getDeletedAttachmentsFileEntries(int start,
int end) |
int |
getDeletedAttachmentsFileEntriesCount() |
java.lang.String |
getFormat()
Returns the format of this wiki page.
|
long |
getGroupId()
Returns the group ID of this wiki page.
|
boolean |
getHead()
Returns the head of this wiki page.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this wiki page.
|
boolean |
getMinorEdit()
Returns the minor edit of this wiki page.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this wiki page.
|
long |
getMvccVersion()
Returns the mvcc version of this wiki page.
|
WikiNode |
getNode() |
long |
getNodeAttachmentsFolderId() |
long |
getNodeId()
Returns the node ID of this wiki page.
|
long |
getPageId()
Returns the page ID of this wiki page.
|
long |
getParentContainerModelId()
Returns the parent container model ID of this wiki page.
|
WikiPage |
getParentPage() |
java.util.List<WikiPage> |
getParentPages() |
java.lang.String |
getParentTitle()
Returns the parent title of this wiki page.
|
long |
getPrimaryKey()
Returns the primary key of this wiki page.
|
WikiPage |
getRedirectPage() |
java.lang.String |
getRedirectTitle()
Returns the redirect title of this wiki page.
|
long |
getResourcePrimKey()
Returns the resource prim key of this wiki page.
|
StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this wiki page.
|
long |
getStatusByUserId()
Returns the status by user ID of this wiki page.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this wiki page.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this wiki page.
|
java.util.Date |
getStatusDate()
Returns the status date of this wiki page.
|
java.lang.String |
getSummary()
Returns the summary of this wiki page.
|
java.lang.String |
getTitle()
Returns the title of this wiki page.
|
TrashEntry |
getTrashEntry()
Returns the trash entry created when this wiki page was moved to the Recycle Bin.
|
long |
getTrashEntryClassPK()
Returns the class primary key of the trash entry for this wiki page.
|
TrashHandler |
getTrashHandler()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
long |
getUserId()
Returns the user ID of this wiki page.
|
java.lang.String |
getUserName()
Returns the user name of this wiki page.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this wiki page.
|
java.lang.String |
getUuid()
Returns the uuid of this wiki page.
|
double |
getVersion()
Returns the version of this wiki page.
|
java.util.List<WikiPage> |
getViewableChildPages() |
WikiPage |
getViewableParentPage() |
java.util.List<WikiPage> |
getViewableParentPages() |
boolean |
isApproved()
Returns
true if this wiki page is approved. |
boolean |
isDenied()
Returns
true if this wiki page is denied. |
boolean |
isDraft()
Returns
true if this wiki page is a draft. |
boolean |
isExpired()
Returns
true if this wiki page is expired. |
boolean |
isHead()
Returns
true if this wiki page is head. |
boolean |
isInactive()
Returns
true if this wiki page is inactive. |
boolean |
isIncomplete()
Returns
true if this wiki page is incomplete. |
boolean |
isInTrash()
Returns
true if this wiki page is in the Recycle Bin. |
boolean |
isInTrashContainer()
Returns
true if the parent of this wiki page is in the Recycle Bin. |
boolean |
isInTrashExplicitly() |
boolean |
isInTrashImplicitly() |
boolean |
isMinorEdit()
Returns
true if this wiki page is minor edit. |
boolean |
isPending()
Returns
true if this wiki page is pending. |
boolean |
isResourceMain() |
boolean |
isScheduled()
Returns
true if this wiki page is scheduled. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setAttachmentsFolderId(long attachmentsFolderId) |
void |
setCompanyId(long companyId)
Sets the company ID of this wiki page.
|
void |
setContainerModelId(long containerModelId)
Sets the container model ID of this wiki page.
|
void |
setContent(java.lang.String content)
Sets the content of this wiki page.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this wiki page.
|
void |
setFormat(java.lang.String format)
Sets the format of this wiki page.
|
void |
setGroupId(long groupId)
Sets the group ID of this wiki page.
|
void |
setHead(boolean head)
Sets whether this wiki page is head.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this wiki page.
|
void |
setMinorEdit(boolean minorEdit)
Sets whether this wiki page is minor edit.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this wiki page.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this wiki page.
|
void |
setNodeId(long nodeId)
Sets the node ID of this wiki page.
|
void |
setPageId(long pageId)
Sets the page ID of this wiki page.
|
void |
setParentContainerModelId(long parentContainerModelId)
Sets the parent container model ID of this wiki page.
|
void |
setParentTitle(java.lang.String parentTitle)
Sets the parent title of this wiki page.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this wiki page.
|
void |
setRedirectTitle(java.lang.String redirectTitle)
Sets the redirect title of this wiki page.
|
void |
setResourcePrimKey(long resourcePrimKey)
Sets the resource prim key of this wiki page.
|
void |
setStatus(int status)
Sets the status of this wiki page.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this wiki page.
|
void |
setStatusByUserName(java.lang.String statusByUserName)
Sets the status by user name of this wiki page.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this wiki page.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this wiki page.
|
void |
setSummary(java.lang.String summary)
Sets the summary of this wiki page.
|
void |
setTitle(java.lang.String title)
Sets the title of this wiki page.
|
void |
setUserId(long userId)
Sets the user ID of this wiki page.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this wiki page.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this wiki page.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this wiki page.
|
void |
setVersion(double version)
Sets the version of this wiki page.
|
protected WikiPageWrapper |
wrap(WikiPage wikiPage) |
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, waitgetWrappedModelclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamegetModelClass, getModelClassNameclonepublic WikiPageWrapper(WikiPage wikiPage)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<WikiPage>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<WikiPage>public Folder addAttachmentsFolder() throws PortalException
addAttachmentsFolder in interface WikiPagePortalExceptionpublic WikiPage fetchParentPage()
fetchParentPage in interface WikiPagepublic WikiPage fetchRedirectPage()
fetchRedirectPage in interface WikiPagepublic java.util.List<FileEntry> getAttachmentsFileEntries() throws PortalException
getAttachmentsFileEntries in interface WikiPagePortalExceptionpublic java.util.List<FileEntry> getAttachmentsFileEntries(int start, int end) throws PortalException
getAttachmentsFileEntries in interface WikiPagePortalExceptionpublic java.util.List<FileEntry> getAttachmentsFileEntries(int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
getAttachmentsFileEntries in interface WikiPagePortalExceptionpublic java.util.List<FileEntry> getAttachmentsFileEntries(java.lang.String[] mimeTypes, int start, int end, OrderByComparator<FileEntry> orderByComparator) throws PortalException
getAttachmentsFileEntries in interface WikiPagePortalExceptionpublic int getAttachmentsFileEntriesCount()
throws PortalException
getAttachmentsFileEntriesCount in interface WikiPagePortalExceptionpublic int getAttachmentsFileEntriesCount(java.lang.String[] mimeTypes)
throws PortalException
getAttachmentsFileEntriesCount in interface WikiPagePortalExceptionpublic long getAttachmentsFolderId()
getAttachmentsFolderId in interface WikiPagepublic java.util.List<WikiPage> getChildPages()
getChildPages in interface WikiPagepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelgetCompanyId in interface WikiPageModelpublic long getContainerModelId()
getContainerModelId in interface ContainerModelgetContainerModelId in interface WikiPageModelpublic java.lang.String getContainerModelName()
getContainerModelName in interface ContainerModelgetContainerModelName in interface WikiPageModelpublic java.lang.String getContent()
getContent in interface WikiPageModelpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface WikiPageModelpublic java.util.List<FileEntry> getDeletedAttachmentsFileEntries() throws PortalException
getDeletedAttachmentsFileEntries in interface WikiPagePortalExceptionpublic java.util.List<FileEntry> getDeletedAttachmentsFileEntries(int start, int end) throws PortalException
getDeletedAttachmentsFileEntries in interface WikiPagePortalExceptionpublic int getDeletedAttachmentsFileEntriesCount()
throws PortalException
getDeletedAttachmentsFileEntriesCount in interface WikiPagePortalExceptionpublic java.lang.String getFormat()
getFormat in interface WikiPageModelpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface WikiPageModelpublic boolean getHead()
getHead in interface WikiPageModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface StagedGroupedModelgetLastPublishDate in interface WikiPageModelpublic boolean getMinorEdit()
getMinorEdit in interface WikiPageModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface WikiPageModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface WikiPageModelpublic long getNodeAttachmentsFolderId()
getNodeAttachmentsFolderId in interface WikiPagepublic long getNodeId()
getNodeId in interface WikiPageModelpublic long getPageId()
getPageId in interface WikiPageModelpublic long getParentContainerModelId()
getParentContainerModelId in interface ContainerModelgetParentContainerModelId in interface WikiPageModelpublic WikiPage getParentPage() throws PortalException
getParentPage in interface WikiPagePortalExceptionpublic java.util.List<WikiPage> getParentPages()
getParentPages in interface WikiPagepublic java.lang.String getParentTitle()
getParentTitle in interface WikiPageModelpublic long getPrimaryKey()
getPrimaryKey in interface WikiPageModelpublic WikiPage getRedirectPage() throws PortalException
getRedirectPage in interface WikiPagePortalExceptionpublic java.lang.String getRedirectTitle()
getRedirectTitle in interface WikiPageModelpublic long getResourcePrimKey()
getResourcePrimKey in interface ResourcedModelgetResourcePrimKey in interface WikiPageModelpublic int getStatus()
getStatus in interface TrashedModelgetStatus in interface WorkflowedModelgetStatus in interface WikiPageModelpublic long getStatusByUserId()
getStatusByUserId in interface WorkflowedModelgetStatusByUserId in interface WikiPageModelpublic java.lang.String getStatusByUserName()
getStatusByUserName in interface WorkflowedModelgetStatusByUserName in interface WikiPageModelpublic java.lang.String getStatusByUserUuid()
getStatusByUserUuid in interface WorkflowedModelgetStatusByUserUuid in interface WikiPageModelpublic java.util.Date getStatusDate()
getStatusDate in interface WorkflowedModelgetStatusDate in interface WikiPageModelpublic java.lang.String getSummary()
getSummary in interface WikiPageModelpublic java.lang.String getTitle()
getTitle in interface WikiPageModelpublic TrashEntry getTrashEntry() throws PortalException
getTrashEntry in interface TrashedModelgetTrashEntry in interface WikiPageModelPortalExceptionpublic long getTrashEntryClassPK()
getTrashEntryClassPK in interface TrashedModelgetTrashEntryClassPK in interface WikiPageModel@Deprecated public TrashHandler getTrashHandler()
getTrashHandler in interface TrashedModelgetTrashHandler in interface WikiPageModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface WikiPageModelpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface WikiPageModelpublic java.lang.String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface WikiPageModelpublic java.lang.String getUuid()
getUuid in interface StagedModelgetUuid in interface WikiPageModelpublic double getVersion()
getVersion in interface WikiPageModelpublic java.util.List<WikiPage> getViewableChildPages()
getViewableChildPages in interface WikiPagepublic WikiPage getViewableParentPage()
getViewableParentPage in interface WikiPagepublic java.util.List<WikiPage> getViewableParentPages()
getViewableParentPages in interface WikiPagepublic boolean isApproved()
true if this wiki page is approved.isApproved in interface WorkflowedModelisApproved in interface WikiPageModeltrue if this wiki page is approved; false otherwisepublic boolean isDenied()
true if this wiki page is denied.isDenied in interface WorkflowedModelisDenied in interface WikiPageModeltrue if this wiki page is denied; false otherwisepublic boolean isDraft()
true if this wiki page is a draft.isDraft in interface WorkflowedModelisDraft in interface WikiPageModeltrue if this wiki page is a draft; false otherwisepublic boolean isExpired()
true if this wiki page is expired.isExpired in interface WorkflowedModelisExpired in interface WikiPageModeltrue if this wiki page is expired; false otherwisepublic boolean isHead()
true if this wiki page is head.isHead in interface WikiPageModeltrue if this wiki page is head; false otherwisepublic boolean isInactive()
true if this wiki page is inactive.isInactive in interface WorkflowedModelisInactive in interface WikiPageModeltrue if this wiki page is inactive; false otherwisepublic boolean isIncomplete()
true if this wiki page is incomplete.isIncomplete in interface WorkflowedModelisIncomplete in interface WikiPageModeltrue if this wiki page is incomplete; false otherwisepublic boolean isInTrash()
true if this wiki page is in the Recycle Bin.isInTrash in interface TrashedModelisInTrash in interface WikiPageModeltrue if this wiki page is in the Recycle Bin; false otherwisepublic boolean isInTrashContainer()
true if the parent of this wiki page is in the Recycle Bin.isInTrashContainer in interface TrashedModelisInTrashContainer in interface WikiPageModeltrue if the parent of this wiki page is in the Recycle Bin; false otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly in interface TrashedModelisInTrashExplicitly in interface WikiPageModelpublic boolean isInTrashImplicitly()
isInTrashImplicitly in interface TrashedModelisInTrashImplicitly in interface WikiPageModelpublic boolean isMinorEdit()
true if this wiki page is minor edit.isMinorEdit in interface WikiPageModeltrue if this wiki page is minor edit; false otherwisepublic boolean isPending()
true if this wiki page is pending.isPending in interface WorkflowedModelisPending in interface WikiPageModeltrue if this wiki page is pending; false otherwisepublic boolean isResourceMain()
isResourceMain in interface ResourcedModelisResourceMain in interface WikiPageModelpublic boolean isScheduled()
true if this wiki page is scheduled.isScheduled in interface WorkflowedModelisScheduled in interface WikiPageModeltrue if this wiki page is scheduled; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setAttachmentsFolderId(long attachmentsFolderId)
setAttachmentsFolderId in interface WikiPagepublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelsetCompanyId in interface WikiPageModelcompanyId - the company ID of this wiki pagepublic void setContainerModelId(long containerModelId)
setContainerModelId in interface ContainerModelsetContainerModelId in interface WikiPageModelcontainerModelId - the container model ID of this wiki pagepublic void setContent(java.lang.String content)
setContent in interface WikiPageModelcontent - the content of this wiki pagepublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface WikiPageModelcreateDate - the create date of this wiki pagepublic void setFormat(java.lang.String format)
setFormat in interface WikiPageModelformat - the format of this wiki pagepublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface WikiPageModelgroupId - the group ID of this wiki pagepublic void setHead(boolean head)
setHead in interface WikiPageModelhead - the head of this wiki pagepublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface StagedGroupedModelsetLastPublishDate in interface WikiPageModellastPublishDate - the last publish date of this wiki pagepublic void setMinorEdit(boolean minorEdit)
setMinorEdit in interface WikiPageModelminorEdit - the minor edit of this wiki pagepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface WikiPageModelmodifiedDate - the modified date of this wiki pagepublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface WikiPageModelmvccVersion - the mvcc version of this wiki pagepublic void setNodeId(long nodeId)
setNodeId in interface WikiPageModelnodeId - the node ID of this wiki pagepublic void setPageId(long pageId)
setPageId in interface WikiPageModelpageId - the page ID of this wiki pagepublic void setParentContainerModelId(long parentContainerModelId)
setParentContainerModelId in interface ContainerModelsetParentContainerModelId in interface WikiPageModelparentContainerModelId - the parent container model ID of this wiki pagepublic void setParentTitle(java.lang.String parentTitle)
setParentTitle in interface WikiPageModelparentTitle - the parent title of this wiki pagepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface WikiPageModelprimaryKey - the primary key of this wiki pagepublic void setRedirectTitle(java.lang.String redirectTitle)
setRedirectTitle in interface WikiPageModelredirectTitle - the redirect title of this wiki pagepublic void setResourcePrimKey(long resourcePrimKey)
setResourcePrimKey in interface ResourcedModelsetResourcePrimKey in interface WikiPageModelresourcePrimKey - the resource prim key of this wiki pagepublic void setStatus(int status)
setStatus in interface WorkflowedModelsetStatus in interface WikiPageModelstatus - the status of this wiki pagepublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface WorkflowedModelsetStatusByUserId in interface WikiPageModelstatusByUserId - the status by user ID of this wiki pagepublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName in interface WorkflowedModelsetStatusByUserName in interface WikiPageModelstatusByUserName - the status by user name of this wiki pagepublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid in interface WorkflowedModelsetStatusByUserUuid in interface WikiPageModelstatusByUserUuid - the status by user uuid of this wiki pagepublic void setStatusDate(java.util.Date statusDate)
setStatusDate in interface WorkflowedModelsetStatusDate in interface WikiPageModelstatusDate - the status date of this wiki pagepublic void setSummary(java.lang.String summary)
setSummary in interface WikiPageModelsummary - the summary of this wiki pagepublic void setTitle(java.lang.String title)
setTitle in interface WikiPageModeltitle - the title of this wiki pagepublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface WikiPageModeluserId - the user ID of this wiki pagepublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface WikiPageModeluserName - the user name of this wiki pagepublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface WikiPageModeluserUuid - the user uuid of this wiki pagepublic void setUuid(java.lang.String uuid)
setUuid in interface StagedModelsetUuid in interface WikiPageModeluuid - the uuid of this wiki pagepublic void setVersion(double version)
setVersion in interface WikiPageModelversion - the version of this wiki pagepublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected WikiPageWrapper wrap(WikiPage wikiPage)
wrap in class BaseModelWrapper<WikiPage>