1
14
15 package com.liferay.portlet.shopping.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 ShoppingCategoryLocalService {
50 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
51 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
55 long categoryId);
56
57 public void deleteShoppingCategory(long categoryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteShoppingCategory(
62 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
75 long categoryId)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
81 int start, int end)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getShoppingCategoriesCount()
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
89 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
93 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
94 boolean merge)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
98 long userId, long parentCategoryId, java.lang.String name,
99 java.lang.String description,
100 com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 public void addCategoryResources(long categoryId,
105 boolean addCommunityPermissions, boolean addGuestPermissions)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 public void addCategoryResources(long categoryId,
110 java.lang.String[] communityPermissions,
111 java.lang.String[] guestPermissions)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void addCategoryResources(
116 com.liferay.portlet.shopping.model.ShoppingCategory category,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addCategoryResources(
122 com.liferay.portlet.shopping.model.ShoppingCategory category,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 public void deleteCategories(long groupId)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void deleteCategory(long categoryId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public void deleteCategory(
137 com.liferay.portlet.shopping.model.ShoppingCategory category)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
143 long groupId)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
148 long groupId, long parentCategoryId, int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public int getCategoriesCount(long groupId, long parentCategoryId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
157 long categoryId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
163 long categoryId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
169 com.liferay.portlet.shopping.model.ShoppingCategory category)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
175 com.liferay.portlet.shopping.model.ShoppingCategory category)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public void getSubcategoryIds(java.util.List<Long> categoryIds,
181 long groupId, long categoryId)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
185 long categoryId, long parentCategoryId, java.lang.String name,
186 java.lang.String description, boolean mergeWithParentCategory,
187 com.liferay.portal.service.ServiceContext serviceContext)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException;
190 }