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