public class MBThreadWrapper extends BaseModelWrapper<MBThread> implements MBThread, ModelWrapper<MBThread>
This class is a wrapper for MBThread.
MBThread,
Serialized FormmodelTHREAD_ID_ACCESSOR| Constructor and Description |
|---|
MBThreadWrapper(MBThread mbThread) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
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.
|
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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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, 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, getModelClassNamegetModelClass, getModelClassNameclonegetWrappedModelpublic MBThreadWrapper(MBThread mbThread)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<MBThread>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<MBThread>public Folder addAttachmentsFolder() throws PortalException
addAttachmentsFolder in interface MBThreadPortalExceptionpublic long getAttachmentsFolderId()
getAttachmentsFolderId in interface MBThreadpublic MBCategory getCategory() throws PortalException
getCategory in interface MBThreadPortalExceptionpublic long getCategoryId()
getCategoryId in interface MBThreadModelpublic long getCompanyId()
getCompanyId in interface MBThreadModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic long getContainerModelId()
getContainerModelId in interface MBThreadModelgetContainerModelId in interface ContainerModelpublic java.lang.String getContainerModelName()
getContainerModelName in interface MBThreadModelgetContainerModelName in interface ContainerModelpublic java.util.Date getCreateDate()
getCreateDate in interface MBThreadModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic long getGroupId()
getGroupId in interface MBThreadModelgetGroupId in interface GroupedModelpublic long getLastPostByUserId()
getLastPostByUserId in interface MBThreadModelpublic java.lang.String getLastPostByUserUuid()
getLastPostByUserUuid in interface MBThreadModelpublic java.util.Date getLastPostDate()
getLastPostDate in interface MBThreadModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface MBThreadModelgetLastPublishDate in interface StagedGroupedModelpublic int getMessageCount()
getMessageCount in interface MBThreadModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface MBThreadModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic long getParentContainerModelId()
getParentContainerModelId in interface MBThreadModelgetParentContainerModelId in interface ContainerModelpublic long[] getParticipantUserIds()
getParticipantUserIds in interface MBThreadpublic long getPrimaryKey()
getPrimaryKey in interface MBThreadModelpublic double getPriority()
getPriority in interface MBThreadModelpublic boolean getQuestion()
getQuestion in interface MBThreadModelpublic long getRootMessageId()
getRootMessageId in interface MBThreadModelpublic long getRootMessageUserId()
getRootMessageUserId in interface MBThreadModelpublic java.lang.String getRootMessageUserUuid()
getRootMessageUserUuid in interface MBThreadModelpublic int getStatus()
getStatus in interface MBThreadModelgetStatus in interface TrashedModelgetStatus in interface WorkflowedModelpublic long getStatusByUserId()
getStatusByUserId in interface MBThreadModelgetStatusByUserId in interface WorkflowedModelpublic java.lang.String getStatusByUserName()
getStatusByUserName in interface MBThreadModelgetStatusByUserName in interface WorkflowedModelpublic java.lang.String getStatusByUserUuid()
getStatusByUserUuid in interface MBThreadModelgetStatusByUserUuid in interface WorkflowedModelpublic java.util.Date getStatusDate()
getStatusDate in interface MBThreadModelgetStatusDate in interface WorkflowedModelpublic long getThreadId()
getThreadId in interface MBThreadModelpublic java.lang.String getTitle()
getTitle in interface MBThreadModelpublic TrashEntry getTrashEntry() throws PortalException
getTrashEntry in interface MBThreadModelgetTrashEntry in interface TrashedModelPortalExceptionpublic long getTrashEntryClassPK()
getTrashEntryClassPK in interface MBThreadModelgetTrashEntryClassPK in interface TrashedModel@Deprecated public TrashHandler getTrashHandler()
getTrashHandler in interface MBThreadModelgetTrashHandler in interface TrashedModelpublic long getUserId()
getUserId in interface MBThreadModelgetUserId in interface AuditedModelpublic java.lang.String getUserName()
getUserName in interface MBThreadModelgetUserName in interface AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface MBThreadModelgetUserUuid in interface AuditedModelpublic java.lang.String getUuid()
getUuid in interface MBThreadModelgetUuid in interface StagedModelpublic long getViewCount()
getViewCount in interface MBThreadpublic boolean isApproved()
true if this message boards thread is approved.isApproved in interface MBThreadModelisApproved in interface WorkflowedModeltrue if this message boards thread is approved; false otherwisepublic boolean isDenied()
true if this message boards thread is denied.isDenied in interface MBThreadModelisDenied in interface WorkflowedModeltrue if this message boards thread is denied; false otherwisepublic boolean isDraft()
true if this message boards thread is a draft.isDraft in interface MBThreadModelisDraft in interface WorkflowedModeltrue if this message boards thread is a draft; false otherwisepublic boolean isExpired()
true if this message boards thread is expired.isExpired in interface MBThreadModelisExpired in interface WorkflowedModeltrue if this message boards thread is expired; false otherwisepublic boolean isInactive()
true if this message boards thread is inactive.isInactive in interface MBThreadModelisInactive in interface WorkflowedModeltrue if this message boards thread is inactive; false otherwisepublic boolean isIncomplete()
true if this message boards thread is incomplete.isIncomplete in interface MBThreadModelisIncomplete in interface WorkflowedModeltrue 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 MBThreadModelisInTrash in interface TrashedModeltrue 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 MBThreadModelisInTrashContainer in interface TrashedModeltrue if the parent of this message boards thread is in the Recycle Bin; false otherwisepublic boolean isInTrashExplicitly()
isInTrashExplicitly in interface MBThreadModelisInTrashExplicitly in interface TrashedModelpublic boolean isInTrashImplicitly()
isInTrashImplicitly in interface MBThreadModelisInTrashImplicitly in interface TrashedModelpublic boolean isPending()
true if this message boards thread is pending.isPending in interface MBThreadModelisPending in interface WorkflowedModeltrue if this message boards thread is pending; false otherwisepublic boolean isQuestion()
true if this message boards thread is question.isQuestion in interface MBThreadModeltrue if this message boards thread is question; false otherwisepublic boolean isScheduled()
true if this message boards thread is scheduled.isScheduled in interface MBThreadModelisScheduled in interface WorkflowedModeltrue if this message boards thread is scheduled; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCategoryId(long categoryId)
setCategoryId in interface MBThreadModelcategoryId - the category ID of this message boards threadpublic void setCompanyId(long companyId)
setCompanyId in interface MBThreadModelsetCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this message boards threadpublic void setContainerModelId(long containerModelId)
setContainerModelId in interface MBThreadModelsetContainerModelId in interface ContainerModelcontainerModelId - the container model ID of this message boards threadpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface MBThreadModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this message boards threadpublic void setGroupId(long groupId)
setGroupId in interface MBThreadModelsetGroupId in interface GroupedModelgroupId - the group ID of this message boards threadpublic void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId in interface MBThreadModellastPostByUserId - the last post by user ID of this message boards threadpublic void setLastPostByUserUuid(java.lang.String lastPostByUserUuid)
setLastPostByUserUuid in interface MBThreadModellastPostByUserUuid - the last post by user uuid of this message boards threadpublic void setLastPostDate(java.util.Date lastPostDate)
setLastPostDate in interface MBThreadModellastPostDate - the last post date of this message boards threadpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface MBThreadModelsetLastPublishDate in interface StagedGroupedModellastPublishDate - the last publish date of this message boards threadpublic void setMessageCount(int messageCount)
setMessageCount in interface MBThreadModelmessageCount - the message count of this message boards threadpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface MBThreadModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this message boards threadpublic void setParentContainerModelId(long parentContainerModelId)
setParentContainerModelId in interface MBThreadModelsetParentContainerModelId in interface ContainerModelparentContainerModelId - the parent container model ID of this message boards threadpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface MBThreadModelprimaryKey - the primary key of this message boards threadpublic void setPriority(double priority)
setPriority in interface MBThreadModelpriority - the priority of this message boards threadpublic void setQuestion(boolean question)
setQuestion in interface MBThreadModelquestion - the question of this message boards threadpublic void setRootMessageId(long rootMessageId)
setRootMessageId in interface MBThreadModelrootMessageId - the root message ID of this message boards threadpublic void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId in interface MBThreadModelrootMessageUserId - the root message user ID of this message boards threadpublic void setRootMessageUserUuid(java.lang.String rootMessageUserUuid)
setRootMessageUserUuid in interface MBThreadModelrootMessageUserUuid - the root message user uuid of this message boards threadpublic void setStatus(int status)
setStatus in interface MBThreadModelsetStatus in interface WorkflowedModelstatus - the status of this message boards threadpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface MBThreadModelsetStatusByUserId in interface WorkflowedModelstatusByUserId - the status by user ID of this message boards threadpublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName in interface MBThreadModelsetStatusByUserName in interface WorkflowedModelstatusByUserName - the status by user name of this message boards threadpublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid in interface MBThreadModelsetStatusByUserUuid in interface WorkflowedModelstatusByUserUuid - the status by user uuid of this message boards threadpublic void setStatusDate(java.util.Date statusDate)
setStatusDate in interface MBThreadModelsetStatusDate in interface WorkflowedModelstatusDate - the status date of this message boards threadpublic void setThreadId(long threadId)
setThreadId in interface MBThreadModelthreadId - the thread ID of this message boards threadpublic void setTitle(java.lang.String title)
setTitle in interface MBThreadModeltitle - the title of this message boards threadpublic void setUserId(long userId)
setUserId in interface MBThreadModelsetUserId in interface AuditedModeluserId - the user ID of this message boards threadpublic void setUserName(java.lang.String userName)
setUserName in interface MBThreadModelsetUserName in interface AuditedModeluserName - the user name of this message boards threadpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface MBThreadModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this message boards threadpublic void setUuid(java.lang.String uuid)
setUuid in interface MBThreadModelsetUuid in interface StagedModeluuid - the uuid of this message boards threadpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected MBThreadWrapper wrap(MBThread mbThread)
wrap in class BaseModelWrapper<MBThread>