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