|
Liferay 6.0.4 | |||||||||
| 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()
Gets the allow pingbacks of this message-boards message. |
boolean |
getAnonymous()
Gets the anonymous of this message-boards message. |
String[] |
getAssetTagNames()
|
boolean |
getAttachments()
Gets the attachments of this message-boards message. |
String |
getAttachmentsDir()
|
String[] |
getAttachmentsFiles()
|
String |
getBody()
Gets the body of this message-boards message. |
String |
getBody(boolean translate)
|
MBCategory |
getCategory()
|
long |
getCategoryId()
Gets the category id of this message-boards message. |
String |
getClassName()
Gets the class name of the model instance this message-boards message is polymorphically associated with. |
long |
getClassNameId()
Gets the class name id of this message-boards message. |
long |
getClassPK()
Gets the class p k of this message-boards message. |
long |
getCompanyId()
Gets the company id of this message-boards message. |
Date |
getCreateDate()
Gets the create date of this message-boards message. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getGroupId()
Gets the group id of this message-boards message. |
long |
getMessageId()
Gets the message id of this message-boards message. |
Date |
getModifiedDate()
Gets the modified date of this message-boards message. |
long |
getParentMessageId()
Gets the parent message id of this message-boards message. |
long |
getPrimaryKey()
Gets the primary key of this message-boards message. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
double |
getPriority()
Gets the priority of this message-boards message. |
long |
getRootMessageId()
Gets the root message id of this message-boards message. |
int |
getStatus()
Gets the status of this message-boards message. |
long |
getStatusByUserId()
Gets the status by user id of this message-boards message. |
String |
getStatusByUserName()
Gets the status by user name of this message-boards message. |
String |
getStatusByUserUuid()
Gets the status by user uuid of this message-boards message. |
Date |
getStatusDate()
Gets the status date of this message-boards message. |
String |
getSubject()
Gets the subject of this message-boards message. |
MBThread |
getThread()
|
String |
getThreadAttachmentsDir()
|
long |
getThreadId()
Gets the thread id of this message-boards message. |
long |
getUserId()
Gets the user id of this message-boards message. |
String |
getUserName()
Gets the user name of this message-boards message. |
String |
getUserUuid()
Gets the user uuid of this message-boards message. |
String |
getUuid()
Gets the uuid of this message-boards message. |
String |
getWorkflowClassName()
|
MBMessage |
getWrappedMBMessage()
|
int |
hashCode()
|
boolean |
isAllowPingbacks()
Determines whether this message-boards message is allow pingbacks. |
boolean |
isAnonymous()
Determines whether this message-boards message is anonymous. |
boolean |
isApproved()
Determines whether this message-boards message is approved. |
boolean |
isAttachments()
Determines whether this message-boards message is attachments. |
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isDiscussion()
|
boolean |
isDraft()
Determines whether this message-boards message is a draft. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isExpired()
Determines whether this message-boards message is expired. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
boolean |
isPending()
Determines whether this message-boards message is pending. |
boolean |
isReply()
|
boolean |
isRoot()
|
void |
setAllowPingbacks(boolean allowPingbacks)
Sets whether this {$entity.humanName} is allow pingbacks. |
void |
setAnonymous(boolean anonymous)
Sets whether this {$entity.humanName} is anonymous. |
void |
setAttachments(boolean attachments)
Sets whether this {$entity.humanName} 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 |
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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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 message. |
void |
setMessageId(long messageId)
Sets the message id of this message-boards message. |
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 pk)
Sets the primary key of this message-boards message |
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. |
MBMessage |
toEscapedModel()
Gets a copy of this message-boards message as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets 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 long getPrimaryKey()
MBMessageModel
getPrimaryKey in interface MBMessageModelpublic void setPrimaryKey(long pk)
MBMessageModel
setPrimaryKey in interface MBMessageModelpk - the primary key of this message-boards messagepublic String getUuid()
MBMessageModel
getUuid in interface MBMessageModelpublic void setUuid(String uuid)
MBMessageModel
setUuid in interface MBMessageModeluuid - the uuid of this message-boards messagepublic long getMessageId()
MBMessageModel
getMessageId in interface MBMessageModelpublic void setMessageId(long messageId)
MBMessageModel
setMessageId in interface MBMessageModelmessageId - the message id of this message-boards messagepublic long getGroupId()
MBMessageModel
getGroupId in interface MBMessageModelpublic void setGroupId(long groupId)
MBMessageModel
setGroupId in interface MBMessageModelgroupId - the group id of this message-boards messagepublic long getCompanyId()
MBMessageModel
getCompanyId in interface MBMessageModelpublic void setCompanyId(long companyId)
MBMessageModel
setCompanyId in interface MBMessageModelcompanyId - the company id of this message-boards messagepublic long getUserId()
MBMessageModel
getUserId in interface MBMessageModelpublic void setUserId(long userId)
MBMessageModel
setUserId in interface MBMessageModeluserId - the user id of this message-boards message
public String getUserUuid()
throws SystemException
MBMessageModel
getUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
MBMessageModel
setUserUuid in interface MBMessageModeluserUuid - the user uuid of this message-boards messagepublic String getUserName()
MBMessageModel
getUserName in interface MBMessageModelpublic void setUserName(String userName)
MBMessageModel
setUserName in interface MBMessageModeluserName - the user name of this message-boards messagepublic Date getCreateDate()
MBMessageModel
getCreateDate in interface MBMessageModelpublic void setCreateDate(Date createDate)
MBMessageModel
setCreateDate in interface MBMessageModelcreateDate - the create date of this message-boards messagepublic Date getModifiedDate()
MBMessageModel
getModifiedDate in interface MBMessageModelpublic void setModifiedDate(Date modifiedDate)
MBMessageModel
setModifiedDate in interface MBMessageModelmodifiedDate - the modified date of this message-boards messagepublic String getClassName()
MBMessageModel
getClassName in interface MBMessageModelpublic long getClassNameId()
MBMessageModel
getClassNameId in interface MBMessageModelpublic void setClassNameId(long classNameId)
MBMessageModel
setClassNameId in interface MBMessageModelclassNameId - the class name id of this message-boards messagepublic long getClassPK()
MBMessageModel
getClassPK in interface MBMessageModelpublic void setClassPK(long classPK)
MBMessageModel
setClassPK in interface MBMessageModelclassPK - the class p k of this message-boards messagepublic long getCategoryId()
MBMessageModel
getCategoryId in interface MBMessageModelpublic void setCategoryId(long categoryId)
MBMessageModel
setCategoryId in interface MBMessageModelcategoryId - the category id of this message-boards messagepublic long getThreadId()
MBMessageModel
getThreadId in interface MBMessageModelpublic void setThreadId(long threadId)
MBMessageModel
setThreadId in interface MBMessageModelthreadId - the thread id of this message-boards messagepublic long getRootMessageId()
MBMessageModel
getRootMessageId in interface MBMessageModelpublic void setRootMessageId(long rootMessageId)
MBMessageModel
setRootMessageId in interface MBMessageModelrootMessageId - the root message id of this message-boards messagepublic long getParentMessageId()
MBMessageModel
getParentMessageId in interface MBMessageModelpublic void setParentMessageId(long parentMessageId)
MBMessageModel
setParentMessageId in interface MBMessageModelparentMessageId - the parent message id of this message-boards messagepublic String getSubject()
MBMessageModel
getSubject in interface MBMessageModelpublic void setSubject(String subject)
MBMessageModel
setSubject in interface MBMessageModelsubject - the subject of this message-boards messagepublic String getBody()
MBMessageModel
getBody in interface MBMessageModelpublic void setBody(String body)
MBMessageModel
setBody in interface MBMessageModelbody - the body of this message-boards messagepublic boolean getAttachments()
MBMessageModel
getAttachments in interface MBMessageModelpublic boolean isAttachments()
MBMessageModel
isAttachments in interface MBMessageModelpublic void setAttachments(boolean attachments)
MBMessageModel
setAttachments in interface MBMessageModelattachments - the attachments of this message-boards messagepublic boolean getAnonymous()
MBMessageModel
getAnonymous in interface MBMessageModelpublic boolean isAnonymous()
MBMessageModel
isAnonymous in interface MBMessageModelpublic void setAnonymous(boolean anonymous)
MBMessageModel
setAnonymous in interface MBMessageModelanonymous - the anonymous of this message-boards messagepublic double getPriority()
MBMessageModel
getPriority in interface MBMessageModelpublic void setPriority(double priority)
MBMessageModel
setPriority in interface MBMessageModelpriority - the priority of this message-boards messagepublic boolean getAllowPingbacks()
MBMessageModel
getAllowPingbacks in interface MBMessageModelpublic boolean isAllowPingbacks()
MBMessageModel
isAllowPingbacks in interface MBMessageModelpublic void setAllowPingbacks(boolean allowPingbacks)
MBMessageModel
setAllowPingbacks in interface MBMessageModelallowPingbacks - the allow pingbacks of this message-boards messagepublic int getStatus()
MBMessageModel
getStatus in interface MBMessageModelpublic void setStatus(int status)
MBMessageModel
setStatus in interface MBMessageModelstatus - the status of this message-boards messagepublic long getStatusByUserId()
MBMessageModel
getStatusByUserId in interface MBMessageModelpublic void setStatusByUserId(long statusByUserId)
MBMessageModel
setStatusByUserId in interface MBMessageModelstatusByUserId - the status by user id of this message-boards message
public String getStatusByUserUuid()
throws SystemException
MBMessageModel
getStatusByUserUuid in interface MBMessageModelSystemException - if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
MBMessageModel
setStatusByUserUuid in interface MBMessageModelstatusByUserUuid - the status by user uuid of this message-boards messagepublic String getStatusByUserName()
MBMessageModel
getStatusByUserName in interface MBMessageModelpublic void setStatusByUserName(String statusByUserName)
MBMessageModel
setStatusByUserName in interface MBMessageModelstatusByUserName - the status by user name of this message-boards messagepublic Date getStatusDate()
MBMessageModel
getStatusDate in interface MBMessageModelpublic void setStatusDate(Date statusDate)
MBMessageModel
setStatusDate in interface MBMessageModelstatusDate - the status date of this message-boards messagepublic boolean isApproved()
MBMessageModel
isApproved in interface MBMessageModelpublic boolean isDraft()
MBMessageModel
isDraft in interface MBMessageModelpublic boolean isExpired()
MBMessageModel
isExpired in interface MBMessageModelpublic boolean isPending()
MBMessageModel
isPending in interface MBMessageModelpublic MBMessage toEscapedModel()
MBMessageModelAutoEscapeBeanHandler.
toEscapedModel in interface MBMessageModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
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()
BaseModel
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()
BaseModel
isEscapedModel in interface BaseModel<MBMessage>isEscapedModel in interface MBMessageModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<MBMessage>setEscapedModel in interface MBMessageModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<MBMessage>getPrimaryKeyObj in interface MBMessageModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<MBMessage>getExpandoBridge in interface MBMessageModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<MBMessage>setExpandoBridgeAttributes in interface MBMessageModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.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 String toString()
toString in interface MBMessageModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<MBMessage>toXmlString in interface MBMessageModel
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 MBMessagepublic MBCategory getCategory()
getCategory in interface MBMessage
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 isReply()
isReply in interface MBMessagepublic boolean isRoot()
isRoot in interface MBMessagepublic void setAttachmentsDir(String attachmentsDir)
setAttachmentsDir in interface MBMessagepublic MBMessage getWrappedMBMessage()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||