1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ShoppingCategoryService {
50 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
51 long plid, long parentCategoryId, java.lang.String name,
52 java.lang.String description, boolean addCommunityPermissions,
53 boolean addGuestPermissions)
54 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException;
56
57 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
58 long plid, long parentCategoryId, java.lang.String name,
59 java.lang.String description, java.lang.String[] communityPermissions,
60 java.lang.String[] guestPermissions)
61 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException;
63
64 public void deleteCategory(long categoryId)
65 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
66 com.liferay.portal.SystemException;
67
68 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
69 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
70 long categoryId)
71 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
75 long categoryId, long parentCategoryId, java.lang.String name,
76 java.lang.String description, boolean mergeWithParentCategory)
77 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException;
79 }