com.liferay.portlet.shopping.service.impl
Class ShoppingCategoryLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl
com.liferay.portlet.shopping.service.impl.ShoppingCategoryLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, ShoppingCategoryLocalService
public class ShoppingCategoryLocalServiceImpl
- extends ShoppingCategoryLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.shopping.service.base.ShoppingCategoryLocalServiceBaseImpl |
counterLocalService, persistedModelLocalServiceRegistry, 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 |
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)
|
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, deleteShoppingCategory, deleteShoppingCategory, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchShoppingCategory, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, 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, setBeanIdentifier, 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 |
ShoppingCategoryLocalServiceImpl
public ShoppingCategoryLocalServiceImpl()
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 addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public void addCategoryResources(long categoryId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public void addCategoryResources(ShoppingCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategoryResources
public void addCategoryResources(ShoppingCategory category,
String[] groupPermissions,
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