Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.service
Class ShoppingCategoryServiceUtil

java.lang.Object
  extended by com.liferay.portlet.shopping.service.ShoppingCategoryServiceUtil

public class ShoppingCategoryServiceUtil
extends Object

The utility for the shopping category remote service. This utility wraps com.liferay.portlet.shopping.service.impl.ShoppingCategoryServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
ShoppingCategoryService, com.liferay.portlet.shopping.service.base.ShoppingCategoryServiceBaseImpl, com.liferay.portlet.shopping.service.impl.ShoppingCategoryServiceImpl

Constructor Summary
ShoppingCategoryServiceUtil()
           
 
Method Summary
static ShoppingCategory addCategory(long parentCategoryId, String name, String description, ServiceContext serviceContext)
           
static void deleteCategory(long categoryId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<ShoppingCategory> getCategories(long groupId)
           
static List<ShoppingCategory> getCategories(long groupId, long parentCategoryId, int start, int end)
           
static int getCategoriesCount(long groupId, long parentCategoryId)
           
static ShoppingCategory getCategory(long categoryId)
           
static ShoppingCategoryService getService()
           
static void getSubcategoryIds(List<Long> categoryIds, long groupId, long categoryId)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(ShoppingCategoryService service)
          Deprecated.  
static ShoppingCategory updateCategory(long categoryId, long parentCategoryId, String name, String description, boolean mergeWithParentCategory, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCategoryServiceUtil

public ShoppingCategoryServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addCategory

public static ShoppingCategory addCategory(long parentCategoryId,
                                           String name,
                                           String description,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

deleteCategory

public static void deleteCategory(long categoryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getCategories

public static List<ShoppingCategory> getCategories(long groupId)
                                            throws SystemException
Throws:
SystemException

getCategories

public static List<ShoppingCategory> getCategories(long groupId,
                                                   long parentCategoryId,
                                                   int start,
                                                   int end)
                                            throws SystemException
Throws:
SystemException

getCategoriesCount

public static int getCategoriesCount(long groupId,
                                     long parentCategoryId)
                              throws SystemException
Throws:
SystemException

getCategory

public static ShoppingCategory getCategory(long categoryId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getSubcategoryIds

public static void getSubcategoryIds(List<Long> categoryIds,
                                     long groupId,
                                     long categoryId)
                              throws SystemException
Throws:
SystemException

updateCategory

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

getService

public static ShoppingCategoryService getService()

setService

public void setService(ShoppingCategoryService service)
Deprecated. 


Liferay 6.1.2-ce-ga3