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