com.liferay.portlet.messageboards.model.impl
Class MBMessageImpl

java.lang.Object
  extended bycom.liferay.portal.model.impl.BaseModelImpl
      extended bycom.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
          extended bycom.liferay.portlet.messageboards.model.impl.MBMessageImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel, java.lang.Cloneable, java.lang.Comparable, com.liferay.portlet.messageboards.model.MBMessage, com.liferay.portlet.messageboards.model.MBMessageModel, java.io.Serializable

public class MBMessageImpl
extends MBMessageModelImpl
implements com.liferay.portlet.messageboards.model.MBMessage

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
static long DEFAULT_PARENT_MESSAGE_ID
           
 
Fields inherited from class com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
LOCK_EXPIRATION_TIME, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, XSS_ALLOW_BODY, XSS_ALLOW_BY_MODEL, XSS_ALLOW_SUBJECT, XSS_ALLOW_USERNAME
 
Fields inherited from class com.liferay.portal.model.impl.BaseModelImpl
XSS_ALLOW
 
Constructor Summary
MBMessageImpl()
           
 
Method Summary
 java.lang.String getAttachmentsDir()
           
 java.lang.String getBody(boolean translated)
           
 com.liferay.portlet.messageboards.model.MBCategory getCategory()
           
 java.lang.String getThreadAttachmentsDir()
           
 boolean isDiscussion()
           
 boolean isReply()
           
 boolean isRoot()
           
 
Methods inherited from class com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
clone, compareTo, equals, getAnonymous, getAttachments, getBody, getCategoryId, getCompanyId, getCreateDate, getMessageId, getModifiedDate, getParentMessageId, getPrimaryKey, getPrimaryKeyObj, getSubject, getThreadId, getUserId, getUserName, hashCode, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setCompanyId, setCreateDate, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setSubject, setThreadId, setUserId, setUserName
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isNew, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.messageboards.model.MBMessageModel
getAnonymous, getAttachments, getBody, getCategoryId, getCompanyId, getCreateDate, getMessageId, getModifiedDate, getParentMessageId, getPrimaryKey, getSubject, getThreadId, getUserId, getUserName, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setCompanyId, setCreateDate, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setSubject, setThreadId, setUserId, setUserName
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getPrimaryKeyObj, isNew, setNew
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

DEFAULT_PARENT_MESSAGE_ID

public static final long DEFAULT_PARENT_MESSAGE_ID
See Also:
Constant Field Values
Constructor Detail

MBMessageImpl

public MBMessageImpl()
Method Detail

getCategory

public com.liferay.portlet.messageboards.model.MBCategory getCategory()
Specified by:
getCategory in interface com.liferay.portlet.messageboards.model.MBMessage

isRoot

public boolean isRoot()
Specified by:
isRoot in interface com.liferay.portlet.messageboards.model.MBMessage

isReply

public boolean isReply()
Specified by:
isReply in interface com.liferay.portlet.messageboards.model.MBMessage

isDiscussion

public boolean isDiscussion()
Specified by:
isDiscussion in interface com.liferay.portlet.messageboards.model.MBMessage

getThreadAttachmentsDir

public java.lang.String getThreadAttachmentsDir()
Specified by:
getThreadAttachmentsDir in interface com.liferay.portlet.messageboards.model.MBMessage

getAttachmentsDir

public java.lang.String getAttachmentsDir()
Specified by:
getAttachmentsDir in interface com.liferay.portlet.messageboards.model.MBMessage

getBody

public java.lang.String getBody(boolean translated)
Specified by:
getBody in interface com.liferay.portlet.messageboards.model.MBMessage