com.liferay.portlet.shopping.service
Interface ShoppingCategoryLocalService


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

Method Summary
 ShoppingCategory addCategory(long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 ShoppingCategory addCategory(long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 ShoppingCategory addCategory(long userId, long plid, long parentCategoryId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 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)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(ShoppingCategory category)
           
 void deleteShoppingCategory(long categoryId)
           
 void deleteShoppingCategory(ShoppingCategory shoppingCategory)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 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)
           
 ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory)
           
 

Method Detail

addShoppingCategory

ShoppingCategory addShoppingCategory(ShoppingCategory shoppingCategory)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteShoppingCategory

void deleteShoppingCategory(long categoryId)
                            throws com.liferay.portal.SystemException,
                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteShoppingCategory

void deleteShoppingCategory(ShoppingCategory shoppingCategory)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingCategory

ShoppingCategory getShoppingCategory(long categoryId)
                                     throws com.liferay.portal.SystemException,
                                            com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getShoppingCategories

java.util.List<ShoppingCategory> getShoppingCategories(int start,
                                                       int end)
                                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingCategoriesCount

int getShoppingCategoriesCount()
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateShoppingCategory

ShoppingCategory updateShoppingCategory(ShoppingCategory shoppingCategory)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addCategory

ShoppingCategory addCategory(long userId,
                             long plid,
                             long parentCategoryId,
                             java.lang.String name,
                             java.lang.String description,
                             boolean addCommunityPermissions,
                             boolean addGuestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategory

ShoppingCategory addCategory(long userId,
                             long plid,
                             long parentCategoryId,
                             java.lang.String name,
                             java.lang.String description,
                             java.lang.String[] communityPermissions,
                             java.lang.String[] guestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategory

ShoppingCategory addCategory(long userId,
                             long plid,
                             long parentCategoryId,
                             java.lang.String name,
                             java.lang.String description,
                             java.lang.Boolean addCommunityPermissions,
                             java.lang.Boolean addGuestPermissions,
                             java.lang.String[] communityPermissions,
                             java.lang.String[] guestPermissions)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

void addCategoryResources(long categoryId,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

void addCategoryResources(ShoppingCategory category,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addCategoryResources

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

addCategoryResources

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

deleteCategories

void deleteCategories(long groupId)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategory

void deleteCategory(long categoryId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteCategory

void deleteCategory(ShoppingCategory category)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCategories

java.util.List<ShoppingCategory> getCategories(long groupId)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategories

java.util.List<ShoppingCategory> getCategories(long groupId,
                                               long parentCategoryId,
                                               int start,
                                               int end)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategoriesCount

int getCategoriesCount(long groupId,
                       long parentCategoryId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCategory

ShoppingCategory getCategory(long categoryId)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getParentCategory

ShoppingCategory getParentCategory(ShoppingCategory category)
                                   throws com.liferay.portal.PortalException,
                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getParentCategories

java.util.List<ShoppingCategory> getParentCategories(long categoryId)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getParentCategories

java.util.List<ShoppingCategory> getParentCategories(ShoppingCategory category)
                                                     throws com.liferay.portal.PortalException,
                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getSubcategoryIds

void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
                       long groupId,
                       long categoryId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCategory

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