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

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

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
CACHE_ENABLED, DATA_SOURCE, LOCK_EXPIRATION_TIME, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Constructor Summary
MBMessageImpl()
           
 
Method Summary
 java.lang.String getAttachmentsDir()
           
 java.lang.String[] getAttachmentsFiles()
           
 java.lang.String getBody(boolean translate)
           
 com.liferay.portlet.messageboards.model.MBCategory getCategory()
           
 double getPriority()
           
 java.lang.String[] getTagsEntries()
           
 java.lang.String getThreadAttachmentsDir()
           
 java.lang.String getUserUuid()
           
 boolean isDiscussion()
           
 boolean isReply()
           
 boolean isRoot()
           
 void setAttachmentsDir(java.lang.String attachmentsDir)
           
 void setPriority(double priority)
           
 void setUserUuid(java.lang.String userUuid)
           
 
Methods inherited from class com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
clone, compareTo, equals, getAnonymous, getAttachments, getBody, getCategoryId, getCompanyId, getCreateDate, getExpandoBridge, getMessageId, getModifiedDate, getParentMessageId, getPrimaryKey, getPrimaryKeyObj, getSubject, getThreadId, getUserId, getUserName, getUuid, hashCode, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setCompanyId, setCreateDate, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setSubject, setThreadId, setUserId, setUserName, setUuid, toEscapedModel, toModel, toModels
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isEscapedModel, isNew, setEscapedModel, 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, getUuid, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setCompanyId, setCreateDate, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setSubject, setThreadId, setUserId, setUserName, setUuid, toEscapedModel
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isEscapedModel, isNew, setEscapedModel, 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

getUserUuid

public java.lang.String getUserUuid()
                             throws com.liferay.portal.SystemException
Specified by:
getUserUuid in interface com.liferay.portlet.messageboards.model.MBMessage
Throws:
com.liferay.portal.SystemException

setUserUuid

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

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

getBody

public java.lang.String getBody(boolean translate)
Specified by:
getBody 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

setAttachmentsDir

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

getAttachmentsFiles

public java.lang.String[] getAttachmentsFiles()
                                       throws com.liferay.portal.PortalException,
                                              com.liferay.portal.SystemException
Specified by:
getAttachmentsFiles in interface com.liferay.portlet.messageboards.model.MBMessage
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPriority

public double getPriority()
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Specified by:
getPriority in interface com.liferay.portlet.messageboards.model.MBMessage
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

setPriority

public void setPriority(double priority)
Specified by:
setPriority in interface com.liferay.portlet.messageboards.model.MBMessage

getTagsEntries

public java.lang.String[] getTagsEntries()
                                  throws com.liferay.portal.SystemException
Specified by:
getTagsEntries in interface com.liferay.portlet.messageboards.model.MBMessage
Throws:
com.liferay.portal.SystemException