com.liferay.portlet.shopping.service
Interface ShoppingCategoryLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
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:
ShoppingCategoryLocalServiceUtil
Method Summary |
ShoppingCategory |
addCategory(long userId,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext)
|
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)
|
ShoppingCategory |
createShoppingCategory(long categoryId)
|
void |
deleteCategories(long groupId)
|
void |
deleteCategory(long categoryId)
|
void |
deleteCategory(ShoppingCategory category)
|
void |
deleteShoppingCategory(long categoryId)
|
void |
deleteShoppingCategory(ShoppingCategory shoppingCategory)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
java.util.List<ShoppingCategory> |
getCategories(long groupId)
|
java.util.List<ShoppingCategory> |
getCategories(long groupId,
long parentCategoryId,
int start,
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)
|
java.util.List<ShoppingCategory> |
getShoppingCategories(int start,
int end)
|
int |
getShoppingCategoriesCount()
|
ShoppingCategory |
getShoppingCategory(long categoryId)
|
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,
ServiceContext serviceContext)
|
ShoppingCategory |
updateShoppingCategory(ShoppingCategory shoppingCategory)
|
addShoppingCategory
ShoppingCategory addShoppingCategory(ShoppingCategory shoppingCategory)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createShoppingCategory
ShoppingCategory createShoppingCategory(long categoryId)
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
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingCategory
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCategory getShoppingCategory(long categoryId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getShoppingCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCategory> getShoppingCategories(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingCategoriesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getShoppingCategoriesCount()
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 parentCategoryId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addCategoryResources
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
void addCategoryResources(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
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
void addCategoryResources(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
void deleteCategories(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
void deleteCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteCategory
void deleteCategory(ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCategory> getCategories(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCategory> getCategories(long groupId,
long parentCategoryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategoriesCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getCategoriesCount(long groupId,
long parentCategoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategory
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCategory getCategory(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategory
@Transactional(propagation=SUPPORTS,
readOnly=true)
ShoppingCategory getParentCategory(ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCategory> getParentCategories(long categoryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getParentCategories
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<ShoppingCategory> getParentCategories(ShoppingCategory category)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getSubcategoryIds
@Transactional(propagation=SUPPORTS,
readOnly=true)
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,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException