001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface MBCategoryLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
052 long userId, long parentCategoryId, java.lang.String name,
053 java.lang.String description, java.lang.String displayStyle,
054 java.lang.String emailAddress, java.lang.String inProtocol,
055 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
056 java.lang.String inUserName, java.lang.String inPassword,
057 int inReadInterval, java.lang.String outEmailAddress,
058 boolean outCustom, java.lang.String outServerName, int outServerPort,
059 boolean outUseSSL, java.lang.String outUserName,
060 java.lang.String outPassword, boolean allowAnonymous,
061 boolean mailingListActive,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws PortalException;
064
065 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
066 long userId, long parentCategoryId, java.lang.String name,
067 java.lang.String description,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws PortalException;
070
071 public void addCategoryResources(
072 com.liferay.portlet.messageboards.model.MBCategory category,
073 boolean addGroupPermissions, boolean addGuestPermissions)
074 throws PortalException;
075
076 public void addCategoryResources(
077 com.liferay.portlet.messageboards.model.MBCategory category,
078 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
079 throws PortalException;
080
081 public void addCategoryResources(long categoryId,
082 boolean addGroupPermissions, boolean addGuestPermissions)
083 throws PortalException;
084
085 public void addCategoryResources(long categoryId,
086 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
087 throws PortalException;
088
089
095 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
096 public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
097 com.liferay.portlet.messageboards.model.MBCategory mbCategory);
098
099
105 public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
106 long categoryId);
107
108 public void deleteCategories(long groupId) throws PortalException;
109
110 public void deleteCategory(
111 com.liferay.portlet.messageboards.model.MBCategory category)
112 throws PortalException;
113
114 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
115 public void deleteCategory(
116 com.liferay.portlet.messageboards.model.MBCategory category,
117 boolean includeTrashedEntries) throws PortalException;
118
119 public void deleteCategory(long categoryId) throws PortalException;
120
121
128 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
129 public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
130 long categoryId) throws PortalException;
131
132
138 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
139 public com.liferay.portlet.messageboards.model.MBCategory deleteMBCategory(
140 com.liferay.portlet.messageboards.model.MBCategory mbCategory);
141
142
145 @Override
146 public com.liferay.portal.model.PersistedModel deletePersistedModel(
147 com.liferay.portal.model.PersistedModel persistedModel)
148 throws PortalException;
149
150 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
151
152
158 public <T> java.util.List<T> dynamicQuery(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
160
161
173 public <T> java.util.List<T> dynamicQuery(
174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175 int end);
176
177
190 public <T> java.util.List<T> dynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192 int end,
193 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
194
195
201 public long dynamicQueryCount(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
203
204
211 public long dynamicQueryCount(
212 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
213 com.liferay.portal.kernel.dao.orm.Projection projection);
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategory(
217 long categoryId);
218
219
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.messageboards.model.MBCategory fetchMBCategoryByUuidAndGroupId(
228 java.lang.String uuid, long groupId);
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
235 long groupId);
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
239 long groupId, long excludedCategoryId, long parentCategoryId,
240 int status, int start, int end);
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
244 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
245 int status, int start, int end);
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
249 long groupId, long parentCategoryId, int start, int end);
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
253 long groupId, long parentCategoryId, int status, int start, int end);
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
257 long groupId, long[] parentCategoryIds, int start, int end);
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
261 long groupId, long[] parentCategoryIds, int status, int start, int end);
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
265 long groupId, int status);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<java.lang.Object> getCategoriesAndThreads(
269 long groupId, long categoryId);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<java.lang.Object> getCategoriesAndThreads(
273 long groupId, long categoryId, int status);
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<java.lang.Object> getCategoriesAndThreads(
277 long groupId, long categoryId, int status, int start, int end);
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getCategoriesAndThreadsCount(long groupId, long categoryId);
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getCategoriesAndThreadsCount(long groupId, long categoryId,
284 int status);
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public int getCategoriesCount(long groupId);
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int getCategoriesCount(long groupId, long excludedCategoryId,
291 long parentCategoryId, int status);
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public int getCategoriesCount(long groupId, long[] excludedCategoryIds,
295 long[] parentCategoryIds, int status);
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public int getCategoriesCount(long groupId, long parentCategoryId);
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public int getCategoriesCount(long groupId, long parentCategoryId,
302 int status);
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public int getCategoriesCount(long groupId, long[] parentCategoryIds);
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public int getCategoriesCount(long groupId, long[] parentCategoryIds,
309 int status);
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public int getCategoriesCount(long groupId, int status);
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
316 long categoryId) throws PortalException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
320 long companyId, int start, int end);
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public int getCompanyCategoriesCount(long companyId);
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
327 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
331
332
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
345 int start, int end);
346
347
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
356 java.lang.String uuid, long companyId);
357
358
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
370 java.lang.String uuid, long companyId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator);
372
373
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public int getMBCategoriesCount();
380
381
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
390 long categoryId) throws PortalException;
391
392
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
402 java.lang.String uuid, long groupId) throws PortalException;
403
404
409 public java.lang.String getOSGiServiceIdentifier();
410
411 @Override
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public com.liferay.portal.model.PersistedModel getPersistedModel(
414 java.io.Serializable primaryKeyObj) throws PortalException;
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public java.util.List<java.lang.Long> getSubcategoryIds(
418 java.util.List<java.lang.Long> categoryIds, long groupId,
419 long categoryId);
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
423 long groupId, long userId, int start, int end);
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public int getSubscribedCategoriesCount(long groupId, long userId);
427
428 public void moveCategoriesToTrash(long groupId, long userId)
429 throws PortalException;
430
431 public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
432 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
433 throws PortalException;
434
435 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
436 long userId, long categoryId, long newCategoryId)
437 throws PortalException;
438
439 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
440 long userId, long categoryId) throws PortalException;
441
442 public void restoreCategoryFromTrash(long userId, long categoryId)
443 throws PortalException;
444
445 public void subscribeCategory(long userId, long groupId, long categoryId)
446 throws PortalException;
447
448 public void unsubscribeCategory(long userId, long groupId, long categoryId)
449 throws PortalException;
450
451 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
452 long categoryId, long parentCategoryId, java.lang.String name,
453 java.lang.String description, java.lang.String displayStyle,
454 java.lang.String emailAddress, java.lang.String inProtocol,
455 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
456 java.lang.String inUserName, java.lang.String inPassword,
457 int inReadInterval, java.lang.String outEmailAddress,
458 boolean outCustom, java.lang.String outServerName, int outServerPort,
459 boolean outUseSSL, java.lang.String outUserName,
460 java.lang.String outPassword, boolean allowAnonymous,
461 boolean mailingListActive, boolean mergeWithParentCategory,
462 com.liferay.portal.service.ServiceContext serviceContext)
463 throws PortalException;
464
465
471 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
472 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
473 com.liferay.portlet.messageboards.model.MBCategory mbCategory);
474
475 public com.liferay.portlet.messageboards.model.MBCategory updateMessageCount(
476 long categoryId);
477
478 public com.liferay.portlet.messageboards.model.MBCategory updateStatistics(
479 long categoryId);
480
481 public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
482 long userId, long categoryId, int status) throws PortalException;
483
484 public com.liferay.portlet.messageboards.model.MBCategory updateThreadCount(
485 long categoryId);
486 }