1
22
23 package com.liferay.portlet.shopping.service;
24
25
51 public class ShoppingCategoryServiceUtil {
52 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
53 long plid, long parentCategoryId, java.lang.String name,
54 java.lang.String description, boolean addCommunityPermissions,
55 boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 ShoppingCategoryService shoppingCategoryService = ShoppingCategoryServiceFactory.getService();
59
60 return shoppingCategoryService.addCategory(plid, parentCategoryId,
61 name, description, addCommunityPermissions, addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
65 long plid, long parentCategoryId, java.lang.String name,
66 java.lang.String description, java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 ShoppingCategoryService shoppingCategoryService = ShoppingCategoryServiceFactory.getService();
71
72 return shoppingCategoryService.addCategory(plid, parentCategoryId,
73 name, description, communityPermissions, guestPermissions);
74 }
75
76 public static void deleteCategory(long categoryId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 ShoppingCategoryService shoppingCategoryService = ShoppingCategoryServiceFactory.getService();
80 shoppingCategoryService.deleteCategory(categoryId);
81 }
82
83 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
84 long categoryId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 ShoppingCategoryService shoppingCategoryService = ShoppingCategoryServiceFactory.getService();
88
89 return shoppingCategoryService.getCategory(categoryId);
90 }
91
92 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
93 long categoryId, long parentCategoryId, java.lang.String name,
94 java.lang.String description, boolean mergeWithParentCategory)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 ShoppingCategoryService shoppingCategoryService = ShoppingCategoryServiceFactory.getService();
98
99 return shoppingCategoryService.updateCategory(categoryId,
100 parentCategoryId, name, description, mergeWithParentCategory);
101 }
102 }