Liferay 7.0-ce-m6

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
          extended by com.liferay.portlet.shopping.service.impl.ShoppingCategoryLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, ShoppingCategoryLocalService

public class ShoppingCategoryLocalServiceImpl
extends ShoppingCategoryLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, resourceLocalService, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingItemFinder, shoppingItemLocalService, shoppingItemPersistence, shoppingItemService, 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 addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(long categoryId, String[] groupPermissions, String[] guestPermissions)
           
 void addCategoryResources(ShoppingCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(ShoppingCategory category, String[] groupPermissions, 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)
           
 ShoppingCategory getCategory(long groupId, String categoryName)
           
 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, afterPropertiesSet, createShoppingCategory, deletePersistedModel, deleteShoppingCategory, deleteShoppingCategory, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchShoppingCategory, getActionableDynamicQuery, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getShoppingCategories, getShoppingCategoriesCount, getShoppingCategory, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingItemFinder, getShoppingItemLocalService, getShoppingItemPersistence, getShoppingItemService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setBeanIdentifier, setCounterLocalService, setResourceLocalService, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingItemFinder, setShoppingItemLocalService, setShoppingItemPersistence, setShoppingItemService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateShoppingCategory
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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
Throws:
PortalException

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

addCategoryResources

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

deleteCategories

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

deleteCategory

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

deleteCategory

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

getCategories

public List<ShoppingCategory> getCategories(long groupId)

getCategories

public List<ShoppingCategory> getCategories(long groupId,
                                            long parentCategoryId,
                                            int start,
                                            int end)

getCategoriesCount

public int getCategoriesCount(long groupId,
                              long parentCategoryId)

getCategory

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

getCategory

public ShoppingCategory getCategory(long groupId,
                                    String categoryName)

getParentCategories

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

getParentCategories

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

getParentCategory

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

getSubcategoryIds

public void getSubcategoryIds(List<Long> categoryIds,
                              long groupId,
                              long categoryId)

updateCategory

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

getParentCategoryId

protected long getParentCategoryId(long groupId,
                                   long parentCategoryId)

getParentCategoryId

protected long getParentCategoryId(ShoppingCategory category,
                                   long parentCategoryId)

mergeCategories

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

validate

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

Liferay 7.0-ce-m6