|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.messageboards.model.MBMessageWrapper
public class MBMessageWrapper
This class is a wrapper for MBMessage.
MBMessage,
Serialized Form| Constructor Summary | |
|---|---|
MBMessageWrapper(MBMessage mbMessage)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(MBMessage mbMessage)
|
boolean |
getAllowPingbacks()
Returns the allow pingbacks of this message-boards message. |
boolean |
getAnonymous()
Returns the anonymous of this message-boards message. |
boolean |
getAnswer()
Returns the answer of this message-boards message. |
boolean |
getApproved()
Deprecated. Renamed to isApproved() |
String[] |
getAssetTagNames()
|
boolean |
getAttachments()
Returns the attachments of this message-boards message. |
String |
getAttachmentsDir()
|
String[] |
getAttachmentsFiles()
|
String |
getBody()
Returns the body of this message-boards message. |
String |
getBody(boolean translate)
|
MBCategory |
getCategory()
|
long |
getCategoryId()
Returns the category ID of this message-boards message. |
String |
getClassName()
Returns the fully qualified class name of this message-boards message. |
long |
getClassNameId()
Returns the class name ID of this message-boards message. |
long |
getClassPK()
Returns the class p k of this message-boards message. |
long |
getCompanyId()
Returns the company ID of this message-boards message. |
Date |
getCreateDate()
Returns the create date of this message-boards message. |
String |
getDeletedAttachmentsDir()
|
String[] |
getDeletedAttachmentsFiles()
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getFormat()
Returns the format of this message-boards message. |
long |
getGroupId()
Returns the group ID of this message-boards message. |
long |
getMessageId()
Returns the message ID of this message-boards message. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this message-boards message. |
long |
getParentMessageId()
Returns the parent message ID of this message-boards message. |
long |
getPrimaryKey()
Returns the primary key of this message-boards message. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
double |
getPriority()
Returns the priority of this message-boards message. |
long |
getRootMessageId()
Returns the root message ID of this message-boards message. |
int |
getStatus()
Returns the status of this message-boards message. |
long |
getStatusByUserId()
Returns the status by user ID of this message-boards message. |
String |
getStatusByUserName()
Returns the status by user name of this message-boards message. |
String |
getStatusByUserUuid()
Returns the status by user uuid of this message-boards message. |
Date |
getStatusDate()
Returns the status date of this message-boards message. |
String |
getSubject()
Returns the subject of this message-boards message. |
MBThread |
getThread()
|
String |
getThreadAttachmentsDir()
|
long |
getThreadId()
Returns the thread ID of this message-boards message. |
long |
getUserId()
Returns the user ID of this message-boards message. |
String |
getUserName()
Returns the user name of this message-boards message. |
String |
getUserUuid()
Returns the user uuid of this message-boards message. |
String |
getUuid()
Returns the uuid of this message-boards message. |
String |
getWorkflowClassName()
|
MBMessage |
getWrappedMBMessage()
Deprecated. Renamed to getWrappedModel() |
MBMessage |
getWrappedModel()
|
int |
hashCode()
|
boolean |
isAllowPingbacks()
Returns true if this message-boards message is allow pingbacks. |
boolean |
isAnonymous()
Returns true if this message-boards message is anonymous. |
boolean |
isAnswer()
Returns true if this message-boards message is answer. |
boolean |
isApproved()
Returns true if this message-boards message is approved. |
boolean |
isAttachments()
Returns true if this message-boards message is attachments. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isDenied()
Returns true if this message-boards message is denied. |
boolean |
isDiscussion()
|
boolean |
isDraft()
Returns true if this message-boards message is a draft. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isExpired()
Returns true if this message-boards message is expired. |
boolean |
isFormatBBCode()
|
boolean |
isInactive()
Returns true if this message-boards message is inactive. |
boolean |
isIncomplete()
Returns true if this message-boards message is incomplete. |
boolean |
isInTrash()
Returns true if this message-boards message is in the Recycle Bin. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isPending()
Returns true if this message-boards message is pending. |
boolean |
isReply()
|
boolean |
isRoot()
|
boolean |
isScheduled()
Returns true if this message-boards message 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 |
setAllowPingbacks(boolean allowPingbacks)
Sets whether this message-boards message is allow pingbacks. |
void |
setAnonymous(boolean anonymous)
Sets whether this message-boards message is anonymous. |
void |
setAnswer(boolean answer)
Sets whether this message-boards message is answer. |
void |
setAttachments(boolean attachments)
Sets whether this message-boards message is attachments. |
void |
setAttachmentsDir(String attachmentsDir)
|
void |
setBody(String body)
Sets the body of this message-boards message. |
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 message. |
void |
setClassName(String className)
|
void |
setClassNameId(long classNameId)
Sets the class name ID of this message-boards message. |
void |
setClassPK(long classPK)
Sets the class p k of this message-boards message. |
void |
setCompanyId(long companyId)
Sets the company ID of this message-boards message. |
void |
setCreateDate(Date createDate)
Sets the create date of this message-boards message. |
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 message-boards message. |
void |
setGroupId(long groupId)
Sets the group ID of this message-boards message. |
void |
setMessageId(long messageId)
Sets the message ID of this message-boards message. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message-boards message. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setParentMessageId(long parentMessageId)
Sets the parent message ID of this message-boards message. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message-boards message. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setPriority(double priority)
Sets the priority of this message-boards message. |
void |
setRootMessageId(long rootMessageId)
Sets the root message ID of this message-boards message. |
void |
setStatus(int status)
Sets the status of this message-boards message. |
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this message-boards message. |
void |
setStatusByUserName(String statusByUserName)
Sets the status by user name of this message-boards message. |
void |
setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this message-boards message. |
void |
setStatusDate(Date statusDate)
Sets the status date of this message-boards message. |
void |
setSubject(String subject)
Sets the subject of this message-boards message. |
void |
setThreadId(long threadId)
Sets the thread ID of this message-boards message. |
void |
setUserId(long userId)
Sets the user ID of this message-boards message. |
void |
setUserName(String userName)
Sets the user name of this message-boards message. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this message-boards message. |
void |
setUuid(String uuid)
Sets the uuid of this message-boards message. |
CacheModel<MBMessage> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
MBMessage |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MBMessageWrapper(MBMessage mbMessage)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<MBMessage>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<MBMessage>public long getPrimaryKey()
getPrimaryKey in interface MBMessageModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface MBMessageModelprimaryKey - the primary key of this message-boards messagepublic String getUuid()
getUuid in interface MBMessageModelpublic void setUuid(String uuid)
setUuid in interface MBMessageModeluuid - the uuid of this message-boards messagepublic long getMessageId()
getMessageId in interface MBMessageModelpublic void setMessageId(long messageId)
setMessageId in interface MBMessageModelmessageId - the message ID of this message-boards messagepublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface MBMessageModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface MBMessageModelgroupId - the group ID of this message-boards messagepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface MBMessageModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface MBMessageModelcompanyId - the company ID of this message-boards messagepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface MBMessageModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface MBMessageModeluserId - the user ID of this message-boards message
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface MBMessageModeluserUuid - the user uuid of this message-boards messagepublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface MBMessageModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface MBMessageModeluserName - the user name of this message-boards messagepublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface MBMessageModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface MBMessageModelcreateDate - the create date of this message-boards messagepublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface MBMessageModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface MBMessageModelmodifiedDate - the modified date of this message-boards messagepublic String getClassName()
getClassName in interface AttachedModelgetClassName in interface MBMessageModelpublic void setClassName(String className)
setClassName in interface MBMessageModelpublic long getClassNameId()
getClassNameId in interface AttachedModelgetClassNameId in interface MBMessageModelpublic void setClassNameId(long classNameId)
setClassNameId in interface AttachedModelsetClassNameId in interface MBMessageModelclassNameId - the class name ID of this message-boards messagepublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface MBMessageModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface MBMessageModelclassPK - the class p k of this message-boards messagepublic long getCategoryId()
getCategoryId in interface MBMessageModelpublic void setCategoryId(long categoryId)
setCategoryId in interface MBMessageModelcategoryId - the category ID of this message-boards messagepublic long getThreadId()
getThreadId in interface MBMessageModelpublic void setThreadId(long threadId)
setThreadId in interface MBMessageModelthreadId - the thread ID of this message-boards messagepublic long getRootMessageId()
getRootMessageId in interface MBMessageModelpublic void setRootMessageId(long rootMessageId)
setRootMessageId in interface MBMessageModelrootMessageId - the root message ID of this message-boards messagepublic long getParentMessageId()
getParentMessageId in interface MBMessageModelpublic void setParentMessageId(long parentMessageId)
setParentMessageId in interface MBMessageModelparentMessageId - the parent message ID of this message-boards messagepublic String getSubject()
getSubject in interface MBMessageModelpublic void setSubject(String subject)
setSubject in interface MBMessageModelsubject - the subject of this message-boards messagepublic String getBody()
getBody in interface MBMessageModelpublic void setBody(String body)
setBody in interface MBMessageModelbody - the body of this message-boards messagepublic String getFormat()
getFormat in interface MBMessageModelpublic void setFormat(String format)
setFormat in interface MBMessageModelformat - the format of this message-boards messagepublic boolean getAttachments()
getAttachments in interface MBMessageModelpublic boolean isAttachments()
true if this message-boards message is attachments.
isAttachments in interface MBMessageModeltrue if this message-boards message is attachments; false otherwisepublic void setAttachments(boolean attachments)
setAttachments in interface MBMessageModelattachments - the attachments of this message-boards messagepublic boolean getAnonymous()
getAnonymous in interface MBMessageModelpublic boolean isAnonymous()
true if this message-boards message is anonymous.
isAnonymous in interface MBMessageModeltrue if this message-boards message is anonymous; false otherwisepublic void setAnonymous(boolean anonymous)
setAnonymous in interface MBMessageModelanonymous - the anonymous of this message-boards messagepublic double getPriority()
getPriority in interface MBMessageModelpublic void setPriority(double priority)
setPriority in interface MBMessageModelpriority - the priority of this message-boards messagepublic boolean getAllowPingbacks()
getAllowPingbacks in interface MBMessageModelpublic boolean isAllowPingbacks()
true if this message-boards message is allow pingbacks.
isAllowPingbacks in interface MBMessageModeltrue if this message-boards message is allow pingbacks; false otherwisepublic void setAllowPingbacks(boolean allowPingbacks)
setAllowPingbacks in interface MBMessageModelallowPingbacks - the allow pingbacks of this message-boards messagepublic boolean getAnswer()
getAnswer in interface MBMessageModelpublic boolean isAnswer()
true if this message-boards message is answer.
isAnswer in interface MBMessageModeltrue if this message-boards message is answer; false otherwisepublic void setAnswer(boolean answer)
setAnswer in interface MBMessageModelanswer - the answer of this message-boards messagepublic int getStatus()
getStatus in interface WorkflowedModelgetStatus in interface MBMessageModelpublic void setStatus(int status)
setStatus in interface WorkflowedModelsetStatus in interface MBMessageModelstatus - the status of this message-boards messagepublic long getStatusByUserId()
getStatusByUserId in interface WorkflowedModelgetStatusByUserId in interface MBMessageModelpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface WorkflowedModelsetStatusByUserId in interface MBMessageModelstatusByUserId - the status by user ID of this message-boards message
public String getStatusByUserUuid()
throws SystemException
getStatusByUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
setStatusByUserUuid in interface MBMessageModelstatusByUserUuid - the status by user uuid of this message-boards messagepublic String getStatusByUserName()
getStatusByUserName in interface WorkflowedModelgetStatusByUserName in interface MBMessageModelpublic void setStatusByUserName(String statusByUserName)
setStatusByUserName in interface WorkflowedModelsetStatusByUserName in interface MBMessageModelstatusByUserName - the status by user name of this message-boards messagepublic Date getStatusDate()
getStatusDate in interface WorkflowedModelgetStatusDate in interface MBMessageModelpublic void setStatusDate(Date statusDate)
setStatusDate in interface WorkflowedModelsetStatusDate in interface MBMessageModelstatusDate - the status date of this message-boards messagepublic boolean getApproved()
isApproved()
getApproved in interface MBMessageModelpublic boolean isApproved()
true if this message-boards message is approved.
isApproved in interface WorkflowedModelisApproved in interface MBMessageModeltrue if this message-boards message is approved; false otherwisepublic boolean isDenied()
true if this message-boards message is denied.
isDenied in interface MBMessageModeltrue if this message-boards message is denied; false otherwisepublic boolean isDraft()
true if this message-boards message is a draft.
isDraft in interface WorkflowedModelisDraft in interface MBMessageModeltrue if this message-boards message is a draft; false otherwisepublic boolean isExpired()
true if this message-boards message is expired.
isExpired in interface WorkflowedModelisExpired in interface MBMessageModeltrue if this message-boards message is expired; false otherwisepublic boolean isInactive()
true if this message-boards message is inactive.
isInactive in interface MBMessageModeltrue if this message-boards message is inactive; false otherwisepublic boolean isIncomplete()
true if this message-boards message is incomplete.
isIncomplete in interface MBMessageModeltrue if this message-boards message is incomplete; false otherwisepublic boolean isInTrash()
true if this message-boards message is in the Recycle Bin.
isInTrash in interface WorkflowedModelisInTrash in interface MBMessageModeltrue if this message-boards message is in the Recycle Bin; false otherwisepublic boolean isPending()
true if this message-boards message is pending.
isPending in interface WorkflowedModelisPending in interface MBMessageModeltrue if this message-boards message is pending; false otherwisepublic boolean isScheduled()
true if this message-boards message is scheduled.
isScheduled in interface MBMessageModeltrue if this message-boards message is scheduled; false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<MBMessage>isNew in interface MBMessageModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<MBMessage>setNew in interface MBMessageModeln - 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<MBMessage>isCachedModel in interface MBMessageModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<MBMessage>setCachedModel in interface MBMessageModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<MBMessage>isEscapedModel in interface MBMessageModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<MBMessage>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface MBMessageModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<MBMessage>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface MBMessageModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<MBMessage>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface MBMessageModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<MBMessage>setExpandoBridgeAttributes in interface MBMessageModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<MBMessage>clone in interface MBMessageModelclone in class Objectpublic int compareTo(MBMessage mbMessage)
compareTo in interface MBMessageModelcompareTo in interface Comparable<MBMessage>public int hashCode()
hashCode in interface MBMessageModelhashCode in class Objectpublic CacheModel<MBMessage> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<MBMessage>toCacheModel in interface MBMessageModelpublic MBMessage toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<MBMessage>toEscapedModel in interface MBMessageModelAutoEscapeBeanHandlerpublic String toString()
toString in interface MBMessageModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<MBMessage>toXmlString in interface MBMessageModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public String[] getAssetTagNames()
throws SystemException
getAssetTagNames in interface MBMessageSystemExceptionpublic String getAttachmentsDir()
getAttachmentsDir in interface MBMessage
public String[] getAttachmentsFiles()
throws PortalException,
SystemException
getAttachmentsFiles in interface MBMessagePortalException
SystemExceptionpublic String getBody(boolean translate)
getBody in interface MBMessage
public MBCategory getCategory()
throws PortalException,
SystemException
getCategory in interface MBMessagePortalException
SystemExceptionpublic String getDeletedAttachmentsDir()
getDeletedAttachmentsDir in interface MBMessage
public String[] getDeletedAttachmentsFiles()
throws PortalException,
SystemException
getDeletedAttachmentsFiles in interface MBMessagePortalException
SystemException
public MBThread getThread()
throws PortalException,
SystemException
getThread in interface MBMessagePortalException
SystemExceptionpublic String getThreadAttachmentsDir()
getThreadAttachmentsDir in interface MBMessagepublic String getWorkflowClassName()
getWorkflowClassName in interface MBMessagepublic boolean isDiscussion()
isDiscussion in interface MBMessagepublic boolean isFormatBBCode()
isFormatBBCode in interface MBMessagepublic boolean isReply()
isReply in interface MBMessagepublic boolean isRoot()
isRoot in interface MBMessagepublic void setAttachmentsDir(String attachmentsDir)
setAttachmentsDir in interface MBMessagepublic MBMessage getWrappedMBMessage()
getWrappedModel()
public MBMessage getWrappedModel()
getWrappedModel in interface ModelWrapper<MBMessage>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<MBMessage>
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||