001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ShoppingCategoryLocalService {
043
050 public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
051 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
061 long categoryId);
062
063
070 public void deleteShoppingCategory(long categoryId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteShoppingCategory(
081 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
156 long categoryId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getShoppingCategoriesCount()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187
194 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
195 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
206 public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
207 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
208 boolean merge)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
212 long userId, long parentCategoryId, java.lang.String name,
213 java.lang.String description,
214 com.liferay.portal.service.ServiceContext serviceContext)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException;
217
218 public void addCategoryResources(long categoryId,
219 boolean addCommunityPermissions, boolean addGuestPermissions)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public void addCategoryResources(long categoryId,
224 java.lang.String[] communityPermissions,
225 java.lang.String[] guestPermissions)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException;
228
229 public void addCategoryResources(
230 com.liferay.portlet.shopping.model.ShoppingCategory category,
231 boolean addCommunityPermissions, boolean addGuestPermissions)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public void addCategoryResources(
236 com.liferay.portlet.shopping.model.ShoppingCategory category,
237 java.lang.String[] communityPermissions,
238 java.lang.String[] guestPermissions)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public void deleteCategories(long groupId)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void deleteCategory(long categoryId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void deleteCategory(
251 com.liferay.portlet.shopping.model.ShoppingCategory category)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
257 long groupId)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
262 long groupId, long parentCategoryId, int start, int end)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public int getCategoriesCount(long groupId, long parentCategoryId)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
271 long categoryId)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
277 long categoryId)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
283 com.liferay.portlet.shopping.model.ShoppingCategory category)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
289 com.liferay.portlet.shopping.model.ShoppingCategory category)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
295 long groupId, long categoryId)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
299 long categoryId, long parentCategoryId, java.lang.String name,
300 java.lang.String description, boolean mergeWithParentCategory,
301 com.liferay.portal.service.ServiceContext serviceContext)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304 }