com.liferay.portlet.shopping.service.impl
Class ShoppingCategoryLocalServiceImpl
java.lang.Object
com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingCategoryLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.shopping.service.ShoppingCategoryLocalService
public class ShoppingCategoryLocalServiceImpl
- extends ShoppingCategoryLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl |
counterLocalService, counterService, 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 |
Method Summary |
com.liferay.portlet.shopping.model.ShoppingCategory |
addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
addCategoryResources(long categoryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(long categoryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addCategoryResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(com.liferay.portlet.shopping.model.ShoppingCategory category,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
deleteCategories(long groupId)
|
void |
deleteCategory(long categoryId)
|
void |
deleteCategory(com.liferay.portlet.shopping.model.ShoppingCategory category)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> |
getCategories(long groupId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
int end)
|
int |
getCategoriesCount(long groupId,
long parentCategoryId)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
getCategory(long categoryId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> |
getParentCategories(long categoryId)
|
java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> |
getParentCategories(com.liferay.portlet.shopping.model.ShoppingCategory category)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
getParentCategory(com.liferay.portlet.shopping.model.ShoppingCategory category)
|
protected long |
getParentCategoryId(long groupId,
long parentCategoryId)
|
protected long |
getParentCategoryId(com.liferay.portlet.shopping.model.ShoppingCategory category,
long parentCategoryId)
|
void |
getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
|
protected void |
mergeCategories(com.liferay.portlet.shopping.model.ShoppingCategory fromCategory,
long toCategoryId)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
updateCategory(long categoryId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
boolean mergeWithParentCategory,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
validate(java.lang.String name)
|
Methods inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl |
addShoppingCategory, createShoppingCategory, deleteShoppingCategory, deleteShoppingCategory, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, 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, setCounterService, 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 |
ShoppingCategoryLocalServiceImpl
public ShoppingCategoryLocalServiceImpl()
addCategory
public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addCategoryResources
public 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
public void addCategoryResources(com.liferay.portlet.shopping.model.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
public 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
public void addCategoryResources(com.liferay.portlet.shopping.model.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
public void deleteCategories(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
public void deleteCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
public void deleteCategory(com.liferay.portlet.shopping.model.ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategories
public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategories
public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoriesCount
public int getCategoriesCount(long groupId,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategory
public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategory
public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(com.liferay.portlet.shopping.model.ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategories
public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategories
public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(com.liferay.portlet.shopping.model.ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getSubcategoryIds
public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
long groupId,
long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateCategory
public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(long categoryId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
boolean mergeWithParentCategory,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategoryId
protected long getParentCategoryId(long groupId,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getParentCategoryId
protected long getParentCategoryId(com.liferay.portlet.shopping.model.ShoppingCategory category,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
mergeCategories
protected void mergeCategories(com.liferay.portlet.shopping.model.ShoppingCategory fromCategory,
long toCategoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
protected void validate(java.lang.String name)
throws com.liferay.portal.PortalException
- Throws:
com.liferay.portal.PortalException