001
014
015 package com.liferay.portlet.shopping.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface ShoppingCategoryService extends BaseService {
045
050 public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
051 long parentCategoryId, java.lang.String name,
052 java.lang.String description,
053 com.liferay.portal.service.ServiceContext serviceContext)
054 throws PortalException;
055
056 public void deleteCategory(long categoryId) throws PortalException;
057
058
063 public java.lang.String getBeanIdentifier();
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
067 long groupId);
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
071 long groupId, long parentCategoryId, int start, int end);
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public int getCategoriesCount(long groupId, long parentCategoryId);
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
078 long categoryId) throws PortalException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
082 long groupId, long categoryId);
083
084
089 public void setBeanIdentifier(java.lang.String beanIdentifier);
090
091 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
092 long categoryId, long parentCategoryId, java.lang.String name,
093 java.lang.String description, boolean mergeWithParentCategory,
094 com.liferay.portal.service.ServiceContext serviceContext)
095 throws PortalException;
096 }