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 MBCategoryService {
50 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
51 long plid, long parentCategoryId, java.lang.String name,
52 java.lang.String description, boolean addCommunityPermissions,
53 boolean addGuestPermissions)
54 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException;
56
57 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
58 long plid, long parentCategoryId, java.lang.String name,
59 java.lang.String description, java.lang.String[] communityPermissions,
60 java.lang.String[] guestPermissions)
61 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException;
63
64 public void deleteCategory(long categoryId)
65 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
70 long groupId, long parentCategoryId, int start, int end)
71 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
75 public int getCategoriesCount(long groupId, long parentCategoryId)
76 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
80 long categoryId)
81 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException;
83
84 public void subscribeCategory(long categoryId)
85 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 public void unsubscribeCategory(long categoryId)
89 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
93 long categoryId, long parentCategoryId, java.lang.String name,
94 java.lang.String description, boolean mergeWithParentCategory)
95 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97 }