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 MBCategoryLocalService {
50 public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
51 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
55 long categoryId);
56
57 public void deleteMBCategory(long categoryId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteMBCategory(
62 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
88 long categoryId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getMBCategoriesCount() throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
106 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
110 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
111 boolean merge) throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
114 long userId, long parentCategoryId, java.lang.String name,
115 java.lang.String description, java.lang.String emailAddress,
116 java.lang.String inProtocol, java.lang.String inServerName,
117 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
118 java.lang.String inPassword, int inReadInterval,
119 java.lang.String outEmailAddress, boolean outCustom,
120 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
121 java.lang.String outUserName, java.lang.String outPassword,
122 boolean mailingListActive,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
128 java.lang.String uuid, long userId, long parentCategoryId,
129 java.lang.String name, java.lang.String description,
130 java.lang.String emailAddress, java.lang.String inProtocol,
131 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
132 java.lang.String inUserName, java.lang.String inPassword,
133 int inReadInterval, java.lang.String outEmailAddress,
134 boolean outCustom, java.lang.String outServerName, int outServerPort,
135 boolean outUseSSL, java.lang.String outUserName,
136 java.lang.String outPassword, boolean mailingListActive,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void addCategoryResources(long categoryId,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public void addCategoryResources(long categoryId,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public void addCategoryResources(
153 com.liferay.portlet.messageboards.model.MBCategory category,
154 boolean addCommunityPermissions, boolean addGuestPermissions)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException;
157
158 public void addCategoryResources(
159 com.liferay.portlet.messageboards.model.MBCategory category,
160 java.lang.String[] communityPermissions,
161 java.lang.String[] guestPermissions)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException;
164
165 public void deleteCategories(long groupId)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 public void deleteCategory(long categoryId)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 public void deleteCategory(
174 com.liferay.portlet.messageboards.model.MBCategory category)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
180 long groupId) throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
184 long groupId, long parentCategoryId)
185 throws com.liferay.portal.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
189 long groupId, long parentCategoryId, int start, int end)
190 throws com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getCategoriesCount(long groupId)
194 throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public int getCategoriesCount(long groupId, long parentCategoryId)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
202 long categoryId)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
208 long groupId, long categoryId)
209 throws com.liferay.portal.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
213 long groupId, long userId, int start, int end)
214 throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int getSubscribedCategoriesCount(long groupId, long userId)
218 throws com.liferay.portal.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
222 throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public void reIndex(java.lang.String[] ids)
226 throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portal.kernel.search.Hits search(long companyId,
230 long groupId, long userId, long[] categoryIds, long threadId,
231 java.lang.String keywords, int start, int end)
232 throws com.liferay.portal.SystemException;
233
234 public void subscribeCategory(long userId, long categoryId)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException;
237
238 public void unsubscribeCategory(long userId, long categoryId)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException;
241
242 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
243 long categoryId, long parentCategoryId, java.lang.String name,
244 java.lang.String description, java.lang.String emailAddress,
245 java.lang.String inProtocol, java.lang.String inServerName,
246 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
247 java.lang.String inPassword, int inReadInterval,
248 java.lang.String outEmailAddress, boolean outCustom,
249 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
250 java.lang.String outUserName, java.lang.String outPassword,
251 boolean mailingListActive, boolean mergeWithParentCategory)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException;
254 }