001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface ShoppingCategoryLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
055 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
065 long categoryId);
066
067
075 public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
076 long categoryId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
087 public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
088 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092
093
100 @SuppressWarnings("rawtypes")
101 public java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105
118 @SuppressWarnings("rawtypes")
119 public java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException;
122
123
137 @SuppressWarnings("rawtypes")
138 public java.util.List dynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
151 public long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 public long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165 com.liferay.portal.kernel.dao.orm.Projection projection)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
170 long categoryId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
183 long categoryId)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException;
186
187 @Override
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portal.model.PersistedModel getPersistedModel(
190 java.io.Serializable primaryKeyObj)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public int getShoppingCategoriesCount()
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221
228 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
229 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232
237 public java.lang.String getBeanIdentifier();
238
239
244 public void setBeanIdentifier(java.lang.String beanIdentifier);
245
246 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
247 long userId, long parentCategoryId, java.lang.String name,
248 java.lang.String description,
249 com.liferay.portal.service.ServiceContext serviceContext)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 public void addCategoryResources(long categoryId,
254 boolean addGroupPermissions, boolean addGuestPermissions)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258 public void addCategoryResources(long categoryId,
259 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public void addCategoryResources(
264 com.liferay.portlet.shopping.model.ShoppingCategory category,
265 boolean addGroupPermissions, boolean addGuestPermissions)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 public void addCategoryResources(
270 com.liferay.portlet.shopping.model.ShoppingCategory category,
271 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 public void deleteCategories(long groupId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public void deleteCategory(long categoryId)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public void deleteCategory(
284 com.liferay.portlet.shopping.model.ShoppingCategory category)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
290 long groupId)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
295 long groupId, long parentCategoryId, int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public int getCategoriesCount(long groupId, long parentCategoryId)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
304 long categoryId)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
310 long categoryId)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
316 com.liferay.portlet.shopping.model.ShoppingCategory category)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
322 com.liferay.portlet.shopping.model.ShoppingCategory category)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
328 long groupId, long categoryId)
329 throws com.liferay.portal.kernel.exception.SystemException;
330
331 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
332 long categoryId, long parentCategoryId, java.lang.String name,
333 java.lang.String description, boolean mergeWithParentCategory,
334 com.liferay.portal.service.ServiceContext serviceContext)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException;
337 }