com.liferay.portlet.shopping.service
Interface ShoppingCategoryLocalService

All Known Implementing Classes:
ShoppingCategoryLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface ShoppingCategoryLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.shopping.service.impl.ShoppingCategoryLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCategoryLocalServiceUtil
Generated:

Method Summary
 ShoppingCategory addCategory(long userId, long parentCategoryId, java.lang.String name, java.lang.String description, ServiceContext serviceContext)
           
 void addCategoryResources(long categoryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addCategoryResources(ShoppingCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(ShoppingCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 ShoppingCategory addShoppingCategory(ShoppingCategory shoppingCategory)
           
 ShoppingCategory createShoppingCategory(long categoryId)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(ShoppingCategory category)
           
 void deleteShoppingCategory(long categoryId)
           
 void deleteShoppingCategory(ShoppingCategory shoppingCategory)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 java.util.List<ShoppingCategory> getCategories(long groupId)
           
 java.util.List<ShoppingCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
 int getCategoriesCount(long groupId, long parentCategoryId)
           
 ShoppingCategory getCategory(long categoryId)
           
 java.util.List<ShoppingCategory> getParentCategories(long categoryId)
           
 java.util.List<ShoppingCategory> getParentCategories(ShoppingCategory category)
           
 ShoppingCategory getParentCategory(ShoppingCategory category)
           
 java.util.List<ShoppingCategory> getShoppingCategories(int start, int end)
           
 int getShoppingCategoriesCount()
           
 ShoppingCategory getShoppingCategory(long categoryId)
           
 void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds, long groupId, long categoryId)
           
 ShoppingCategory updateCategory(long categoryId, long parentCategoryId, java.lang.String name, java.lang.String description, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
 ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory)
           
 ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory, boolean merge)
           
 

Method Detail

addShoppingCategory

ShoppingCategory addShoppingCategory(ShoppingCategory shoppingCategory)
                                     throws SystemException
Throws:
SystemException

createShoppingCategory

ShoppingCategory createShoppingCategory(long categoryId)

deleteShoppingCategory

void deleteShoppingCategory(long categoryId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

deleteShoppingCategory

void deleteShoppingCategory(ShoppingCategory shoppingCategory)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getShoppingCategory

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

getShoppingCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> getShoppingCategories(int start,
                                                                                                int end)
                                                       throws SystemException
Throws:
SystemException

getShoppingCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getShoppingCategoriesCount()
                               throws SystemException
Throws:
SystemException

updateShoppingCategory

ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory)
                                        throws SystemException
Throws:
SystemException

updateShoppingCategory

ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory,
                                        boolean merge)
                                        throws SystemException
Throws:
SystemException

addCategory

ShoppingCategory addCategory(long userId,
                             long parentCategoryId,
                             java.lang.String name,
                             java.lang.String description,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(long categoryId,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(long categoryId,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(ShoppingCategory category,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(ShoppingCategory category,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteCategories

void deleteCategories(long groupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

deleteCategory

void deleteCategory(long categoryId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteCategory

void deleteCategory(ShoppingCategory category)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> getCategories(long groupId)
                                               throws SystemException
Throws:
SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.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

getParentCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> getParentCategories(long categoryId)
                                                     throws PortalException,
                                                            SystemException
Throws:
PortalException
SystemException

getParentCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingCategory> getParentCategories(ShoppingCategory category)
                                                     throws PortalException,
                                                            SystemException
Throws:
PortalException
SystemException

getParentCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingCategory getParentCategory(ShoppingCategory category)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getSubcategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
                                                                long groupId,
                                                                long categoryId)
                       throws SystemException
Throws:
SystemException

updateCategory

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