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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.messageboards.model.MBMessage>
      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.MBMessage, com.liferay.portlet.messageboards.model.MBMessageModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portlet.messageboards.model.MBMessage>

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
DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, 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()
           
 java.lang.String[] getTagsEntries()
           
 com.liferay.portlet.messageboards.model.MBThread getThread()
           
 java.lang.String getThreadAttachmentsDir()
           
 java.lang.String getUserUuid()
           
 boolean isDiscussion()
           
 boolean isReply()
           
 boolean isRoot()
           
 void setAttachmentsDir(java.lang.String attachmentsDir)
           
 void setUserUuid(java.lang.String userUuid)
           
 
Methods inherited from class com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
clone, compareTo, equals, getAnonymous, getAttachments, getBody, getCategoryId, getClassName, getClassNameId, getClassPK, getCompanyId, getCreateDate, getExpandoBridge, getGroupId, getMessageId, getModifiedDate, getOriginalGroupId, getOriginalUuid, getParentMessageId, getPrimaryKey, getPrimaryKeyObj, getPriority, getSubject, getThreadId, getUserId, getUserName, getUuid, hashCode, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setClassNameId, setClassPK, setCompanyId, setCreateDate, setGroupId, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setPriority, setSubject, setThreadId, setUserId, setUserName, setUuid, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.messageboards.model.MBMessageModel
getAnonymous, getAttachments, getBody, getCategoryId, getClassName, getClassNameId, getClassPK, getCompanyId, getCreateDate, getGroupId, getMessageId, getModifiedDate, getParentMessageId, getPrimaryKey, getPriority, getSubject, getThreadId, getUserId, getUserName, getUuid, isAnonymous, isAttachments, setAnonymous, setAttachments, setBody, setCategoryId, setClassNameId, setClassPK, setCompanyId, setCreateDate, setGroupId, setMessageId, setModifiedDate, setParentMessageId, setPrimaryKey, setPriority, setSubject, setThreadId, setUserId, setUserName, setUuid, toEscapedModel
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew, toXmlString
 
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

getThread

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

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

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