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.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface ShoppingCategoryService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
063 long parentCategoryId, java.lang.String name,
064 java.lang.String description,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public void deleteCategory(long categoryId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
075 long groupId)
076 throws com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
080 long groupId, long parentCategoryId, int start, int end)
081 throws com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public int getCategoriesCount(long groupId, long parentCategoryId)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
089 long categoryId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
095 long groupId, long categoryId)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
099 long categoryId, long parentCategoryId, java.lang.String name,
100 java.lang.String description, boolean mergeWithParentCategory,
101 com.liferay.portal.service.ServiceContext serviceContext)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104 }