1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface MBMessageService {
50 public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
51 java.lang.String className, long classPK, long ownerId, long threadId,
52 long parentMessageId, java.lang.String subject, java.lang.String body,
53 com.liferay.portal.service.ServiceContext serviceContext)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException;
56
57 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
58 long categoryId, long threadId, long parentMessageId,
59 java.lang.String subject, java.lang.String body,
60 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
61 boolean anonymous, double priority,
62 com.liferay.portal.service.ServiceContext serviceContext)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public com.liferay.portlet.messageboards.model.MBMessage addMessage(
67 long categoryId, java.lang.String subject, java.lang.String body,
68 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
69 boolean anonymous, double priority,
70 com.liferay.portal.service.ServiceContext serviceContext)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 public void deleteDiscussionMessage(long groupId,
75 java.lang.String className, long classPK, long ownerId, long messageId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 public void deleteMessage(long messageId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getCategoryMessages(
85 long categoryId, int start, int end)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public int getCategoryMessagesCount(long categoryId)
91 throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.lang.String getCategoryMessagesRSS(long categoryId, int max,
95 java.lang.String type, double version, java.lang.String displayStyle,
96 java.lang.String feedURL, java.lang.String entryURL,
97 com.liferay.portal.theme.ThemeDisplay themeDisplay)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public java.lang.String getCompanyMessagesRSS(long companyId, int max,
103 java.lang.String type, double version, java.lang.String displayStyle,
104 java.lang.String feedURL, java.lang.String entryURL,
105 com.liferay.portal.theme.ThemeDisplay themeDisplay)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.lang.String getGroupMessagesRSS(long groupId, int max,
111 java.lang.String type, double version, java.lang.String displayStyle,
112 java.lang.String feedURL, java.lang.String entryURL,
113 com.liferay.portal.theme.ThemeDisplay themeDisplay)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.lang.String getGroupMessagesRSS(long groupId, long userId,
119 int max, java.lang.String type, double version,
120 java.lang.String displayStyle, java.lang.String feedURL,
121 java.lang.String entryURL,
122 com.liferay.portal.theme.ThemeDisplay themeDisplay)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public com.liferay.portlet.messageboards.model.MBMessage getMessage(
128 long messageId)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
134 long messageId, java.lang.String threadView)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
140 long messageId, java.lang.String threadView, boolean includePrevAndNext)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.lang.String getThreadMessagesRSS(long threadId, int max,
146 java.lang.String type, double version, java.lang.String displayStyle,
147 java.lang.String feedURL, java.lang.String entryURL,
148 com.liferay.portal.theme.ThemeDisplay themeDisplay)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public void subscribeMessage(long messageId)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void unsubscribeMessage(long messageId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
161 java.lang.String className, long classPK, long ownerId, long messageId,
162 java.lang.String subject, java.lang.String body,
163 com.liferay.portal.service.ServiceContext serviceContext)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException;
166
167 public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
168 long messageId, java.lang.String subject, java.lang.String body,
169 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, byte[]>> files,
170 java.util.List<java.lang.String> existingFiles, double priority,
171 com.liferay.portal.service.ServiceContext serviceContext)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174 }