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
Method Summary |
com.liferay.portlet.shopping.model.ShoppingCategory |
addCategory(long userId,
long plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
addCategory(long userId,
long plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
addCategory(long userId,
long plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
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 |
deleteCategory(long categoryId)
|
void |
deleteCategory(com.liferay.portlet.shopping.model.ShoppingCategory category)
|
java.util.List |
getCategories(long groupId)
|
java.util.List |
getCategories(long groupId,
long parentCategoryId,
int begin,
int end)
|
int |
getCategoriesCount(long groupId,
long parentCategoryId)
|
com.liferay.portlet.shopping.model.ShoppingCategory |
getCategory(long categoryId)
|
java.util.List |
getParentCategories(long categoryId)
|
java.util.List |
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 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)
|
protected void |
validate(java.lang.String name)
|
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 plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addCategory
public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(long userId,
long plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
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
addCategory
public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(long userId,
long plid,
long parentCategoryId,
java.lang.String name,
java.lang.String description,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
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(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
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 getCategories(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCategories
public java.util.List getCategories(long groupId,
long parentCategoryId,
int begin,
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 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 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 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)
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