1
19
20 package com.liferay.portlet.messageboards.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface MBCategoryService {
54 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
55 long plid, long parentCategoryId, java.lang.String name,
56 java.lang.String description, boolean addCommunityPermissions,
57 boolean addGuestPermissions)
58 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
62 long plid, long parentCategoryId, java.lang.String name,
63 java.lang.String description, java.lang.String[] communityPermissions,
64 java.lang.String[] guestPermissions)
65 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException;
67
68 public void deleteCategory(long categoryId)
69 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
74 long categoryId)
75 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
80 long groupId, long parentCategoryId, int start, int end)
81 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getCategoriesCount(long groupId, long parentCategoryId)
86 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
87
88 public void subscribeCategory(long categoryId)
89 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 public void unsubscribeCategory(long categoryId)
93 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
97 long categoryId, long parentCategoryId, java.lang.String name,
98 java.lang.String description, boolean mergeWithParentCategory)
99 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException;
101 }