001
014
015 package com.liferay.portlet.messageboards.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Accessor;
020 import com.liferay.portal.model.PersistedModel;
021
022
031 @ProviderType
032 public interface MBMessage extends MBMessageModel, PersistedModel {
033
038 public static final Accessor<MBMessage, Long> MESSAGE_ID_ACCESSOR = new Accessor<MBMessage, Long>() {
039 @Override
040 public Long get(MBMessage mbMessage) {
041 return mbMessage.getMessageId();
042 }
043
044 @Override
045 public Class<Long> getAttributeClass() {
046 return Long.class;
047 }
048
049 @Override
050 public Class<MBMessage> getTypeClass() {
051 return MBMessage.class;
052 }
053 };
054
055 public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
056 throws com.liferay.portal.kernel.exception.PortalException;
057
058 public java.lang.String[] getAssetTagNames();
059
060 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
061 throws com.liferay.portal.kernel.exception.PortalException;
062
063 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
064 int start, int end)
065 throws com.liferay.portal.kernel.exception.PortalException;
066
067 public int getAttachmentsFileEntriesCount()
068 throws com.liferay.portal.kernel.exception.PortalException;
069
070 public long getAttachmentsFolderId()
071 throws com.liferay.portal.kernel.exception.PortalException;
072
073 public java.lang.String getBody(boolean translate);
074
075 public com.liferay.portlet.messageboards.model.MBCategory getCategory()
076 throws com.liferay.portal.kernel.exception.PortalException;
077
078 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
079 throws com.liferay.portal.kernel.exception.PortalException;
080
081 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
082 int start, int end)
083 throws com.liferay.portal.kernel.exception.PortalException;
084
085 public int getDeletedAttachmentsFileEntriesCount()
086 throws com.liferay.portal.kernel.exception.PortalException;
087
088 public com.liferay.portlet.messageboards.model.MBThread getThread()
089 throws com.liferay.portal.kernel.exception.PortalException;
090
091 public long getThreadAttachmentsFolderId()
092 throws com.liferay.portal.kernel.exception.PortalException;
093
094 public java.lang.String getWorkflowClassName();
095
096 public boolean isDiscussion();
097
098 public boolean isFormatBBCode();
099
100 public boolean isReply();
101
102 public boolean isRoot();
103
104 public void setAttachmentsFolderId(long attachmentsFolderId);
105 }