Liferay 7.0-ce-m3

com.liferay.portlet.shopping.service
Interface ShoppingCategoryService

All Superinterfaces:
BaseService
All Known Implementing Classes:
ShoppingCategoryServiceWrapper

@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ShoppingCategoryService
extends BaseService

Provides the remote service interface for ShoppingCategory. 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)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 ShoppingCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
 

Method Detail

addCategory

ShoppingCategory addCategory(long parentCategoryId,
                             String name,
                             String description,
                             ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

deleteCategory

void deleteCategory(long categoryId)
                    throws PortalException
Throws:
PortalException

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<ShoppingCategory> getCategories(long groupId)

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<ShoppingCategory> getCategories(long groupId,
                                                                              long parentCategoryId,
                                                                              int start,
                                                                              int end)

getCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCategoriesCount(long groupId,
                                                                long parentCategoryId)

getCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory getCategory(long categoryId)
                             throws PortalException
Throws:
PortalException

getSubcategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void getSubcategoryIds(List<Long> categoryIds,
                                                                long groupId,
                                                                long categoryId)

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

updateCategory

ShoppingCategory updateCategory(long categoryId,
                                long parentCategoryId,
                                String name,
                                String description,
                                boolean mergeWithParentCategory,
                                ServiceContext serviceContext)
                                throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m3