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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
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
238 public java.lang.String getBeanIdentifier();
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
242 long groupId);
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
246 long groupId, long excludedCategoryId, long parentCategoryId,
247 int status, int start, int end);
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
251 long groupId, long[] excludedCategoryIds, long[] parentCategoryIds,
252 int status, int start, int end);
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
256 long groupId, long parentCategoryId, int start, int end);
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
260 long groupId, long parentCategoryId, int status, int start, int end);
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
264 long groupId, long[] parentCategoryIds, int start, int end);
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
268 long groupId, long[] parentCategoryIds, int status, int start, int end);
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
272 long groupId, int status);
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<java.lang.Object> getCategoriesAndThreads(
276 long groupId, long categoryId);
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public int getCategoriesCount(long groupId);
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getCategoriesCount(long groupId, long excludedCategoryId,
283 long parentCategoryId, int status);
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public int getCategoriesCount(long groupId, long[] excludedCategoryIds,
287 long[] parentCategoryIds, int status);
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int getCategoriesCount(long groupId, long parentCategoryId);
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public int getCategoriesCount(long groupId, long parentCategoryId,
294 int status);
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public int getCategoriesCount(long groupId, long[] parentCategoryIds);
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public int getCategoriesCount(long groupId, long[] parentCategoryIds,
301 int status);
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public int getCategoriesCount(long groupId, int status);
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
308 long categoryId) throws PortalException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
312 long companyId, int start, int end);
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public int getCompanyCategoriesCount(long companyId);
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
319 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
320
321
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
334 int start, int end);
335
336
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
345 java.lang.String uuid, long companyId);
346
347
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategoriesByUuidAndCompanyId(
359 java.lang.String uuid, long companyId, int start, int end,
360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.messageboards.model.MBCategory> orderByComparator);
361
362
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public int getMBCategoriesCount();
369
370
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
379 long categoryId) throws PortalException;
380
381
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public com.liferay.portlet.messageboards.model.MBCategory getMBCategoryByUuidAndGroupId(
391 java.lang.String uuid, long groupId) throws PortalException;
392
393 @Override
394 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395 public com.liferay.portal.model.PersistedModel getPersistedModel(
396 java.io.Serializable primaryKeyObj) throws PortalException;
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public java.util.List<java.lang.Long> getSubcategoryIds(
400 java.util.List<java.lang.Long> categoryIds, long groupId,
401 long categoryId);
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
405 long groupId, long userId, int start, int end);
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public int getSubscribedCategoriesCount(long groupId, long userId);
409
410 public void moveCategoriesToTrash(long groupId, long userId)
411 throws PortalException;
412
413 public com.liferay.portlet.messageboards.model.MBCategory moveCategory(
414 long categoryId, long parentCategoryId, boolean mergeWithParentCategory)
415 throws PortalException;
416
417 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryFromTrash(
418 long userId, long categoryId, long newCategoryId)
419 throws PortalException;
420
421 public com.liferay.portlet.messageboards.model.MBCategory moveCategoryToTrash(
422 long userId, long categoryId) throws PortalException;
423
424 public void restoreCategoryFromTrash(long userId, long categoryId)
425 throws PortalException;
426
427
432 public void setBeanIdentifier(java.lang.String beanIdentifier);
433
434 public void subscribeCategory(long userId, long groupId, long categoryId)
435 throws PortalException;
436
437 public void unsubscribeCategory(long userId, long groupId, long categoryId)
438 throws PortalException;
439
440 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
441 long categoryId, long parentCategoryId, java.lang.String name,
442 java.lang.String description, java.lang.String displayStyle,
443 java.lang.String emailAddress, java.lang.String inProtocol,
444 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
445 java.lang.String inUserName, java.lang.String inPassword,
446 int inReadInterval, java.lang.String outEmailAddress,
447 boolean outCustom, java.lang.String outServerName, int outServerPort,
448 boolean outUseSSL, java.lang.String outUserName,
449 java.lang.String outPassword, boolean allowAnonymous,
450 boolean mailingListActive, boolean mergeWithParentCategory,
451 com.liferay.portal.service.ServiceContext serviceContext)
452 throws PortalException;
453
454
460 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
461 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
462 com.liferay.portlet.messageboards.model.MBCategory mbCategory);
463
464 public com.liferay.portlet.messageboards.model.MBCategory updateStatus(
465 long userId, long categoryId, int status) throws PortalException;
466 }