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 MBCategoryLocalService {
57 public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
58 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
62 long categoryId);
63
64 public void deleteMBCategory(long categoryId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteMBCategory(
69 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
82 long categoryId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getMBCategoriesCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
94 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
98 long userId, long plid, long parentCategoryId, java.lang.String name,
99 java.lang.String description, boolean addCommunityPermissions,
100 boolean addGuestPermissions)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
105 java.lang.String uuid, long userId, long plid, long parentCategoryId,
106 java.lang.String name, java.lang.String description,
107 boolean addCommunityPermissions, boolean addGuestPermissions)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
112 long userId, long plid, long parentCategoryId, java.lang.String name,
113 java.lang.String description, java.lang.String[] communityPermissions,
114 java.lang.String[] guestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
119 java.lang.String uuid, long userId, long plid, long parentCategoryId,
120 java.lang.String name, java.lang.String description,
121 java.lang.Boolean addCommunityPermissions,
122 java.lang.Boolean addGuestPermissions,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public void addCategoryResources(long categoryId,
129 boolean addCommunityPermissions, boolean addGuestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void addCategoryResources(
134 com.liferay.portlet.messageboards.model.MBCategory category,
135 boolean addCommunityPermissions, boolean addGuestPermissions)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException;
138
139 public void addCategoryResources(long categoryId,
140 java.lang.String[] communityPermissions,
141 java.lang.String[] guestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public void addCategoryResources(
146 com.liferay.portlet.messageboards.model.MBCategory category,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public void deleteCategories(long groupId)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void deleteCategory(long categoryId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deleteCategory(
161 com.liferay.portlet.messageboards.model.MBCategory category)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
167 long groupId, long parentCategoryId)
168 throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
172 long groupId, long parentCategoryId, int start, int end)
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public int getCategoriesCount(long groupId)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getCategoriesCount(long groupId, long parentCategoryId)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
185 long categoryId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public void getSubcategoryIds(java.util.List<Long> categoryIds,
191 long groupId, long categoryId)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
196 long groupId, long userId, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public int getSubscribedCategoriesCount(long groupId, long userId)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
205 throws com.liferay.portal.SystemException;
206
207 public void reIndex(java.lang.String[] ids)
208 throws com.liferay.portal.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portal.kernel.search.Hits search(long companyId,
212 long groupId, long[] categoryIds, long threadId,
213 java.lang.String keywords, int start, int end)
214 throws com.liferay.portal.SystemException;
215
216 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
217 long categoryId, long parentCategoryId, java.lang.String name,
218 java.lang.String description, boolean mergeWithParentCategory)
219 throws com.liferay.portal.PortalException,
220 com.liferay.portal.SystemException;
221
222 public void subscribeCategory(long userId, long categoryId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException;
225
226 public void unsubscribeCategory(long userId, long categoryId)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException;
229 }