|
Liferay 6.2-ce-ga2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.messageboards.model.MBThreadWrapper
@ProviderType public class MBThreadWrapper
This class is a wrapper for MBThread.
MBThread,
Serialized Form| Constructor Summary | |
|---|---|
MBThreadWrapper(MBThread mbThread)
|
|
| Method Summary | |
|---|---|
Folder |
addAttachmentsFolder()
|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBThread mbThread)
|
boolean |
equals(Object obj)
|
boolean |
getApproved()
Deprecated. As of 6.1.0, replaced by isApproved() |
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. |
String |
getContainerModelName()
Returns the container name of this message boards thread. |
Date |
getCreateDate()
Returns the create date of this message boards thread. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
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. |
String |
getLastPostByUserUuid()
Returns the last post by user uuid of this message boards thread. |
Date |
getLastPostDate()
Returns the last post date of this message boards thread. |
Lock |
getLock()
|
int |
getMessageCount()
Returns the message count of this message boards thread. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
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. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
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. |
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. |
String |
getStatusByUserName()
Returns the status by user name of this message boards thread. |
String |
getStatusByUserUuid()
Returns the status by user uuid of this message boards thread. |
Date |
getStatusDate()
Returns the status date of this message boards thread. |
long |
getThreadId()
Returns the thread ID 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()
Returns the trash handler for this message boards thread. |
long |
getUserId()
Returns the user ID of this message boards thread. |
String |
getUserName()
Returns the user name of this message boards thread. |
String |
getUserUuid()
Returns the user uuid of this message boards thread. |
String |
getUuid()
Returns the uuid of this message boards thread. |
int |
getViewCount()
Returns the view count of this message boards thread. |
MBThread |
getWrappedMBThread()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
MBThread |
getWrappedModel()
|
int |
hashCode()
|
boolean |
hasLock(long userId)
|
boolean |
isApproved()
Returns true if this message boards thread is approved. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isDenied()
Returns true if this message boards thread is denied. |
boolean |
isDraft()
Returns true if this message boards thread is a draft. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
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 |
isLocked()
|
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
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 |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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(Date createDate)
Sets the create date of this message boards thread. |
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 |
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(String lastPostByUserUuid)
Sets the last post by user uuid of this message boards thread. |
void |
setLastPostDate(Date lastPostDate)
Sets the last post date of this message boards thread. |
void |
setMessageCount(int messageCount)
Sets the message count of this message boards thread. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message boards thread. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
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 |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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(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(String statusByUserName)
Sets the status by user name of this message boards thread. |
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message boards thread. |
void |
setStatusDate(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 |
setUserId(long userId)
Sets the user ID of this message boards thread. |
void |
setUserName(String userName)
Sets the user name of this message boards thread. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this message boards thread. |
void |
setUuid(String uuid)
Sets the uuid of this message boards thread. |
void |
setViewCount(int viewCount)
Sets the view count of this message boards thread. |
CacheModel<MBThread> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
MBThread |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
MBThread |
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 |
|---|
public MBThreadWrapper(MBThread mbThread)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelgetModelClass in interface ContainerModelpublic String getModelClassName()
getModelClassName in interface ClassedModelgetModelClassName in interface ContainerModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<MBThread>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<MBThread>public long getPrimaryKey()
getPrimaryKey in interface MBThreadModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface MBThreadModelprimaryKey - the primary key of this message boards threadpublic String getUuid()
getUuid in interface StagedModelgetUuid in interface MBThreadModelpublic void setUuid(String uuid)
setUuid in interface StagedModelsetUuid in interface MBThreadModeluuid - the uuid of this message boards threadpublic long getThreadId()
getThreadId in interface MBThreadModelpublic void setThreadId(long threadId)
setThreadId in interface MBThreadModelthreadId - the thread ID of this message boards threadpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface MBThreadModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface MBThreadModelgroupId - the group ID of this message boards threadpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface MBThreadModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface MBThreadModelcompanyId - the company ID of this message boards threadpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface MBThreadModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface MBThreadModeluserId - the user ID of this message boards thread
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface MBThreadModeluserUuid - the user uuid of this message boards threadpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface MBThreadModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface MBThreadModeluserName - the user name of this message boards threadpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface MBThreadModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface MBThreadModelcreateDate - the create date of this message boards threadpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface MBThreadModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface MBThreadModelmodifiedDate - the modified date of this message boards threadpublic long getCategoryId()
getCategoryId in interface MBThreadModelpublic void setCategoryId(long categoryId)
setCategoryId in interface MBThreadModelcategoryId - the category ID of this message boards threadpublic long getRootMessageId()
getRootMessageId in interface MBThreadModelpublic void setRootMessageId(long rootMessageId)
setRootMessageId in interface MBThreadModelrootMessageId - the root message ID of this message boards threadpublic long getRootMessageUserId()
getRootMessageUserId in interface MBThreadModelpublic void setRootMessageUserId(long rootMessageUserId)
setRootMessageUserId in interface MBThreadModelrootMessageUserId - the root message user ID of this message boards thread
public String getRootMessageUserUuid()
throws SystemException
getRootMessageUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setRootMessageUserUuid(String rootMessageUserUuid)
setRootMessageUserUuid in interface MBThreadModelrootMessageUserUuid - the root message user uuid of this message boards threadpublic int getMessageCount()
getMessageCount in interface MBThreadModelpublic void setMessageCount(int messageCount)
setMessageCount in interface MBThreadModelmessageCount - the message count of this message boards threadpublic int getViewCount()
getViewCount in interface MBThreadModelpublic void setViewCount(int viewCount)
setViewCount in interface MBThreadModelviewCount - the view count of this message boards threadpublic long getLastPostByUserId()
getLastPostByUserId in interface MBThreadModelpublic void setLastPostByUserId(long lastPostByUserId)
setLastPostByUserId in interface MBThreadModellastPostByUserId - the last post by user ID of this message boards thread
public String getLastPostByUserUuid()
throws SystemException
getLastPostByUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setLastPostByUserUuid(String lastPostByUserUuid)
setLastPostByUserUuid in interface MBThreadModellastPostByUserUuid - the last post by user uuid of this message boards threadpublic Date getLastPostDate()
getLastPostDate in interface MBThreadModelpublic void setLastPostDate(Date lastPostDate)
setLastPostDate in interface MBThreadModellastPostDate - the last post date of this message boards threadpublic double getPriority()
getPriority in interface MBThreadModelpublic void setPriority(double priority)
setPriority in interface MBThreadModelpriority - the priority of this message boards threadpublic boolean getQuestion()
getQuestion in interface MBThreadModelpublic boolean isQuestion()
true if this message boards thread is question.
isQuestion in interface MBThreadModeltrue if this message boards thread is question; false otherwisepublic void setQuestion(boolean question)
setQuestion in interface MBThreadModelquestion - the question of this message boards threadpublic int getStatus()
getStatus in interface TrashedModelgetStatus in interface WorkflowedModelgetStatus in interface MBThreadModelpublic void setStatus(int status)
setStatus in interface WorkflowedModelsetStatus in interface MBThreadModelstatus - the status of this message boards threadpublic long getStatusByUserId()
getStatusByUserId in interface WorkflowedModelgetStatusByUserId in interface MBThreadModelpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface WorkflowedModelsetStatusByUserId in interface MBThreadModelstatusByUserId - the status by user ID of this message boards thread
public String getStatusByUserUuid()
throws SystemException
getStatusByUserUuid in interface WorkflowedModelgetStatusByUserUuid in interface MBThreadModelSystemException - if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid in interface WorkflowedModelsetStatusByUserUuid in interface MBThreadModelstatusByUserUuid - the status by user uuid of this message boards threadpublic String getStatusByUserName()
getStatusByUserName in interface WorkflowedModelgetStatusByUserName in interface MBThreadModelpublic void setStatusByUserName(String statusByUserName)
setStatusByUserName in interface WorkflowedModelsetStatusByUserName in interface MBThreadModelstatusByUserName - the status by user name of this message boards threadpublic Date getStatusDate()
getStatusDate in interface WorkflowedModelgetStatusDate in interface MBThreadModelpublic void setStatusDate(Date statusDate)
setStatusDate in interface WorkflowedModelsetStatusDate in interface MBThreadModelstatusDate - the status date of this message boards thread
public TrashEntry getTrashEntry()
throws PortalException,
SystemException
getTrashEntry in interface TrashedModelgetTrashEntry in interface MBThreadModelSystemException - if a system exception occurred
PortalExceptionpublic long getTrashEntryClassPK()
getTrashEntryClassPK in interface TrashedModelgetTrashEntryClassPK in interface MBThreadModelpublic TrashHandler getTrashHandler()
getTrashHandler in interface TrashedModelgetTrashHandler in interface MBThreadModelpublic boolean isInTrash()
true if this message boards thread is in the Recycle Bin.
isInTrash in interface TrashedModelisInTrash in interface MBThreadModeltrue 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 TrashedModelisInTrashContainer in interface MBThreadModeltrue if the parent of this message boards thread is in the Recycle Bin; false otherwise
SystemException - if a system exception occurredpublic boolean getApproved()
isApproved()
getApproved in interface WorkflowedModelgetApproved in interface MBThreadModelpublic boolean isApproved()
true if this message boards thread is approved.
isApproved in interface WorkflowedModelisApproved in interface MBThreadModeltrue if this message boards thread is approved; false otherwisepublic boolean isDenied()
true if this message boards thread is denied.
isDenied in interface WorkflowedModelisDenied in interface MBThreadModeltrue if this message boards thread is denied; false otherwisepublic boolean isDraft()
true if this message boards thread is a draft.
isDraft in interface WorkflowedModelisDraft in interface MBThreadModeltrue if this message boards thread is a draft; false otherwisepublic boolean isExpired()
true if this message boards thread is expired.
isExpired in interface WorkflowedModelisExpired in interface MBThreadModeltrue if this message boards thread is expired; false otherwisepublic boolean isInactive()
true if this message boards thread is inactive.
isInactive in interface WorkflowedModelisInactive in interface MBThreadModeltrue if this message boards thread is inactive; false otherwisepublic boolean isIncomplete()
true if this message boards thread is incomplete.
isIncomplete in interface WorkflowedModelisIncomplete in interface MBThreadModeltrue if this message boards thread is incomplete; false otherwisepublic boolean isPending()
true if this message boards thread is pending.
isPending in interface WorkflowedModelisPending in interface MBThreadModeltrue if this message boards thread is pending; false otherwisepublic boolean isScheduled()
true if this message boards thread is scheduled.
isScheduled in interface WorkflowedModelisScheduled in interface MBThreadModeltrue if this message boards thread is scheduled; false otherwisepublic long getContainerModelId()
getContainerModelId in interface ContainerModelgetContainerModelId in interface MBThreadModelpublic void setContainerModelId(long containerModelId)
setContainerModelId in interface ContainerModelsetContainerModelId in interface MBThreadModelcontainerModelId - the container model ID of this message boards threadpublic String getContainerModelName()
getContainerModelName in interface ContainerModelgetContainerModelName in interface MBThreadModelpublic long getParentContainerModelId()
getParentContainerModelId in interface ContainerModelgetParentContainerModelId in interface MBThreadModelpublic void setParentContainerModelId(long parentContainerModelId)
setParentContainerModelId in interface ContainerModelsetParentContainerModelId in interface MBThreadModelparentContainerModelId - the parent container model ID of this message boards threadpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<MBThread>isNew in interface MBThreadModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<MBThread>setNew in interface MBThreadModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<MBThread>isCachedModel in interface MBThreadModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<MBThread>setCachedModel in interface MBThreadModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<MBThread>isEscapedModel in interface MBThreadModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<MBThread>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface MBThreadModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<MBThread>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface MBThreadModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<MBThread>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface MBThreadModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<MBThread>setExpandoBridgeAttributes in interface MBThreadModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<MBThread>setExpandoBridgeAttributes in interface MBThreadModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<MBThread>setExpandoBridgeAttributes in interface MBThreadModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<MBThread>clone in interface StagedModelclone in interface MBThreadModelclone in class Objectpublic int compareTo(MBThread mbThread)
compareTo in interface MBThreadModelcompareTo in interface Comparable<MBThread>public int hashCode()
hashCode in interface MBThreadModelhashCode in class Objectpublic CacheModel<MBThread> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<MBThread>toCacheModel in interface MBThreadModelpublic MBThread toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<MBThread>toEscapedModel in interface MBThreadModelAutoEscapeBeanHandlerpublic MBThread toUnescapedModel()
toUnescapedModel in interface BaseModel<MBThread>toUnescapedModel in interface MBThreadModelpublic String toString()
toString in interface MBThreadModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<MBThread>toXmlString in interface MBThreadModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public Folder addAttachmentsFolder()
throws PortalException,
SystemException
addAttachmentsFolder in interface MBThreadPortalException
SystemException
public long getAttachmentsFolderId()
throws SystemException
getAttachmentsFolderId in interface MBThreadSystemException
public MBCategory getCategory()
throws PortalException,
SystemException
getCategory in interface MBThreadPortalException
SystemExceptionpublic Lock getLock()
getLock in interface MBThread
public long[] getParticipantUserIds()
throws SystemException
getParticipantUserIds in interface MBThreadSystemExceptionpublic boolean hasLock(long userId)
hasLock in interface MBThreadpublic boolean isLocked()
isLocked in interface MBThreadpublic boolean equals(Object obj)
equals in class Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic MBThread getWrappedMBThread()
getWrappedModel()
public MBThread getWrappedModel()
getWrappedModel in interface ModelWrapper<MBThread>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<MBThread>
|
Liferay 6.2-ce-ga2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||