Liferay 7.0-ce-m3

com.liferay.portlet.wiki.model
Class WikiPageWrapper

java.lang.Object
  extended by com.liferay.portlet.wiki.model.WikiPageWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<WikiPage>, ClassedModel, ContainerModel, GroupedModel, ModelWrapper<WikiPage>, PersistedModel, ResourcedModel, StagedGroupedModel, StagedModel, TrashedModel, WorkflowedModel, WikiPage, WikiPageModel, Serializable, Cloneable, Comparable<WikiPage>

@ProviderType
public class WikiPageWrapper
extends Object
implements WikiPage, ModelWrapper<WikiPage>

This class is a wrapper for WikiPage.

See Also:
WikiPage, Serialized Form

Constructor Summary
WikiPageWrapper(WikiPage wikiPage)
           
 
Method Summary
 Folder addAttachmentsFolder()
           
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(WikiPage wikiPage)
           
 boolean equals(Object obj)
           
 WikiPage fetchParentPage()
           
 WikiPage fetchRedirectPage()
           
 boolean getApproved()
          Deprecated. As of 6.1.0, replaced by isApproved()
 List<FileEntry> getAttachmentsFileEntries()
           
 List<FileEntry> getAttachmentsFileEntries(int start, int end)
           
 int getAttachmentsFileEntriesCount()
           
 long getAttachmentsFolderId()
           
 List<WikiPage> getChildPages()
           
 long getCompanyId()
          Returns the company ID of this wiki page.
 long getContainerModelId()
          Returns the container model ID of this wiki page.
 String getContainerModelName()
          Returns the container name of this wiki page.
 String getContent()
          Returns the content of this wiki page.
 Date getCreateDate()
          Returns the create date of this wiki page.
 List<FileEntry> getDeletedAttachmentsFileEntries()
           
 List<FileEntry> getDeletedAttachmentsFileEntries(int start, int end)
           
 int getDeletedAttachmentsFileEntriesCount()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 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.
 boolean getMinorEdit()
          Returns the minor edit of this wiki page.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date 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()
           
 List<WikiPage> getParentPages()
           
 String getParentTitle()
          Returns the parent title of this wiki page.
 long getPrimaryKey()
          Returns the primary key of this wiki page.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 WikiPage getRedirectPage()
           
 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.
 String getStatusByUserName()
          Returns the status by user name of this wiki page.
 String getStatusByUserUuid()
          Returns the status by user uuid of this wiki page.
 Date getStatusDate()
          Returns the status date of this wiki page.
 String getSummary()
          Returns the summary of this wiki page.
 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()
          Returns the trash handler for this wiki page.
 long getUserId()
          Returns the user ID of this wiki page.
 String getUserName()
          Returns the user name of this wiki page.
 String getUserUuid()
          Returns the user uuid of this wiki page.
 String getUuid()
          Returns the uuid of this wiki page.
 double getVersion()
          Returns the version of this wiki page.
 List<WikiPage> getViewableChildPages()
           
 WikiPage getViewableParentPage()
           
 List<WikiPage> getViewableParentPages()
           
 WikiPage getWrappedModel()
           
 WikiPage getWrappedWikiPage()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 int hashCode()
           
 boolean isApproved()
          Returns true if this wiki page is approved.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isDenied()
          Returns true if this wiki page is denied.
 boolean isDraft()
          Returns true if this wiki page is a draft.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
          Returns true if this wiki page is expired.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 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 isNew()
          Returns true if this model instance does not yet exist in the database.
 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 resetOriginalValues()
          Reset all original fields to current values.
 void setAttachmentsFolderId(long attachmentsFolderId)
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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(String content)
          Sets the content of this wiki page.
 void setCreateDate(Date createDate)
          Sets the create date of this wiki page.
 void setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFormat(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 setMinorEdit(boolean minorEdit)
          Sets whether this wiki page is minor edit.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this wiki page.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 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(String parentTitle)
          Sets the parent title of this wiki page.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this wiki page.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRedirectTitle(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(String statusByUserName)
          Sets the status by user name of this wiki page.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this wiki page.
 void setStatusDate(Date statusDate)
          Sets the status date of this wiki page.
 void setSummary(String summary)
          Sets the summary of this wiki page.
 void setTitle(String title)
          Sets the title of this wiki page.
 void setUserId(long userId)
          Sets the user ID of this wiki page.
 void setUserName(String userName)
          Sets the user name of this wiki page.
 void setUserUuid(String userUuid)
          Sets the user uuid of this wiki page.
 void setUuid(String uuid)
          Sets the uuid of this wiki page.
 void setVersion(double version)
          Sets the version of this wiki page.
 CacheModel<WikiPage> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 WikiPage toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 WikiPage toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WikiPageWrapper

public WikiPageWrapper(WikiPage wikiPage)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel
Specified by:
getModelClass in interface ContainerModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel
Specified by:
getModelClassName in interface ContainerModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<WikiPage>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<WikiPage>

addAttachmentsFolder

public Folder addAttachmentsFolder()
                            throws PortalException
Specified by:
addAttachmentsFolder in interface WikiPage
Throws:
PortalException

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<WikiPage>
Specified by:
clone in interface StagedModel
Specified by:
clone in interface WikiPageModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(WikiPage wikiPage)
Specified by:
compareTo in interface WikiPageModel
Specified by:
compareTo in interface Comparable<WikiPage>

fetchParentPage

public WikiPage fetchParentPage()
Specified by:
fetchParentPage in interface WikiPage

fetchRedirectPage

public WikiPage fetchRedirectPage()
Specified by:
fetchRedirectPage in interface WikiPage

getApproved

@Deprecated
public boolean getApproved()
Deprecated. As of 6.1.0, replaced by isApproved()

Specified by:
getApproved in interface WorkflowedModel
Specified by:
getApproved in interface WikiPageModel

getAttachmentsFileEntries

public List<FileEntry> getAttachmentsFileEntries()
Specified by:
getAttachmentsFileEntries in interface WikiPage

getAttachmentsFileEntries

public List<FileEntry> getAttachmentsFileEntries(int start,
                                                 int end)
Specified by:
getAttachmentsFileEntries in interface WikiPage

getAttachmentsFileEntriesCount

public int getAttachmentsFileEntriesCount()
Specified by:
getAttachmentsFileEntriesCount in interface WikiPage

getAttachmentsFolderId

public long getAttachmentsFolderId()
Specified by:
getAttachmentsFolderId in interface WikiPage

getChildPages

public List<WikiPage> getChildPages()
Specified by:
getChildPages in interface WikiPage

getCompanyId

public long getCompanyId()
Returns the company ID of this wiki page.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in interface WikiPageModel
Returns:
the company ID of this wiki page

getContainerModelId

public long getContainerModelId()
Returns the container model ID of this wiki page.

Specified by:
getContainerModelId in interface ContainerModel
Specified by:
getContainerModelId in interface WikiPageModel
Returns:
the container model ID of this wiki page

getContainerModelName

public String getContainerModelName()
Returns the container name of this wiki page.

Specified by:
getContainerModelName in interface ContainerModel
Specified by:
getContainerModelName in interface WikiPageModel
Returns:
the container name of this wiki page

getContent

public String getContent()
Returns the content of this wiki page.

Specified by:
getContent in interface WikiPageModel
Returns:
the content of this wiki page

getCreateDate

public Date getCreateDate()
Returns the create date of this wiki page.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel
Specified by:
getCreateDate in interface WikiPageModel
Returns:
the create date of this wiki page

getDeletedAttachmentsFileEntries

public List<FileEntry> getDeletedAttachmentsFileEntries()
Specified by:
getDeletedAttachmentsFileEntries in interface WikiPage

getDeletedAttachmentsFileEntries

public List<FileEntry> getDeletedAttachmentsFileEntries(int start,
                                                        int end)
Specified by:
getDeletedAttachmentsFileEntries in interface WikiPage

getDeletedAttachmentsFileEntriesCount

public int getDeletedAttachmentsFileEntriesCount()
Specified by:
getDeletedAttachmentsFileEntriesCount in interface WikiPage

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<WikiPage>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface WikiPageModel
Returns:
the expando bridge for this model instance

getFormat

public String getFormat()
Returns the format of this wiki page.

Specified by:
getFormat in interface WikiPageModel
Returns:
the format of this wiki page

getGroupId

public long getGroupId()
Returns the group ID of this wiki page.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface WikiPageModel
Returns:
the group ID of this wiki page

getHead

public boolean getHead()
Returns the head of this wiki page.

Specified by:
getHead in interface WikiPageModel
Returns:
the head of this wiki page

getMinorEdit

public boolean getMinorEdit()
Returns the minor edit of this wiki page.

Specified by:
getMinorEdit in interface WikiPageModel
Returns:
the minor edit of this wiki page

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this wiki page.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel
Specified by:
getModifiedDate in interface WikiPageModel
Returns:
the modified date of this wiki page

getNode

public WikiNode getNode()
Specified by:
getNode in interface WikiPage

getNodeAttachmentsFolderId

public long getNodeAttachmentsFolderId()
Specified by:
getNodeAttachmentsFolderId in interface WikiPage

getNodeId

public long getNodeId()
Returns the node ID of this wiki page.

Specified by:
getNodeId in interface WikiPageModel
Returns:
the node ID of this wiki page

getPageId

public long getPageId()
Returns the page ID of this wiki page.

Specified by:
getPageId in interface WikiPageModel
Returns:
the page ID of this wiki page

getParentContainerModelId

public long getParentContainerModelId()
Returns the parent container model ID of this wiki page.

Specified by:
getParentContainerModelId in interface ContainerModel
Specified by:
getParentContainerModelId in interface WikiPageModel
Returns:
the parent container model ID of this wiki page

getParentPage

public WikiPage getParentPage()
                       throws PortalException
Specified by:
getParentPage in interface WikiPage
Throws:
PortalException

getParentPages

public List<WikiPage> getParentPages()
Specified by:
getParentPages in interface WikiPage

getParentTitle

public String getParentTitle()
Returns the parent title of this wiki page.

Specified by:
getParentTitle in interface WikiPageModel
Returns:
the parent title of this wiki page

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this wiki page.

Specified by:
getPrimaryKey in interface WikiPageModel
Returns:
the primary key of this wiki page

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<WikiPage>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface WikiPageModel
Returns:
the primary key of this model instance

getRedirectPage

public WikiPage getRedirectPage()
                         throws PortalException
Specified by:
getRedirectPage in interface WikiPage
Throws:
PortalException

getRedirectTitle

public String getRedirectTitle()
Returns the redirect title of this wiki page.

Specified by:
getRedirectTitle in interface WikiPageModel
Returns:
the redirect title of this wiki page

getResourcePrimKey

public long getResourcePrimKey()
Returns the resource prim key of this wiki page.

Specified by:
getResourcePrimKey in interface ResourcedModel
Specified by:
getResourcePrimKey in interface WikiPageModel
Returns:
the resource prim key of this wiki page

getStatus

public int getStatus()
Returns the status of this wiki page.

Specified by:
getStatus in interface TrashedModel
Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface WikiPageModel
Returns:
the status of this wiki page

getStatusByUserId

public long getStatusByUserId()
Returns the status by user ID of this wiki page.

Specified by:
getStatusByUserId in interface WorkflowedModel
Specified by:
getStatusByUserId in interface WikiPageModel
Returns:
the status by user ID of this wiki page

getStatusByUserName

public String getStatusByUserName()
Returns the status by user name of this wiki page.

Specified by:
getStatusByUserName in interface WorkflowedModel
Specified by:
getStatusByUserName in interface WikiPageModel
Returns:
the status by user name of this wiki page

getStatusByUserUuid

public String getStatusByUserUuid()
Returns the status by user uuid of this wiki page.

Specified by:
getStatusByUserUuid in interface WorkflowedModel
Specified by:
getStatusByUserUuid in interface WikiPageModel
Returns:
the status by user uuid of this wiki page

getStatusDate

public Date getStatusDate()
Returns the status date of this wiki page.

Specified by:
getStatusDate in interface WorkflowedModel
Specified by:
getStatusDate in interface WikiPageModel
Returns:
the status date of this wiki page

getSummary

public String getSummary()
Returns the summary of this wiki page.

Specified by:
getSummary in interface WikiPageModel
Returns:
the summary of this wiki page

getTitle

public String getTitle()
Returns the title of this wiki page.

Specified by:
getTitle in interface WikiPageModel
Returns:
the title of this wiki page

getTrashEntry

public TrashEntry getTrashEntry()
                         throws PortalException
Returns the trash entry created when this wiki page was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this wiki page.

Specified by:
getTrashEntry in interface TrashedModel
Specified by:
getTrashEntry in interface WikiPageModel
Returns:
the trash entry created when this wiki page was moved to the Recycle Bin
Throws:
PortalException

getTrashEntryClassPK

public long getTrashEntryClassPK()
Returns the class primary key of the trash entry for this wiki page.

Specified by:
getTrashEntryClassPK in interface TrashedModel
Specified by:
getTrashEntryClassPK in interface WikiPageModel
Returns:
the class primary key of the trash entry for this wiki page

getTrashHandler

public TrashHandler getTrashHandler()
Returns the trash handler for this wiki page.

Specified by:
getTrashHandler in interface TrashedModel
Specified by:
getTrashHandler in interface WikiPageModel
Returns:
the trash handler for this wiki page

getUserId

public long getUserId()
Returns the user ID of this wiki page.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface WikiPageModel
Returns:
the user ID of this wiki page

getUserName

public String getUserName()
Returns the user name of this wiki page.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface WikiPageModel
Returns:
the user name of this wiki page

getUserUuid

public String getUserUuid()
Returns the user uuid of this wiki page.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface WikiPageModel
Returns:
the user uuid of this wiki page

getUuid

public String getUuid()
Returns the uuid of this wiki page.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface WikiPageModel
Returns:
the uuid of this wiki page

getVersion

public double getVersion()
Returns the version of this wiki page.

Specified by:
getVersion in interface WikiPageModel
Returns:
the version of this wiki page

getViewableChildPages

public List<WikiPage> getViewableChildPages()
Specified by:
getViewableChildPages in interface WikiPage

getViewableParentPage

public WikiPage getViewableParentPage()
Specified by:
getViewableParentPage in interface WikiPage

getViewableParentPages

public List<WikiPage> getViewableParentPages()
Specified by:
getViewableParentPages in interface WikiPage

hashCode

public int hashCode()
Specified by:
hashCode in interface WikiPageModel
Overrides:
hashCode in class Object

isApproved

public boolean isApproved()
Returns true if this wiki page is approved.

Specified by:
isApproved in interface WorkflowedModel
Specified by:
isApproved in interface WikiPageModel
Returns:
true if this wiki page is approved; false otherwise

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<WikiPage>
Specified by:
isCachedModel in interface WikiPageModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isDenied

public boolean isDenied()
Returns true if this wiki page is denied.

Specified by:
isDenied in interface WorkflowedModel
Specified by:
isDenied in interface WikiPageModel
Returns:
true if this wiki page is denied; false otherwise

isDraft

public boolean isDraft()
Returns true if this wiki page is a draft.

Specified by:
isDraft in interface WorkflowedModel
Specified by:
isDraft in interface WikiPageModel
Returns:
true if this wiki page is a draft; false otherwise

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<WikiPage>
Specified by:
isEscapedModel in interface WikiPageModel
Returns:
true if this model instance is escaped; false otherwise

isExpired

public boolean isExpired()
Returns true if this wiki page is expired.

Specified by:
isExpired in interface WorkflowedModel
Specified by:
isExpired in interface WikiPageModel
Returns:
true if this wiki page is expired; false otherwise

isHead

public boolean isHead()
Returns true if this wiki page is head.

Specified by:
isHead in interface WikiPageModel
Returns:
true if this wiki page is head; false otherwise

isInTrash

public boolean isInTrash()
Returns true if this wiki page is in the Recycle Bin.

Specified by:
isInTrash in interface TrashedModel
Specified by:
isInTrash in interface WikiPageModel
Returns:
true if this wiki page is in the Recycle Bin; false otherwise

isInTrashContainer

public boolean isInTrashContainer()
Returns true if the parent of this wiki page is in the Recycle Bin.

Specified by:
isInTrashContainer in interface TrashedModel
Specified by:
isInTrashContainer in interface WikiPageModel
Returns:
true if the parent of this wiki page is in the Recycle Bin; false otherwise

isInTrashExplicitly

public boolean isInTrashExplicitly()
Specified by:
isInTrashExplicitly in interface TrashedModel
Specified by:
isInTrashExplicitly in interface WikiPageModel

isInTrashImplicitly

public boolean isInTrashImplicitly()
Specified by:
isInTrashImplicitly in interface TrashedModel
Specified by:
isInTrashImplicitly in interface WikiPageModel

isInactive

public boolean isInactive()
Returns true if this wiki page is inactive.

Specified by:
isInactive in interface WorkflowedModel
Specified by:
isInactive in interface WikiPageModel
Returns:
true if this wiki page is inactive; false otherwise

isIncomplete

public boolean isIncomplete()
Returns true if this wiki page is incomplete.

Specified by:
isIncomplete in interface WorkflowedModel
Specified by:
isIncomplete in interface WikiPageModel
Returns:
true if this wiki page is incomplete; false otherwise

isMinorEdit

public boolean isMinorEdit()
Returns true if this wiki page is minor edit.

Specified by:
isMinorEdit in interface WikiPageModel
Returns:
true if this wiki page is minor edit; false otherwise

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<WikiPage>
Specified by:
isNew in interface WikiPageModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

isPending

public boolean isPending()
Returns true if this wiki page is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface WikiPageModel
Returns:
true if this wiki page is pending; false otherwise

isResourceMain

public boolean isResourceMain()
Specified by:
isResourceMain in interface ResourcedModel
Specified by:
isResourceMain in interface WikiPageModel

isScheduled

public boolean isScheduled()
Returns true if this wiki page is scheduled.

Specified by:
isScheduled in interface WorkflowedModel
Specified by:
isScheduled in interface WikiPageModel
Returns:
true if this wiki page is scheduled; false otherwise

persist

public void persist()
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel

setAttachmentsFolderId

public void setAttachmentsFolderId(long attachmentsFolderId)
Specified by:
setAttachmentsFolderId in interface WikiPage

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<WikiPage>
Specified by:
setCachedModel in interface WikiPageModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this wiki page.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel
Specified by:
setCompanyId in interface WikiPageModel
Parameters:
companyId - the company ID of this wiki page

setContainerModelId

public void setContainerModelId(long containerModelId)
Sets the container model ID of this wiki page.

Specified by:
setContainerModelId in interface ContainerModel
Specified by:
setContainerModelId in interface WikiPageModel
Parameters:
containerModelId - the container model ID of this wiki page

setContent

public void setContent(String content)
Sets the content of this wiki page.

Specified by:
setContent in interface WikiPageModel
Parameters:
content - the content of this wiki page

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this wiki page.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel
Specified by:
setCreateDate in interface WikiPageModel
Parameters:
createDate - the create date of this wiki page

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<WikiPage>
Specified by:
setExpandoBridgeAttributes in interface WikiPageModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<WikiPage>
Specified by:
setExpandoBridgeAttributes in interface WikiPageModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<WikiPage>
Specified by:
setExpandoBridgeAttributes in interface WikiPageModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

setFormat

public void setFormat(String format)
Sets the format of this wiki page.

Specified by:
setFormat in interface WikiPageModel
Parameters:
format - the format of this wiki page

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this wiki page.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface WikiPageModel
Parameters:
groupId - the group ID of this wiki page

setHead

public void setHead(boolean head)
Sets whether this wiki page is head.

Specified by:
setHead in interface WikiPageModel
Parameters:
head - the head of this wiki page

setMinorEdit

public void setMinorEdit(boolean minorEdit)
Sets whether this wiki page is minor edit.

Specified by:
setMinorEdit in interface WikiPageModel
Parameters:
minorEdit - the minor edit of this wiki page

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this wiki page.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel
Specified by:
setModifiedDate in interface WikiPageModel
Parameters:
modifiedDate - the modified date of this wiki page

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<WikiPage>
Specified by:
setNew in interface WikiPageModel
Parameters:
n - whether this model instance does not yet exist in the database

setNodeId

public void setNodeId(long nodeId)
Sets the node ID of this wiki page.

Specified by:
setNodeId in interface WikiPageModel
Parameters:
nodeId - the node ID of this wiki page

setPageId

public void setPageId(long pageId)
Sets the page ID of this wiki page.

Specified by:
setPageId in interface WikiPageModel
Parameters:
pageId - the page ID of this wiki page

setParentContainerModelId

public void setParentContainerModelId(long parentContainerModelId)
Sets the parent container model ID of this wiki page.

Specified by:
setParentContainerModelId in interface ContainerModel
Specified by:
setParentContainerModelId in interface WikiPageModel
Parameters:
parentContainerModelId - the parent container model ID of this wiki page

setParentTitle

public void setParentTitle(String parentTitle)
Sets the parent title of this wiki page.

Specified by:
setParentTitle in interface WikiPageModel
Parameters:
parentTitle - the parent title of this wiki page

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this wiki page.

Specified by:
setPrimaryKey in interface WikiPageModel
Parameters:
primaryKey - the primary key of this wiki page

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<WikiPage>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface WikiPageModel
Parameters:
primaryKeyObj - the primary key of this model instance

setRedirectTitle

public void setRedirectTitle(String redirectTitle)
Sets the redirect title of this wiki page.

Specified by:
setRedirectTitle in interface WikiPageModel
Parameters:
redirectTitle - the redirect title of this wiki page

setResourcePrimKey

public void setResourcePrimKey(long resourcePrimKey)
Sets the resource prim key of this wiki page.

Specified by:
setResourcePrimKey in interface ResourcedModel
Specified by:
setResourcePrimKey in interface WikiPageModel
Parameters:
resourcePrimKey - the resource prim key of this wiki page

setStatus

public void setStatus(int status)
Sets the status of this wiki page.

Specified by:
setStatus in interface WorkflowedModel
Specified by:
setStatus in interface WikiPageModel
Parameters:
status - the status of this wiki page

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Sets the status by user ID of this wiki page.

Specified by:
setStatusByUserId in interface WorkflowedModel
Specified by:
setStatusByUserId in interface WikiPageModel
Parameters:
statusByUserId - the status by user ID of this wiki page

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Sets the status by user name of this wiki page.

Specified by:
setStatusByUserName in interface WorkflowedModel
Specified by:
setStatusByUserName in interface WikiPageModel
Parameters:
statusByUserName - the status by user name of this wiki page

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this wiki page.

Specified by:
setStatusByUserUuid in interface WorkflowedModel
Specified by:
setStatusByUserUuid in interface WikiPageModel
Parameters:
statusByUserUuid - the status by user uuid of this wiki page

setStatusDate

public void setStatusDate(Date statusDate)
Sets the status date of this wiki page.

Specified by:
setStatusDate in interface WorkflowedModel
Specified by:
setStatusDate in interface WikiPageModel
Parameters:
statusDate - the status date of this wiki page

setSummary

public void setSummary(String summary)
Sets the summary of this wiki page.

Specified by:
setSummary in interface WikiPageModel
Parameters:
summary - the summary of this wiki page

setTitle

public void setTitle(String title)
Sets the title of this wiki page.

Specified by:
setTitle in interface WikiPageModel
Parameters:
title - the title of this wiki page

setUserId

public void setUserId(long userId)
Sets the user ID of this wiki page.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface WikiPageModel
Parameters:
userId - the user ID of this wiki page

setUserName

public void setUserName(String userName)
Sets the user name of this wiki page.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface WikiPageModel
Parameters:
userName - the user name of this wiki page

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this wiki page.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface WikiPageModel
Parameters:
userUuid - the user uuid of this wiki page

setUuid

public void setUuid(String uuid)
Sets the uuid of this wiki page.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface WikiPageModel
Parameters:
uuid - the uuid of this wiki page

setVersion

public void setVersion(double version)
Sets the version of this wiki page.

Specified by:
setVersion in interface WikiPageModel
Parameters:
version - the version of this wiki page

toCacheModel

public CacheModel<WikiPage> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<WikiPage>
Specified by:
toCacheModel in interface WikiPageModel
Returns:
the cache model object

toEscapedModel

public WikiPage toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<WikiPage>
Specified by:
toEscapedModel in interface WikiPageModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

public String toString()
Specified by:
toString in interface WikiPageModel
Overrides:
toString in class Object

toUnescapedModel

public WikiPage toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<WikiPage>
Specified by:
toUnescapedModel in interface WikiPageModel

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<WikiPage>
Specified by:
toXmlString in interface WikiPageModel
Returns:
the XML representation of this model instance

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedWikiPage

@Deprecated
public WikiPage getWrappedWikiPage()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public WikiPage getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<WikiPage>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<WikiPage>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<WikiPage>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<WikiPage>

Liferay 7.0-ce-m3