001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.messageboards.service;
022:
023: /**
024: * <a href="MBMessageService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.messageboards.service.MBMessageServiceFactory
045: * @see com.liferay.portlet.messageboards.service.MBMessageServiceUtil
046: *
047: */
048: public interface MBMessageService {
049: public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
050: long groupId, java.lang.String className, long classPK,
051: long threadId, long parentMessageId,
052: java.lang.String subject, java.lang.String body,
053: com.liferay.portal.theme.ThemeDisplay themeDisplay)
054: throws java.rmi.RemoteException,
055: com.liferay.portal.SystemException,
056: com.liferay.portal.PortalException;
057:
058: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
059: long categoryId, java.lang.String subject,
060: java.lang.String body, java.util.List files,
061: boolean anonymous, double priority,
062: java.lang.String[] tagsEntries,
063: boolean addCommunityPermissions, boolean addGuestPermissions)
064: throws java.rmi.RemoteException,
065: com.liferay.portal.SystemException,
066: com.liferay.portal.PortalException;
067:
068: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
069: long categoryId, java.lang.String subject,
070: java.lang.String body, java.util.List files,
071: boolean anonymous, double priority,
072: java.lang.String[] tagsEntries,
073: java.lang.String[] communityPermissions,
074: java.lang.String[] guestPermissions)
075: throws java.rmi.RemoteException,
076: com.liferay.portal.SystemException,
077: com.liferay.portal.PortalException;
078:
079: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
080: long categoryId, java.lang.String subject,
081: java.lang.String body, java.util.List files,
082: boolean anonymous, double priority,
083: java.lang.String[] tagsEntries,
084: javax.portlet.PortletPreferences prefs,
085: boolean addCommunityPermissions,
086: boolean addGuestPermissions,
087: com.liferay.portal.theme.ThemeDisplay themeDisplay)
088: throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException,
090: com.liferay.portal.PortalException;
091:
092: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
093: long categoryId, java.lang.String subject,
094: java.lang.String body, java.util.List files,
095: boolean anonymous, double priority,
096: java.lang.String[] tagsEntries,
097: javax.portlet.PortletPreferences prefs,
098: java.lang.String[] communityPermissions,
099: java.lang.String[] guestPermissions,
100: com.liferay.portal.theme.ThemeDisplay themeDisplay)
101: throws java.rmi.RemoteException,
102: com.liferay.portal.SystemException,
103: com.liferay.portal.PortalException;
104:
105: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
106: long categoryId, long threadId, long parentMessageId,
107: java.lang.String subject, java.lang.String body,
108: java.util.List files, boolean anonymous, double priority,
109: java.lang.String[] tagsEntries,
110: boolean addCommunityPermissions, boolean addGuestPermissions)
111: throws java.rmi.RemoteException,
112: com.liferay.portal.SystemException,
113: com.liferay.portal.PortalException;
114:
115: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
116: long categoryId, long threadId, long parentMessageId,
117: java.lang.String subject, java.lang.String body,
118: java.util.List files, boolean anonymous, double priority,
119: java.lang.String[] tagsEntries,
120: java.lang.String[] communityPermissions,
121: java.lang.String[] guestPermissions)
122: throws java.rmi.RemoteException,
123: com.liferay.portal.SystemException,
124: com.liferay.portal.PortalException;
125:
126: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
127: long categoryId, long threadId, long parentMessageId,
128: java.lang.String subject, java.lang.String body,
129: java.util.List files, boolean anonymous, double priority,
130: java.lang.String[] tagsEntries,
131: javax.portlet.PortletPreferences prefs,
132: boolean addCommunityPermissions,
133: boolean addGuestPermissions,
134: com.liferay.portal.theme.ThemeDisplay themeDisplay)
135: throws java.rmi.RemoteException,
136: com.liferay.portal.SystemException,
137: com.liferay.portal.PortalException;
138:
139: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
140: long categoryId, long threadId, long parentMessageId,
141: java.lang.String subject, java.lang.String body,
142: java.util.List files, boolean anonymous, double priority,
143: java.lang.String[] tagsEntries,
144: javax.portlet.PortletPreferences prefs,
145: java.lang.String[] communityPermissions,
146: java.lang.String[] guestPermissions,
147: com.liferay.portal.theme.ThemeDisplay themeDisplay)
148: throws java.rmi.RemoteException,
149: com.liferay.portal.SystemException,
150: com.liferay.portal.PortalException;
151:
152: public void deleteDiscussionMessage(long groupId,
153: java.lang.String className, long classPK, long messageId)
154: throws java.rmi.RemoteException,
155: com.liferay.portal.SystemException,
156: com.liferay.portal.PortalException;
157:
158: public void deleteMessage(long messageId)
159: throws java.rmi.RemoteException,
160: com.liferay.portal.SystemException,
161: com.liferay.portal.PortalException;
162:
163: public java.util.List getCategoryMessages(long categoryId,
164: int begin, int end) throws java.rmi.RemoteException,
165: com.liferay.portal.SystemException,
166: com.liferay.portal.PortalException;
167:
168: public int getCategoryMessagesCount(long categoryId)
169: throws java.rmi.RemoteException,
170: com.liferay.portal.SystemException,
171: com.liferay.portal.PortalException;
172:
173: public java.lang.String getCategoryMessagesRSS(long categoryId,
174: int max, java.lang.String type, double version,
175: java.lang.String displayStyle, java.lang.String feedURL,
176: java.lang.String entryURL) throws java.rmi.RemoteException,
177: com.liferay.portal.SystemException,
178: com.liferay.portal.PortalException;
179:
180: public java.lang.String getCompanyMessagesRSS(long companyId,
181: int max, java.lang.String type, double version,
182: java.lang.String displayStyle, java.lang.String feedURL,
183: java.lang.String entryURL) throws java.rmi.RemoteException,
184: com.liferay.portal.SystemException,
185: com.liferay.portal.PortalException;
186:
187: public java.lang.String getGroupMessagesRSS(long groupId, int max,
188: java.lang.String type, double version,
189: java.lang.String displayStyle, java.lang.String feedURL,
190: java.lang.String entryURL) throws java.rmi.RemoteException,
191: com.liferay.portal.SystemException,
192: com.liferay.portal.PortalException;
193:
194: public java.lang.String getGroupMessagesRSS(long groupId,
195: long userId, int max, java.lang.String type,
196: double version, java.lang.String displayStyle,
197: java.lang.String feedURL, java.lang.String entryURL)
198: throws java.rmi.RemoteException,
199: com.liferay.portal.SystemException,
200: com.liferay.portal.PortalException;
201:
202: public com.liferay.portlet.messageboards.model.MBMessage getMessage(
203: long messageId) throws java.rmi.RemoteException,
204: com.liferay.portal.SystemException,
205: com.liferay.portal.PortalException;
206:
207: public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
208: long messageId) throws java.rmi.RemoteException,
209: com.liferay.portal.SystemException,
210: com.liferay.portal.PortalException;
211:
212: public java.lang.String getThreadMessagesRSS(long threadId,
213: int max, java.lang.String type, double version,
214: java.lang.String displayStyle, java.lang.String feedURL,
215: java.lang.String entryURL) throws java.rmi.RemoteException,
216: com.liferay.portal.SystemException,
217: com.liferay.portal.PortalException;
218:
219: public void subscribeMessage(long messageId)
220: throws java.rmi.RemoteException,
221: com.liferay.portal.SystemException,
222: com.liferay.portal.PortalException;
223:
224: public void unsubscribeMessage(long messageId)
225: throws java.rmi.RemoteException,
226: com.liferay.portal.SystemException,
227: com.liferay.portal.PortalException;
228:
229: public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
230: long groupId, java.lang.String className, long classPK,
231: long messageId, java.lang.String subject,
232: java.lang.String body) throws java.rmi.RemoteException,
233: com.liferay.portal.SystemException,
234: com.liferay.portal.PortalException;
235:
236: public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
237: long messageId, java.lang.String subject,
238: java.lang.String body, java.util.List files,
239: double priority, java.lang.String[] tagsEntries)
240: throws java.rmi.RemoteException,
241: com.liferay.portal.SystemException,
242: com.liferay.portal.PortalException;
243:
244: public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
245: long messageId, java.lang.String subject,
246: java.lang.String body, java.util.List files,
247: double priority, java.lang.String[] tagsEntries,
248: javax.portlet.PortletPreferences prefs,
249: com.liferay.portal.theme.ThemeDisplay themeDisplay)
250: throws java.rmi.RemoteException,
251: com.liferay.portal.SystemException,
252: com.liferay.portal.PortalException;
253: }
|