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="MBMessageLocalService.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.MBMessageLocalServiceImpl</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 local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceFactory
045: * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil
046: *
047: */
048: public interface MBMessageLocalService {
049: public com.liferay.portlet.messageboards.model.MBMessage addMBMessage(
050: com.liferay.portlet.messageboards.model.MBMessage model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.messageboards.model.MBMessage updateMBMessage(
063: com.liferay.portlet.messageboards.model.MBMessage model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence();
067:
068: public void setMBBanPersistence(
069: com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence);
070:
071: public com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence();
072:
073: public void setMBCategoryPersistence(
074: com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence);
075:
076: public com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder();
077:
078: public void setMBCategoryFinder(
079: com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder);
080:
081: public com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence();
082:
083: public void setMBDiscussionPersistence(
084: com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence);
085:
086: public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
087:
088: public void setMBMessagePersistence(
089: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
090:
091: public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
092:
093: public void setMBMessageFinder(
094: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
095:
096: public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence();
097:
098: public void setMBMessageFlagPersistence(
099: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence);
100:
101: public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder();
102:
103: public void setMBMessageFlagFinder(
104: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder);
105:
106: public com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence();
107:
108: public void setMBStatsUserPersistence(
109: com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence);
110:
111: public com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence();
112:
113: public void setMBThreadPersistence(
114: com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence);
115:
116: public com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder();
117:
118: public void setMBThreadFinder(
119: com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder);
120:
121: public com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence();
122:
123: public void setActivityTrackerPersistence(
124: com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence);
125:
126: public com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder();
127:
128: public void setActivityTrackerFinder(
129: com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder);
130:
131: public com.liferay.portal.service.persistence.CompanyPersistence getCompanyPersistence();
132:
133: public void setCompanyPersistence(
134: com.liferay.portal.service.persistence.CompanyPersistence companyPersistence);
135:
136: public com.liferay.portal.service.persistence.GroupPersistence getGroupPersistence();
137:
138: public void setGroupPersistence(
139: com.liferay.portal.service.persistence.GroupPersistence groupPersistence);
140:
141: public com.liferay.portal.service.persistence.GroupFinder getGroupFinder();
142:
143: public void setGroupFinder(
144: com.liferay.portal.service.persistence.GroupFinder groupFinder);
145:
146: public com.liferay.portal.service.persistence.PortletPreferencesPersistence getPortletPreferencesPersistence();
147:
148: public void setPortletPreferencesPersistence(
149: com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence);
150:
151: public com.liferay.portal.service.persistence.PortletPreferencesFinder getPortletPreferencesFinder();
152:
153: public void setPortletPreferencesFinder(
154: com.liferay.portal.service.persistence.PortletPreferencesFinder portletPreferencesFinder);
155:
156: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
157:
158: public void setResourcePersistence(
159: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
160:
161: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
162:
163: public void setResourceFinder(
164: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
165:
166: public com.liferay.portal.service.persistence.SubscriptionPersistence getSubscriptionPersistence();
167:
168: public void setSubscriptionPersistence(
169: com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence);
170:
171: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
172:
173: public void setUserPersistence(
174: com.liferay.portal.service.persistence.UserPersistence userPersistence);
175:
176: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
177:
178: public void setUserFinder(
179: com.liferay.portal.service.persistence.UserFinder userFinder);
180:
181: public com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence getBlogsEntryPersistence();
182:
183: public void setBlogsEntryPersistence(
184: com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence blogsEntryPersistence);
185:
186: public com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder getBlogsEntryFinder();
187:
188: public void setBlogsEntryFinder(
189: com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder blogsEntryFinder);
190:
191: public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
192:
193: public void setTagsAssetPersistence(
194: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
195:
196: public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
197:
198: public void setTagsAssetFinder(
199: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
200:
201: public com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence();
202:
203: public void setTagsEntryPersistence(
204: com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence);
205:
206: public com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder();
207:
208: public void setTagsEntryFinder(
209: com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder);
210:
211: public void afterPropertiesSet();
212:
213: public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
214: long userId, java.lang.String subject, java.lang.String body)
215: throws com.liferay.portal.SystemException,
216: com.liferay.portal.PortalException;
217:
218: public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
219: long userId, long groupId, java.lang.String className,
220: long classPK, long threadId, long parentMessageId,
221: java.lang.String subject, java.lang.String body)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portal.PortalException;
224:
225: public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
226: long userId, long groupId, java.lang.String className,
227: long classPK, long threadId, long parentMessageId,
228: java.lang.String subject, java.lang.String body,
229: com.liferay.portal.theme.ThemeDisplay themeDisplay)
230: throws com.liferay.portal.SystemException,
231: com.liferay.portal.PortalException;
232:
233: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
234: long userId, long categoryId, java.lang.String subject,
235: java.lang.String body, java.util.List files,
236: boolean anonymous, double priority,
237: java.lang.String[] tagsEntries,
238: javax.portlet.PortletPreferences prefs,
239: boolean addCommunityPermissions,
240: boolean addGuestPermissions,
241: com.liferay.portal.theme.ThemeDisplay themeDisplay)
242: throws com.liferay.portal.SystemException,
243: com.liferay.portal.PortalException;
244:
245: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
246: long userId, long categoryId, java.lang.String subject,
247: java.lang.String body, java.util.List files,
248: boolean anonymous, double priority,
249: java.lang.String[] tagsEntries,
250: javax.portlet.PortletPreferences prefs,
251: java.lang.String[] communityPermissions,
252: java.lang.String[] guestPermissions,
253: com.liferay.portal.theme.ThemeDisplay themeDisplay)
254: throws com.liferay.portal.SystemException,
255: com.liferay.portal.PortalException;
256:
257: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
258: long userId, long categoryId, java.lang.String subject,
259: java.lang.String body, java.util.List files,
260: boolean anonymous, double priority,
261: java.lang.String[] tagsEntries,
262: javax.portlet.PortletPreferences prefs,
263: java.lang.Boolean addCommunityPermissions,
264: java.lang.Boolean addGuestPermissions,
265: java.lang.String[] communityPermissions,
266: java.lang.String[] guestPermissions,
267: com.liferay.portal.theme.ThemeDisplay themeDisplay)
268: throws com.liferay.portal.SystemException,
269: com.liferay.portal.PortalException;
270:
271: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
272: long userId, long categoryId, long threadId,
273: long parentMessageId, java.lang.String subject,
274: java.lang.String body, java.util.List files,
275: boolean anonymous, double priority,
276: java.lang.String[] tagsEntries,
277: javax.portlet.PortletPreferences prefs,
278: boolean addCommunityPermissions,
279: boolean addGuestPermissions,
280: com.liferay.portal.theme.ThemeDisplay themeDisplay)
281: throws com.liferay.portal.SystemException,
282: com.liferay.portal.PortalException;
283:
284: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
285: long userId, long categoryId, long threadId,
286: long parentMessageId, java.lang.String subject,
287: java.lang.String body, java.util.List files,
288: boolean anonymous, double priority,
289: java.lang.String[] tagsEntries,
290: javax.portlet.PortletPreferences prefs,
291: java.lang.String[] communityPermissions,
292: java.lang.String[] guestPermissions,
293: com.liferay.portal.theme.ThemeDisplay themeDisplay)
294: throws com.liferay.portal.SystemException,
295: com.liferay.portal.PortalException;
296:
297: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
298: java.lang.String uuid, long userId, long categoryId,
299: long threadId, long parentMessageId,
300: java.lang.String subject, java.lang.String body,
301: java.util.List files, boolean anonymous, double priority,
302: java.lang.String[] tagsEntries,
303: javax.portlet.PortletPreferences prefs,
304: boolean addCommunityPermissions,
305: boolean addGuestPermissions,
306: com.liferay.portal.theme.ThemeDisplay themeDisplay)
307: throws com.liferay.portal.SystemException,
308: com.liferay.portal.PortalException;
309:
310: public com.liferay.portlet.messageboards.model.MBMessage addMessage(
311: java.lang.String uuid, long userId, long categoryId,
312: long threadId, long parentMessageId,
313: java.lang.String subject, java.lang.String body,
314: java.util.List files, boolean anonymous, double priority,
315: java.lang.String[] tagsEntries,
316: javax.portlet.PortletPreferences prefs,
317: java.lang.Boolean addCommunityPermissions,
318: java.lang.Boolean addGuestPermissions,
319: java.lang.String[] communityPermissions,
320: java.lang.String[] guestPermissions,
321: com.liferay.portal.theme.ThemeDisplay themeDisplay)
322: throws com.liferay.portal.SystemException,
323: com.liferay.portal.PortalException;
324:
325: public void addMessageResources(long categoryId, long messageId,
326: boolean addCommunityPermissions, boolean addGuestPermissions)
327: throws com.liferay.portal.SystemException,
328: com.liferay.portal.PortalException;
329:
330: public void addMessageResources(long categoryId,
331: java.lang.String topicId, long messageId,
332: boolean addCommunityPermissions, boolean addGuestPermissions)
333: throws com.liferay.portal.SystemException,
334: com.liferay.portal.PortalException;
335:
336: public void addMessageResources(
337: com.liferay.portlet.messageboards.model.MBCategory category,
338: com.liferay.portlet.messageboards.model.MBMessage message,
339: boolean addCommunityPermissions, boolean addGuestPermissions)
340: throws com.liferay.portal.SystemException,
341: com.liferay.portal.PortalException;
342:
343: public void addMessageResources(long categoryId, long messageId,
344: java.lang.String[] communityPermissions,
345: java.lang.String[] guestPermissions)
346: throws com.liferay.portal.SystemException,
347: com.liferay.portal.PortalException;
348:
349: public void addMessageResources(long categoryId,
350: java.lang.String topicId, long messageId,
351: java.lang.String[] communityPermissions,
352: java.lang.String[] guestPermissions)
353: throws com.liferay.portal.SystemException,
354: com.liferay.portal.PortalException;
355:
356: public void addMessageResources(
357: com.liferay.portlet.messageboards.model.MBCategory category,
358: com.liferay.portlet.messageboards.model.MBMessage message,
359: java.lang.String[] communityPermissions,
360: java.lang.String[] guestPermissions)
361: throws com.liferay.portal.SystemException,
362: com.liferay.portal.PortalException;
363:
364: public void deleteDiscussionMessage(long messageId)
365: throws com.liferay.portal.SystemException,
366: com.liferay.portal.PortalException;
367:
368: public void deleteDiscussionMessages(java.lang.String className,
369: long classPK) throws com.liferay.portal.SystemException,
370: com.liferay.portal.PortalException;
371:
372: public void deleteMessage(long messageId)
373: throws com.liferay.portal.SystemException,
374: com.liferay.portal.PortalException;
375:
376: public void deleteMessage(
377: com.liferay.portlet.messageboards.model.MBMessage message)
378: throws com.liferay.portal.SystemException,
379: com.liferay.portal.PortalException;
380:
381: public java.util.List getCategoryMessages(long categoryId,
382: int begin, int end)
383: throws com.liferay.portal.SystemException;
384:
385: public java.util.List getCategoryMessages(long categoryId,
386: int begin, int end,
387: com.liferay.portal.kernel.util.OrderByComparator obc)
388: throws com.liferay.portal.SystemException;
389:
390: public int getCategoryMessagesCount(long categoryId)
391: throws com.liferay.portal.SystemException;
392:
393: public int getCategoriesMessagesCount(java.util.List categoryIds)
394: throws com.liferay.portal.SystemException;
395:
396: public java.util.List getCompanyMessages(long companyId, int begin,
397: int end) throws com.liferay.portal.SystemException;
398:
399: public java.util.List getCompanyMessages(long companyId, int begin,
400: int end,
401: com.liferay.portal.kernel.util.OrderByComparator obc)
402: throws com.liferay.portal.SystemException;
403:
404: public int getCompanyMessagesCount(long companyId)
405: throws com.liferay.portal.SystemException;
406:
407: public com.liferay.portlet.messageboards.model.MBMessageDisplay getDiscussionMessageDisplay(
408: long userId, java.lang.String className, long classPK)
409: throws com.liferay.portal.SystemException,
410: com.liferay.portal.PortalException;
411:
412: public int getDiscussionMessagesCount(long classNameId, long classPK)
413: throws com.liferay.portal.SystemException;
414:
415: public java.util.List getGroupMessages(long groupId, int begin,
416: int end) throws com.liferay.portal.SystemException;
417:
418: public java.util.List getGroupMessages(long groupId, int begin,
419: int end,
420: com.liferay.portal.kernel.util.OrderByComparator obc)
421: throws com.liferay.portal.SystemException;
422:
423: public java.util.List getGroupMessages(long groupId, long userId,
424: int begin, int end)
425: throws com.liferay.portal.SystemException;
426:
427: public java.util.List getGroupMessages(long groupId, long userId,
428: int begin, int end,
429: com.liferay.portal.kernel.util.OrderByComparator obc)
430: throws com.liferay.portal.SystemException;
431:
432: public int getGroupMessagesCount(long groupId)
433: throws com.liferay.portal.SystemException;
434:
435: public int getGroupMessagesCount(long groupId, long userId)
436: throws com.liferay.portal.SystemException;
437:
438: public com.liferay.portlet.messageboards.model.MBMessage getMessage(
439: long messageId) throws com.liferay.portal.SystemException,
440: com.liferay.portal.PortalException;
441:
442: public java.util.List getMessages(java.lang.String className,
443: long classPK) throws com.liferay.portal.SystemException,
444: com.liferay.portal.PortalException;
445:
446: public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
447: long messageId) throws com.liferay.portal.SystemException,
448: com.liferay.portal.PortalException;
449:
450: public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
451: com.liferay.portlet.messageboards.model.MBMessage message)
452: throws com.liferay.portal.SystemException,
453: com.liferay.portal.PortalException;
454:
455: public java.util.List getNoAssetMessages()
456: throws com.liferay.portal.SystemException;
457:
458: public java.util.List getThreadMessages(long threadId)
459: throws com.liferay.portal.SystemException;
460:
461: public java.util.List getThreadMessages(long threadId,
462: java.util.Comparator comparator)
463: throws com.liferay.portal.SystemException;
464:
465: public int getThreadMessagesCount(long threadId)
466: throws com.liferay.portal.SystemException;
467:
468: public void subscribeMessage(long userId, long messageId)
469: throws com.liferay.portal.SystemException,
470: com.liferay.portal.PortalException;
471:
472: public void unsubscribeMessage(long userId, long messageId)
473: throws com.liferay.portal.SystemException,
474: com.liferay.portal.PortalException;
475:
476: public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
477: long userId, long messageId, java.lang.String subject,
478: java.lang.String body)
479: throws com.liferay.portal.SystemException,
480: com.liferay.portal.PortalException;
481:
482: public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
483: long userId, long messageId, java.lang.String subject,
484: java.lang.String body, java.util.List files,
485: double priority, java.lang.String[] tagsEntries,
486: javax.portlet.PortletPreferences prefs,
487: com.liferay.portal.theme.ThemeDisplay themeDisplay)
488: throws com.liferay.portal.SystemException,
489: com.liferay.portal.PortalException;
490:
491: public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
492: long messageId, java.util.Date createDate,
493: java.util.Date modifiedDate)
494: throws com.liferay.portal.SystemException,
495: com.liferay.portal.PortalException;
496:
497: public com.liferay.portlet.messageboards.model.MBMessage updateMessage(
498: long messageId, java.lang.String body)
499: throws com.liferay.portal.SystemException,
500: com.liferay.portal.PortalException;
501:
502: public void updateTagsAsset(long userId,
503: com.liferay.portlet.messageboards.model.MBMessage message,
504: java.lang.String[] tagsEntries)
505: throws com.liferay.portal.SystemException,
506: com.liferay.portal.PortalException;
507: }
|