|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.messageboards.model.MBMessageWrapper
public class MBMessageWrapper
This class is a wrapper for MBMessage
.
MBMessage
,
Serialized FormConstructor 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 MBMessageModel
public void setPrimaryKey(long pk)
MBMessageModel
setPrimaryKey
in interface MBMessageModel
pk
- the primary key of this message-boards messagepublic String getUuid()
MBMessageModel
getUuid
in interface MBMessageModel
public void setUuid(String uuid)
MBMessageModel
setUuid
in interface MBMessageModel
uuid
- the uuid of this message-boards messagepublic long getMessageId()
MBMessageModel
getMessageId
in interface MBMessageModel
public void setMessageId(long messageId)
MBMessageModel
setMessageId
in interface MBMessageModel
messageId
- the message id of this message-boards messagepublic long getGroupId()
MBMessageModel
getGroupId
in interface MBMessageModel
public void setGroupId(long groupId)
MBMessageModel
setGroupId
in interface MBMessageModel
groupId
- the group id of this message-boards messagepublic long getCompanyId()
MBMessageModel
getCompanyId
in interface MBMessageModel
public void setCompanyId(long companyId)
MBMessageModel
setCompanyId
in interface MBMessageModel
companyId
- the company id of this message-boards messagepublic long getUserId()
MBMessageModel
getUserId
in interface MBMessageModel
public void setUserId(long userId)
MBMessageModel
setUserId
in interface MBMessageModel
userId
- the user id of this message-boards messagepublic String getUserUuid() throws SystemException
MBMessageModel
getUserUuid
in interface MBMessageModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
MBMessageModel
setUserUuid
in interface MBMessageModel
userUuid
- the user uuid of this message-boards messagepublic String getUserName()
MBMessageModel
getUserName
in interface MBMessageModel
public void setUserName(String userName)
MBMessageModel
setUserName
in interface MBMessageModel
userName
- the user name of this message-boards messagepublic Date getCreateDate()
MBMessageModel
getCreateDate
in interface MBMessageModel
public void setCreateDate(Date createDate)
MBMessageModel
setCreateDate
in interface MBMessageModel
createDate
- the create date of this message-boards messagepublic Date getModifiedDate()
MBMessageModel
getModifiedDate
in interface MBMessageModel
public void setModifiedDate(Date modifiedDate)
MBMessageModel
setModifiedDate
in interface MBMessageModel
modifiedDate
- the modified date of this message-boards messagepublic String getClassName()
MBMessageModel
getClassName
in interface MBMessageModel
public long getClassNameId()
MBMessageModel
getClassNameId
in interface MBMessageModel
public void setClassNameId(long classNameId)
MBMessageModel
setClassNameId
in interface MBMessageModel
classNameId
- the class name id of this message-boards messagepublic long getClassPK()
MBMessageModel
getClassPK
in interface MBMessageModel
public void setClassPK(long classPK)
MBMessageModel
setClassPK
in interface MBMessageModel
classPK
- the class p k of this message-boards messagepublic long getCategoryId()
MBMessageModel
getCategoryId
in interface MBMessageModel
public void setCategoryId(long categoryId)
MBMessageModel
setCategoryId
in interface MBMessageModel
categoryId
- the category id of this message-boards messagepublic long getThreadId()
MBMessageModel
getThreadId
in interface MBMessageModel
public void setThreadId(long threadId)
MBMessageModel
setThreadId
in interface MBMessageModel
threadId
- the thread id of this message-boards messagepublic long getRootMessageId()
MBMessageModel
getRootMessageId
in interface MBMessageModel
public void setRootMessageId(long rootMessageId)
MBMessageModel
setRootMessageId
in interface MBMessageModel
rootMessageId
- the root message id of this message-boards messagepublic long getParentMessageId()
MBMessageModel
getParentMessageId
in interface MBMessageModel
public void setParentMessageId(long parentMessageId)
MBMessageModel
setParentMessageId
in interface MBMessageModel
parentMessageId
- the parent message id of this message-boards messagepublic String getSubject()
MBMessageModel
getSubject
in interface MBMessageModel
public void setSubject(String subject)
MBMessageModel
setSubject
in interface MBMessageModel
subject
- the subject of this message-boards messagepublic String getBody()
MBMessageModel
getBody
in interface MBMessageModel
public void setBody(String body)
MBMessageModel
setBody
in interface MBMessageModel
body
- the body of this message-boards messagepublic boolean getAttachments()
MBMessageModel
getAttachments
in interface MBMessageModel
public boolean isAttachments()
MBMessageModel
isAttachments
in interface MBMessageModel
public void setAttachments(boolean attachments)
MBMessageModel
setAttachments
in interface MBMessageModel
attachments
- the attachments of this message-boards messagepublic boolean getAnonymous()
MBMessageModel
getAnonymous
in interface MBMessageModel
public boolean isAnonymous()
MBMessageModel
isAnonymous
in interface MBMessageModel
public void setAnonymous(boolean anonymous)
MBMessageModel
setAnonymous
in interface MBMessageModel
anonymous
- the anonymous of this message-boards messagepublic double getPriority()
MBMessageModel
getPriority
in interface MBMessageModel
public void setPriority(double priority)
MBMessageModel
setPriority
in interface MBMessageModel
priority
- the priority of this message-boards messagepublic boolean getAllowPingbacks()
MBMessageModel
getAllowPingbacks
in interface MBMessageModel
public boolean isAllowPingbacks()
MBMessageModel
isAllowPingbacks
in interface MBMessageModel
public void setAllowPingbacks(boolean allowPingbacks)
MBMessageModel
setAllowPingbacks
in interface MBMessageModel
allowPingbacks
- the allow pingbacks of this message-boards messagepublic int getStatus()
MBMessageModel
getStatus
in interface MBMessageModel
public void setStatus(int status)
MBMessageModel
setStatus
in interface MBMessageModel
status
- the status of this message-boards messagepublic long getStatusByUserId()
MBMessageModel
getStatusByUserId
in interface MBMessageModel
public void setStatusByUserId(long statusByUserId)
MBMessageModel
setStatusByUserId
in interface MBMessageModel
statusByUserId
- the status by user id of this message-boards messagepublic String getStatusByUserUuid() throws SystemException
MBMessageModel
getStatusByUserUuid
in interface MBMessageModel
SystemException
- if a system exception occurredpublic void setStatusByUserUuid(String statusByUserUuid)
MBMessageModel
setStatusByUserUuid
in interface MBMessageModel
statusByUserUuid
- the status by user uuid of this message-boards messagepublic String getStatusByUserName()
MBMessageModel
getStatusByUserName
in interface MBMessageModel
public void setStatusByUserName(String statusByUserName)
MBMessageModel
setStatusByUserName
in interface MBMessageModel
statusByUserName
- the status by user name of this message-boards messagepublic Date getStatusDate()
MBMessageModel
getStatusDate
in interface MBMessageModel
public void setStatusDate(Date statusDate)
MBMessageModel
setStatusDate
in interface MBMessageModel
statusDate
- the status date of this message-boards messagepublic boolean isApproved()
MBMessageModel
isApproved
in interface MBMessageModel
public boolean isDraft()
MBMessageModel
isDraft
in interface MBMessageModel
public boolean isExpired()
MBMessageModel
isExpired
in interface MBMessageModel
public boolean isPending()
MBMessageModel
isPending
in interface MBMessageModel
public MBMessage toEscapedModel()
MBMessageModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface MBMessageModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<MBMessage>
isNew
in interface MBMessageModel
true
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 MBMessageModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<MBMessage>
isCachedModel
in interface MBMessageModel
true
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 MBMessageModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<MBMessage>
isEscapedModel
in interface MBMessageModel
true
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 MBMessageModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<MBMessage>
getPrimaryKeyObj
in interface MBMessageModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<MBMessage>
getExpandoBridge
in interface MBMessageModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<MBMessage>
setExpandoBridgeAttributes
in interface MBMessageModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<MBMessage>
clone
in interface MBMessageModel
clone
in class Object
public int compareTo(MBMessage mbMessage)
compareTo
in interface MBMessageModel
compareTo
in interface Comparable<MBMessage>
public int hashCode()
hashCode
in interface MBMessageModel
hashCode
in class Object
public String toString()
toString
in interface MBMessageModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<MBMessage>
toXmlString
in interface MBMessageModel
public String[] getAssetTagNames() throws SystemException
getAssetTagNames
in interface MBMessage
SystemException
public String getAttachmentsDir()
getAttachmentsDir
in interface MBMessage
public String[] getAttachmentsFiles() throws PortalException, SystemException
getAttachmentsFiles
in interface MBMessage
PortalException
SystemException
public String getBody(boolean translate)
getBody
in interface MBMessage
public MBCategory getCategory()
getCategory
in interface MBMessage
public MBThread getThread() throws PortalException, SystemException
getThread
in interface MBMessage
PortalException
SystemException
public String getThreadAttachmentsDir()
getThreadAttachmentsDir
in interface MBMessage
public String getWorkflowClassName()
getWorkflowClassName
in interface MBMessage
public boolean isDiscussion()
isDiscussion
in interface MBMessage
public boolean isReply()
isReply
in interface MBMessage
public boolean isRoot()
isRoot
in interface MBMessage
public void setAttachmentsDir(String attachmentsDir)
setAttachmentsDir
in interface MBMessage
public MBMessage getWrappedMBMessage()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |