1
14
15 package com.liferay.portlet.messageboards.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface MBCategoryLocalService {
50 public com.liferay.portlet.messageboards.model.MBCategory addMBCategory(
51 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.messageboards.model.MBCategory createMBCategory(
55 long categoryId);
56
57 public void deleteMBCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteMBCategory(
62 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.messageboards.model.MBCategory getMBCategory(
85 long categoryId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getMBCategories(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getMBCategoriesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
99 com.liferay.portlet.messageboards.model.MBCategory mbCategory)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.messageboards.model.MBCategory updateMBCategory(
103 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
108 long userId, long parentCategoryId, java.lang.String name,
109 java.lang.String description, java.lang.String emailAddress,
110 java.lang.String inProtocol, java.lang.String inServerName,
111 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
112 java.lang.String inPassword, int inReadInterval,
113 java.lang.String outEmailAddress, boolean outCustom,
114 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
115 java.lang.String outUserName, java.lang.String outPassword,
116 boolean mailingListActive,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
122 java.lang.String uuid, long userId, long parentCategoryId,
123 java.lang.String name, java.lang.String description,
124 java.lang.String emailAddress, java.lang.String inProtocol,
125 java.lang.String inServerName, int inServerPort, boolean inUseSSL,
126 java.lang.String inUserName, java.lang.String inPassword,
127 int inReadInterval, java.lang.String outEmailAddress,
128 boolean outCustom, java.lang.String outServerName, int outServerPort,
129 boolean outUseSSL, java.lang.String outUserName,
130 java.lang.String outPassword, boolean mailingListActive,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public void addCategoryResources(long categoryId,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void addCategoryResources(long categoryId,
141 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void addCategoryResources(
147 com.liferay.portlet.messageboards.model.MBCategory category,
148 boolean addCommunityPermissions, boolean addGuestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public void addCategoryResources(
153 com.liferay.portlet.messageboards.model.MBCategory category,
154 java.lang.String[] communityPermissions,
155 java.lang.String[] guestPermissions)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 public void deleteCategories(long groupId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public void deleteCategory(long categoryId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 public void deleteCategory(
168 com.liferay.portlet.messageboards.model.MBCategory category)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
174 long groupId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
179 long groupId, long parentCategoryId)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
184 long groupId, long parentCategoryId, int start, int end)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int getCategoriesCount(long groupId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getCategoriesCount(long groupId, long parentCategoryId)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
197 long categoryId)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCompanyCategories(
203 long companyId, int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public int getCompanyCategoriesCount(long companyId)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public void getSubcategoryIds(java.util.List<Long> categoryIds,
212 long groupId, long categoryId)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
217 long groupId, long userId, int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getSubscribedCategoriesCount(long groupId, long userId)
222 throws com.liferay.portal.kernel.exception.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public com.liferay.portlet.messageboards.model.MBCategory getSystemCategory()
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228 public void subscribeCategory(long userId, long groupId, long categoryId)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 public void unsubscribeCategory(long userId, long groupId, long categoryId)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException;
235
236 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
237 long categoryId, long parentCategoryId, java.lang.String name,
238 java.lang.String description, java.lang.String emailAddress,
239 java.lang.String inProtocol, java.lang.String inServerName,
240 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
241 java.lang.String inPassword, int inReadInterval,
242 java.lang.String outEmailAddress, boolean outCustom,
243 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
244 java.lang.String outUserName, java.lang.String outPassword,
245 boolean mailingListActive, boolean mergeWithParentCategory,
246 com.liferay.portal.service.ServiceContext serviceContext)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249 }