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.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.security.ac.AccessControlled;
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 com.liferay.portal.kernel.exception.PortalException;
055
056 public void deleteCategory(long categoryId)
057 throws com.liferay.portal.kernel.exception.PortalException;
058
059
064 public java.lang.String getBeanIdentifier();
065
066 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
068 long groupId);
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
072 long groupId, long parentCategoryId, int start, int end);
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public int getCategoriesCount(long groupId, long parentCategoryId);
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
079 long categoryId)
080 throws com.liferay.portal.kernel.exception.PortalException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
084 long groupId, long categoryId);
085
086
091 public void setBeanIdentifier(java.lang.String beanIdentifier);
092
093 public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
094 long categoryId, long parentCategoryId, java.lang.String name,
095 java.lang.String description, boolean mergeWithParentCategory,
096 com.liferay.portal.service.ServiceContext serviceContext)
097 throws com.liferay.portal.kernel.exception.PortalException;
098 }