com.liferay.portlet.shopping.service
Interface ShoppingCategoryService
- All Known Implementing Classes:
- ShoppingCategoryServiceWrapper
@JSONWebService
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface ShoppingCategoryService
The interface for the shopping category remote service.
This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
- See Also:
ShoppingCategoryServiceUtil
,
com.liferay.portlet.shopping.service.base.ShoppingCategoryServiceBaseImpl
,
com.liferay.portlet.shopping.service.impl.ShoppingCategoryServiceImpl
Method Summary |
ShoppingCategory |
addCategory(long parentCategoryId,
String name,
String description,
ServiceContext serviceContext)
|
void |
deleteCategory(long categoryId)
|
List<ShoppingCategory> |
getCategories(long groupId)
|
List<ShoppingCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end)
|
int |
getCategoriesCount(long groupId,
long parentCategoryId)
|
ShoppingCategory |
getCategory(long categoryId)
|
void |
getSubcategoryIds(List<Long> categoryIds,
long groupId,
long categoryId)
|
ShoppingCategory |
updateCategory(long categoryId,
long parentCategoryId,
String name,
String description,
boolean mergeWithParentCategory,
ServiceContext serviceContext)
|
addCategory
ShoppingCategory addCategory(long parentCategoryId,
String name,
String description,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
void deleteCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<ShoppingCategory> getCategories(long groupId)
throws SystemException
- Throws:
SystemException
getCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<ShoppingCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCategoriesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCategoriesCount(long groupId,
long parentCategoryId)
throws SystemException
- Throws:
SystemException
getCategory
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCategory getCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getSubcategoryIds
@Transactional(propagation=SUPPORTS,
readOnly=true)
void getSubcategoryIds(List<Long> categoryIds,
long groupId,
long categoryId)
throws SystemException
- Throws:
SystemException
updateCategory
ShoppingCategory updateCategory(long categoryId,
long parentCategoryId,
String name,
String description,
boolean mergeWithParentCategory,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException