public class MBThreadWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<MBThread> implements MBThread, com.liferay.portal.kernel.model.ModelWrapper<MBThread>
This class is a wrapper for MBThread
.
MBThread
,
Serialized FormTHREAD_ID_ACCESSOR
Constructor and Description |
---|
MBThreadWrapper(MBThread mbThread) |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.repository.model.Folder |
addAttachmentsFolder() |
long |
getAttachmentsFolderId() |
MBCategory |
getCategory() |
long |
getCategoryId()
Returns the category ID of this message boards thread.
|
long |
getCompanyId()
Returns the company ID of this message boards thread.
|
long |
getContainerModelId()
Returns the container model ID of this message boards thread.
|
java.lang.String |
getContainerModelName()
Returns the container name of this message boards thread.
|
java.util.Date |
getCreateDate()
Returns the create date of this message boards thread.
|
long |
getGroupId()
Returns the group ID of this message boards thread.
|
long |
getLastPostByUserId()
Returns the last post by user ID of this message boards thread.
|
java.lang.String |
getLastPostByUserUuid()
Returns the last post by user uuid of this message boards thread.
|
java.util.Date |
getLastPostDate()
Returns the last post date of this message boards thread.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this message boards thread.
|
com.liferay.portal.kernel.lock.Lock |
getLock() |
int |
getMessageCount()
Returns the message count of this message boards thread.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this message boards thread.
|
long |
getParentContainerModelId()
Returns the parent container model ID of this message boards thread.
|
long[] |
getParticipantUserIds() |
long |
getPrimaryKey()
Returns the primary key of this message boards thread.
|
double |
getPriority()
Returns the priority of this message boards thread.
|
boolean |
getQuestion()
Returns the question of this message boards thread.
|
long |
getRootMessageId()
Returns the root message ID of this message boards thread.
|
long |
getRootMessageUserId()
Returns the root message user ID of this message boards thread.
|
java.lang.String |
getRootMessageUserUuid()
Returns the root message user uuid of this message boards thread.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this message boards thread.
|
long |
getStatusByUserId()
Returns the status by user ID of this message boards thread.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this message boards thread.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this message boards thread.
|
java.util.Date |
getStatusDate()
Returns the status date of this message boards thread.
|
long |
getThreadId()
Returns the thread ID of this message boards thread.
|
java.lang.String |
getTitle()
Returns the title of this message boards thread.
|
com.liferay.trash.kernel.model.TrashEntry |
getTrashEntry()
Returns the trash entry created when this message boards thread was moved to the Recycle Bin.
|
long |
getTrashEntryClassPK()
Returns the class primary key of the trash entry for this message boards thread.
|
com.liferay.portal.kernel.trash.TrashHandler |
getTrashHandler()
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
long |
getUserId()
Returns the user ID of this message boards thread.
|
java.lang.String |
getUserName()
Returns the user name of this message boards thread.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this message boards thread.
|
java.lang.String |
getUuid()
Returns the uuid of this message boards thread.
|
long |
getViewCount() |
boolean |
hasLock(long userId) |
boolean |
isApproved()
Returns
true if this message boards thread is approved. |
boolean |
isDenied()
Returns
true if this message boards thread is denied. |
boolean |
isDraft()
Returns
true if this message boards thread is a draft. |
boolean |
isExpired()
Returns
true if this message boards thread is expired. |
boolean |
isInactive()
Returns
true if this message boards thread is inactive. |
boolean |
isIncomplete()
Returns
true if this message boards thread is incomplete. |
boolean |
isInTrash()
Returns
true if this message boards thread is in the Recycle Bin. |
boolean |
isInTrashContainer()
Returns
true if the parent of this message boards thread is in the Recycle Bin. |
boolean |
isInTrashExplicitly() |
boolean |
isInTrashImplicitly() |
boolean |
isLocked() |
boolean |
isPending()
Returns
true if this message boards thread is pending. |
boolean |
isQuestion()
Returns
true if this message boards thread is question. |
boolean |
isScheduled()
Returns
true if this message boards thread is scheduled. |
void |
persist() |
void |
setCategoryId(long categoryId)
Sets the category ID of this message boards thread.
|
void |
setCompanyId(long companyId)
Sets the company ID of this message boards thread.
|
void |
setContainerModelId(long containerModelId)
Sets the container model ID of this message boards thread.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this message boards thread.
|
void |
setGroupId(long groupId)
Sets the group ID of this message boards thread.
|
void |
setLastPostByUserId(long lastPostByUserId)
Sets the last post by user ID of this message boards thread.
|
void |
setLastPostByUserUuid(java.lang.String lastPostByUserUuid)
Sets the last post by user uuid of this message boards thread.
|
void |
setLastPostDate(java.util.Date lastPostDate)
Sets the last post date of this message boards thread.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this message boards thread.
|
void |
setMessageCount(int messageCount)
Sets the message count of this message boards thread.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this message boards thread.
|
void |
setParentContainerModelId(long parentContainerModelId)
Sets the parent container model ID of this message boards thread.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message boards thread.
|
void |
setPriority(double priority)
Sets the priority of this message boards thread.
|
void |
setQuestion(boolean question)
Sets whether this message boards thread is question.
|
void |
setRootMessageId(long rootMessageId)
Sets the root message ID of this message boards thread.
|
void |
setRootMessageUserId(long rootMessageUserId)
Sets the root message user ID of this message boards thread.
|
void |
setRootMessageUserUuid(java.lang.String rootMessageUserUuid)
Sets the root message user uuid of this message boards thread.
|
void |
setStatus(int status)
Sets the status of this message boards thread.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this message boards thread.
|
void |
setStatusByUserName(java.lang.String statusByUserName)
Sets the status by user name of this message boards thread.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this message boards thread.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this message boards thread.
|
void |
setThreadId(long threadId)
Sets the thread ID of this message boards thread.
|
void |
setTitle(java.lang.String title)
Sets the title of this message boards thread.
|
void |
setUserId(long userId)
Sets the user ID of this message boards thread.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this message boards thread.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this message boards thread.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this message boards thread.
|
protected MBThreadWrapper |
wrap(MBThread mbThread) |
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
getModelClass, getModelClassName
public MBThreadWrapper(MBThread mbThread)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<MBThread>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<MBThread>
public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder() throws com.liferay.portal.kernel.exception.PortalException
addAttachmentsFolder
in interface MBThread
com.liferay.portal.kernel.exception.PortalException
public long getAttachmentsFolderId()
getAttachmentsFolderId
in interface MBThread
public MBCategory getCategory() throws com.liferay.portal.kernel.exception.PortalException
getCategory
in interface MBThread
com.liferay.portal.kernel.exception.PortalException
public long getCategoryId()
getCategoryId
in interface MBThreadModel
public long getCompanyId()
getCompanyId
in interface MBThreadModel
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 long getContainerModelId()
getContainerModelId
in interface MBThreadModel
getContainerModelId
in interface com.liferay.portal.kernel.model.ContainerModel
public java.lang.String getContainerModelName()
getContainerModelName
in interface MBThreadModel
getContainerModelName
in interface com.liferay.portal.kernel.model.ContainerModel
public java.util.Date getCreateDate()
getCreateDate
in interface MBThreadModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getGroupId()
getGroupId
in interface MBThreadModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public long getLastPostByUserId()
getLastPostByUserId
in interface MBThreadModel
public java.lang.String getLastPostByUserUuid()
getLastPostByUserUuid
in interface MBThreadModel
public java.util.Date getLastPostDate()
getLastPostDate
in interface MBThreadModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface MBThreadModel
getLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
public com.liferay.portal.kernel.lock.Lock getLock()
public int getMessageCount()
getMessageCount
in interface MBThreadModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface MBThreadModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getParentContainerModelId()
getParentContainerModelId
in interface MBThreadModel
getParentContainerModelId
in interface com.liferay.portal.kernel.model.ContainerModel
public long[] getParticipantUserIds()
getParticipantUserIds
in interface MBThread
public long getPrimaryKey()
getPrimaryKey
in interface MBThreadModel
public double getPriority()
getPriority
in interface MBThreadModel
public boolean getQuestion()
getQuestion
in interface MBThreadModel
public long getRootMessageId()
getRootMessageId
in interface MBThreadModel
public long getRootMessageUserId()
getRootMessageUserId
in interface MBThreadModel
public java.lang.String getRootMessageUserUuid()
getRootMessageUserUuid
in interface MBThreadModel
public int getStatus()
getStatus
in interface MBThreadModel
getStatus
in interface com.liferay.portal.kernel.model.TrashedModel
getStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
public long getStatusByUserId()
getStatusByUserId
in interface MBThreadModel
getStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserName()
getStatusByUserName
in interface MBThreadModel
getStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserUuid()
getStatusByUserUuid
in interface MBThreadModel
getStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.util.Date getStatusDate()
getStatusDate
in interface MBThreadModel
getStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
public long getThreadId()
getThreadId
in interface MBThreadModel
public java.lang.String getTitle()
getTitle
in interface MBThreadModel
public com.liferay.trash.kernel.model.TrashEntry getTrashEntry() throws com.liferay.portal.kernel.exception.PortalException
getTrashEntry
in interface MBThreadModel
getTrashEntry
in interface com.liferay.portal.kernel.model.TrashedModel
com.liferay.portal.kernel.exception.PortalException
public long getTrashEntryClassPK()
getTrashEntryClassPK
in interface MBThreadModel
getTrashEntryClassPK
in interface com.liferay.portal.kernel.model.TrashedModel
@Deprecated public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler()
getTrashHandler
in interface MBThreadModel
getTrashHandler
in interface com.liferay.portal.kernel.model.TrashedModel
public long getUserId()
getUserId
in interface MBThreadModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface MBThreadModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface MBThreadModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface MBThreadModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public long getViewCount()
getViewCount
in interface MBThread
public boolean isApproved()
true
if this message boards thread is approved.isApproved
in interface MBThreadModel
isApproved
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is approved; false
otherwisepublic boolean isDenied()
true
if this message boards thread is denied.isDenied
in interface MBThreadModel
isDenied
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is denied; false
otherwisepublic boolean isDraft()
true
if this message boards thread is a draft.isDraft
in interface MBThreadModel
isDraft
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is a draft; false
otherwisepublic boolean isExpired()
true
if this message boards thread is expired.isExpired
in interface MBThreadModel
isExpired
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is expired; false
otherwisepublic boolean isInactive()
true
if this message boards thread is inactive.isInactive
in interface MBThreadModel
isInactive
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is inactive; false
otherwisepublic boolean isIncomplete()
true
if this message boards thread is incomplete.isIncomplete
in interface MBThreadModel
isIncomplete
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is incomplete; false
otherwisepublic boolean isInTrash()
true
if this message boards thread is in the Recycle Bin.isInTrash
in interface MBThreadModel
isInTrash
in interface com.liferay.portal.kernel.model.TrashedModel
true
if this message boards thread is in the Recycle Bin; false
otherwisepublic boolean isInTrashContainer()
true
if the parent of this message boards thread is in the Recycle Bin.isInTrashContainer
in interface MBThreadModel
isInTrashContainer
in interface com.liferay.portal.kernel.model.TrashedModel
true
if the parent of this message boards thread is in the Recycle Bin; false
otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly
in interface MBThreadModel
isInTrashExplicitly
in interface com.liferay.portal.kernel.model.TrashedModel
public boolean isInTrashImplicitly()
isInTrashImplicitly
in interface MBThreadModel
isInTrashImplicitly
in interface com.liferay.portal.kernel.model.TrashedModel
public boolean isPending()
true
if this message boards thread is pending.isPending
in interface MBThreadModel
isPending
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is pending; false
otherwisepublic boolean isQuestion()
true
if this message boards thread is question.isQuestion
in interface MBThreadModel
true
if this message boards thread is question; false
otherwisepublic boolean isScheduled()
true
if this message boards thread is scheduled.isScheduled
in interface MBThreadModel
isScheduled
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this message boards thread is scheduled; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setCategoryId(long categoryId)
setCategoryId
in interface MBThreadModel
categoryId
- the category ID of this message boards threadpublic void setCompanyId(long companyId)
setCompanyId
in interface MBThreadModel
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 message boards threadpublic void setContainerModelId(long containerModelId)
setContainerModelId
in interface MBThreadModel
setContainerModelId
in interface com.liferay.portal.kernel.model.ContainerModel
containerModelId
- the container model ID of this message boards threadpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface MBThreadModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this message boards threadpublic void setGroupId(long groupId)
setGroupId
in interface MBThreadModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this message boards threadpublic void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId
in interface MBThreadModel
lastPostByUserId
- the last post by user ID of this message boards threadpublic void setLastPostByUserUuid(java.lang.String lastPostByUserUuid)
setLastPostByUserUuid
in interface MBThreadModel
lastPostByUserUuid
- the last post by user uuid of this message boards threadpublic void setLastPostDate(java.util.Date lastPostDate)
setLastPostDate
in interface MBThreadModel
lastPostDate
- the last post date of this message boards threadpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface MBThreadModel
setLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
lastPublishDate
- the last publish date of this message boards threadpublic void setMessageCount(int messageCount)
setMessageCount
in interface MBThreadModel
messageCount
- the message count of this message boards threadpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface MBThreadModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this message boards threadpublic void setParentContainerModelId(long parentContainerModelId)
setParentContainerModelId
in interface MBThreadModel
setParentContainerModelId
in interface com.liferay.portal.kernel.model.ContainerModel
parentContainerModelId
- the parent container model ID of this message boards threadpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface MBThreadModel
primaryKey
- the primary key of this message boards threadpublic void setPriority(double priority)
setPriority
in interface MBThreadModel
priority
- the priority of this message boards threadpublic void setQuestion(boolean question)
setQuestion
in interface MBThreadModel
question
- the question of this message boards threadpublic void setRootMessageId(long rootMessageId)
setRootMessageId
in interface MBThreadModel
rootMessageId
- the root message ID of this message boards threadpublic void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId
in interface MBThreadModel
rootMessageUserId
- the root message user ID of this message boards threadpublic void setRootMessageUserUuid(java.lang.String rootMessageUserUuid)
setRootMessageUserUuid
in interface MBThreadModel
rootMessageUserUuid
- the root message user uuid of this message boards threadpublic void setStatus(int status)
setStatus
in interface MBThreadModel
setStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
status
- the status of this message boards threadpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface MBThreadModel
setStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserId
- the status by user ID of this message boards threadpublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName
in interface MBThreadModel
setStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserName
- the status by user name of this message boards threadpublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid
in interface MBThreadModel
setStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserUuid
- the status by user uuid of this message boards threadpublic void setStatusDate(java.util.Date statusDate)
setStatusDate
in interface MBThreadModel
setStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusDate
- the status date of this message boards threadpublic void setThreadId(long threadId)
setThreadId
in interface MBThreadModel
threadId
- the thread ID of this message boards threadpublic void setTitle(java.lang.String title)
setTitle
in interface MBThreadModel
title
- the title of this message boards threadpublic void setUserId(long userId)
setUserId
in interface MBThreadModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this message boards threadpublic void setUserName(java.lang.String userName)
setUserName
in interface MBThreadModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this message boards threadpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface MBThreadModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this message boards threadpublic void setUuid(java.lang.String uuid)
setUuid
in interface MBThreadModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this message boards threadpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected MBThreadWrapper wrap(MBThread mbThread)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<MBThread>