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:
ShoppingCategoryLocalServiceFactory, 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<ShoppingCategory> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<ShoppingCategory> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 java.util.List<ShoppingCategory> getCategories(long groupId)
           
 java.util.List<ShoppingCategory> getCategories(long groupId, long parentCategoryId, int begin, 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)
           
 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,
                                   com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

dynamicQuery

java.util.List<ShoppingCategory> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<ShoppingCategory> dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                              int begin,
                                              int end)
                                              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.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

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.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

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.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

deleteCategories

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

deleteCategory

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

deleteCategory

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

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 begin,
                                               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.SystemException,
                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getParentCategory

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

getParentCategories

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

getParentCategories

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

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.SystemException,
                                       com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException