1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
51 public interface MBThreadLocalService {
52 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
53 com.liferay.portlet.messageboards.model.MBThread mbThread)
54 throws com.liferay.portal.SystemException;
55
56 public void deleteMBThread(long threadId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException;
59
60 public void deleteMBThread(
61 com.liferay.portlet.messageboards.model.MBThread mbThread)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> dynamicQuery(
66 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> dynamicQuery(
70 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71 int begin, int end) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
74 com.liferay.portlet.messageboards.model.MBThread mbThread)
75 throws com.liferay.portal.SystemException;
76
77 public void deleteThread(long threadId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portal.PortalException;
80
81 public void deleteThread(
82 com.liferay.portlet.messageboards.model.MBThread thread)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 public void deleteThreads(long categoryId)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portal.PortalException;
89
90 public int getCategoriesThreadsCount(java.util.List<Long> categoryIds)
91 throws com.liferay.portal.SystemException;
92
93 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
94 long groupId, int begin, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
98 long groupId, long userId, int begin, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
102 long groupId, long userId, boolean subscribed, int begin, int end)
103 throws com.liferay.portal.SystemException;
104
105 public int getGroupThreadsCount(long groupId)
106 throws com.liferay.portal.SystemException;
107
108 public int getGroupThreadsCount(long groupId, long userId)
109 throws com.liferay.portal.SystemException;
110
111 public int getGroupThreadsCount(long groupId, long userId,
112 boolean subscribed) throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.messageboards.model.MBThread getThread(
115 long threadId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portal.PortalException;
118
119 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
120 long categoryId, int begin, int end)
121 throws com.liferay.portal.SystemException;
122
123 public int getThreadsCount(long categoryId)
124 throws com.liferay.portal.SystemException;
125
126 public boolean hasReadThread(long userId, long threadId)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portal.PortalException;
129
130 public com.liferay.portlet.messageboards.model.MBThread moveThread(
131 long categoryId, long threadId)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portal.PortalException;
134
135 public com.liferay.portlet.messageboards.model.MBThread splitThread(
136 long messageId, javax.portlet.PortletPreferences prefs,
137 com.liferay.portal.theme.ThemeDisplay themeDisplay)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portal.PortalException;
140
141 public com.liferay.portlet.messageboards.model.MBThread updateThread(
142 long threadId, int viewCount)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portal.PortalException;
145 }