Liferay 6.0.5

com.liferay.portlet.shopping.service.impl
Class ShoppingCategoryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
      extended by com.liferay.portlet.shopping.service.impl.ShoppingCategoryLocalServiceImpl
All Implemented Interfaces:
ShoppingCategoryLocalService

public class ShoppingCategoryLocalServiceImpl
extends ShoppingCategoryLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
counterLocalService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingItemFieldLocalService, shoppingItemFieldPersistence, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemPriceLocalService, shoppingItemPricePersistence, shoppingItemService, shoppingOrderFinder, shoppingOrderItemLocalService, shoppingOrderItemPersistence, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
ShoppingCategoryLocalServiceImpl()
           
 
Method Summary
 ShoppingCategory addCategory(long userId, long parentCategoryId, String name, String description, ServiceContext serviceContext)
           
 void addCategoryResources(long categoryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, String[] communityPermissions, String[] guestPermissions)
           
 void addCategoryResources(ShoppingCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(ShoppingCategory category, String[] communityPermissions, String[] guestPermissions)
           
 void deleteCategories(long groupId)
           
 void deleteCategory(long categoryId)
           
 void deleteCategory(ShoppingCategory category)
           
 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)
           
 List<ShoppingCategory> getParentCategories(long categoryId)
           
 List<ShoppingCategory> getParentCategories(ShoppingCategory category)
           
 ShoppingCategory getParentCategory(ShoppingCategory category)
           
protected  long getParentCategoryId(long groupId, long parentCategoryId)
           
protected  long getParentCategoryId(ShoppingCategory category, long parentCategoryId)
           
 void getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
           
protected  void mergeCategories(ShoppingCategory fromCategory, long toCategoryId)
           
 ShoppingCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
protected  void validate(String name)
           
 
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
addShoppingCategory, createShoppingCategory, deleteShoppingCategory, deleteShoppingCategory, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getCounterLocalService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategories, getShoppingCategoriesCount, getShoppingCategory, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingItemFieldLocalService, getShoppingItemFieldPersistence, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemPriceLocalService, getShoppingItemPricePersistence, getShoppingItemService, getShoppingOrderFinder, getShoppingOrderItemLocalService, getShoppingOrderItemPersistence, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingItemFieldLocalService, setShoppingItemFieldPersistence, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemPriceLocalService, setShoppingItemPricePersistence, setShoppingItemService, setShoppingOrderFinder, setShoppingOrderItemLocalService, setShoppingOrderItemPersistence, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingCategory, updateShoppingCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCategoryLocalServiceImpl

public ShoppingCategoryLocalServiceImpl()
Method Detail

addCategory

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

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

deleteCategories

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

deleteCategory

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

deleteCategory

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

getCategories

public List<ShoppingCategory> getCategories(long groupId)
                                     throws SystemException
Throws:
SystemException

getCategories

public List<ShoppingCategory> getCategories(long groupId,
                                            long parentCategoryId,
                                            int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId)
                       throws SystemException
Throws:
SystemException

getCategory

public ShoppingCategory getCategory(long categoryId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getParentCategories

public List<ShoppingCategory> getParentCategories(long categoryId)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getParentCategories

public List<ShoppingCategory> getParentCategories(ShoppingCategory category)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

getParentCategory

public ShoppingCategory getParentCategory(ShoppingCategory category)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getSubcategoryIds

public void getSubcategoryIds(List<Long> categoryIds,
                              long groupId,
                              long categoryId)
                       throws SystemException
Throws:
SystemException

updateCategory

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

getParentCategoryId

protected long getParentCategoryId(long groupId,
                                   long parentCategoryId)
                            throws SystemException
Throws:
SystemException

getParentCategoryId

protected long getParentCategoryId(ShoppingCategory category,
                                   long parentCategoryId)
                            throws SystemException
Throws:
SystemException

mergeCategories

protected void mergeCategories(ShoppingCategory fromCategory,
                               long toCategoryId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

validate

protected void validate(String name)
                 throws PortalException
Throws:
PortalException

Liferay 6.0.5