001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface MBMessageService {
043 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
044 long groupId, java.lang.String className, long classPK,
045 java.lang.String permissionClassName, long permissionClassPK,
046 long threadId, long parentMessageId, java.lang.String subject,
047 java.lang.String body,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
053 long groupId, long categoryId, long threadId, long parentMessageId,
054 java.lang.String subject, java.lang.String body,
055 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
056 boolean anonymous, double priority, boolean allowPingbacks,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException;
060
061 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
062 long groupId, long categoryId, java.lang.String subject,
063 java.lang.String body,
064 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
065 boolean anonymous, double priority, boolean allowPingbacks,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException;
069
070 public void deleteDiscussionMessage(long groupId,
071 java.lang.String className, long classPK,
072 java.lang.String permissionClassName, long permissionClassPK,
073 long messageId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 public void deleteMessage(long messageId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
083 long groupId, long categoryId, int status, int start, int end)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public int getCategoryMessagesCount(long groupId, long categoryId,
089 int status) throws com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.lang.String getCategoryMessagesRSS(long groupId,
093 long categoryId, int status, int max, java.lang.String type,
094 double version, java.lang.String displayStyle,
095 java.lang.String feedURL, java.lang.String entryURL,
096 com.liferay.portal.theme.ThemeDisplay themeDisplay)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public java.lang.String getCompanyMessagesRSS(long companyId, int status,
102 int max, java.lang.String type, double version,
103 java.lang.String displayStyle, java.lang.String feedURL,
104 java.lang.String entryURL,
105 com.liferay.portal.theme.ThemeDisplay themeDisplay)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.lang.String getGroupMessagesRSS(long groupId, int status,
111 int max, java.lang.String type, double version,
112 java.lang.String displayStyle, java.lang.String feedURL,
113 java.lang.String entryURL,
114 com.liferay.portal.theme.ThemeDisplay themeDisplay)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
120 int status, int max, java.lang.String type, double version,
121 java.lang.String displayStyle, java.lang.String feedURL,
122 java.lang.String entryURL,
123 com.liferay.portal.theme.ThemeDisplay themeDisplay)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
129 long messageId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
135 long messageId, int status, java.lang.String threadView,
136 boolean includePrevAndNext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
142 long groupId, long categoryId, long threadId, int status, int start,
143 int end) throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public int getThreadMessagesCount(long groupId, long categoryId,
147 long threadId, int status)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.lang.String getThreadMessagesRSS(long threadId, int status,
152 int max, java.lang.String type, double version,
153 java.lang.String displayStyle, java.lang.String feedURL,
154 java.lang.String entryURL,
155 com.liferay.portal.theme.ThemeDisplay themeDisplay)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 public void subscribeMessage(long messageId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public void unsubscribeMessage(long messageId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
168 java.lang.String className, long classPK,
169 java.lang.String permissionClassName, long permissionClassPK,
170 long messageId, java.lang.String subject, java.lang.String body,
171 com.liferay.portal.service.ServiceContext serviceContext)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
176 long messageId, java.lang.String subject, java.lang.String body,
177 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
178 java.util.List<java.lang.String> existingFiles, double priority,
179 boolean allowPingbacks,
180 com.liferay.portal.service.ServiceContext serviceContext)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183 }