1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ShoppingCategoryLocalServiceUtil {
40 public static com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
41 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
42 throws com.liferay.portal.SystemException {
43 return getService().addShoppingCategory(shoppingCategory);
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
47 long categoryId) {
48 return getService().createShoppingCategory(categoryId);
49 }
50
51 public static void deleteShoppingCategory(long categoryId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteShoppingCategory(categoryId);
55 }
56
57 public static void deleteShoppingCategory(
58 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
59 throws com.liferay.portal.SystemException {
60 getService().deleteShoppingCategory(shoppingCategory);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
76 long categoryId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getShoppingCategory(categoryId);
80 }
81
82 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getShoppingCategories(start, end);
85 }
86
87 public static int getShoppingCategoriesCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getShoppingCategoriesCount();
90 }
91
92 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
93 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
94 throws com.liferay.portal.SystemException {
95 return getService().updateShoppingCategory(shoppingCategory);
96 }
97
98 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
99 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateShoppingCategory(shoppingCategory, merge);
102 }
103
104 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
105 long userId, long plid, long parentCategoryId, java.lang.String name,
106 java.lang.String description, boolean addCommunityPermissions,
107 boolean addGuestPermissions)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException {
110 return getService()
111 .addCategory(userId, plid, parentCategoryId, name,
112 description, addCommunityPermissions, addGuestPermissions);
113 }
114
115 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
116 long userId, long plid, long parentCategoryId, java.lang.String name,
117 java.lang.String description,
118 java.lang.Boolean addCommunityPermissions,
119 java.lang.Boolean addGuestPermissions,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService()
125 .addCategory(userId, plid, parentCategoryId, name,
126 description, addCommunityPermissions, addGuestPermissions,
127 communityPermissions, guestPermissions);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
131 long userId, long plid, long parentCategoryId, java.lang.String name,
132 java.lang.String description, java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addCategory(userId, plid, parentCategoryId, name,
138 description, communityPermissions, guestPermissions);
139 }
140
141 public static void addCategoryResources(long categoryId,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 getService()
146 .addCategoryResources(categoryId, addCommunityPermissions,
147 addGuestPermissions);
148 }
149
150 public static void addCategoryResources(long categoryId,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addCategoryResources(categoryId, communityPermissions,
157 guestPermissions);
158 }
159
160 public static void addCategoryResources(
161 com.liferay.portlet.shopping.model.ShoppingCategory category,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addCategoryResources(category, addCommunityPermissions,
167 addGuestPermissions);
168 }
169
170 public static void addCategoryResources(
171 com.liferay.portlet.shopping.model.ShoppingCategory category,
172 java.lang.String[] communityPermissions,
173 java.lang.String[] guestPermissions)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException {
176 getService()
177 .addCategoryResources(category, communityPermissions,
178 guestPermissions);
179 }
180
181 public static void deleteCategories(long groupId)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 getService().deleteCategories(groupId);
185 }
186
187 public static void deleteCategory(long categoryId)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 getService().deleteCategory(categoryId);
191 }
192
193 public static void deleteCategory(
194 com.liferay.portlet.shopping.model.ShoppingCategory category)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 getService().deleteCategory(category);
198 }
199
200 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
201 long groupId) throws com.liferay.portal.SystemException {
202 return getService().getCategories(groupId);
203 }
204
205 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
206 long groupId, long parentCategoryId, int start, int end)
207 throws com.liferay.portal.SystemException {
208 return getService().getCategories(groupId, parentCategoryId, start, end);
209 }
210
211 public static int getCategoriesCount(long groupId, long parentCategoryId)
212 throws com.liferay.portal.SystemException {
213 return getService().getCategoriesCount(groupId, parentCategoryId);
214 }
215
216 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
217 long categoryId)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException {
220 return getService().getCategory(categoryId);
221 }
222
223 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
224 long categoryId)
225 throws com.liferay.portal.PortalException,
226 com.liferay.portal.SystemException {
227 return getService().getParentCategories(categoryId);
228 }
229
230 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
231 com.liferay.portlet.shopping.model.ShoppingCategory category)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 return getService().getParentCategories(category);
235 }
236
237 public static com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
238 com.liferay.portlet.shopping.model.ShoppingCategory category)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 return getService().getParentCategory(category);
242 }
243
244 public static void getSubcategoryIds(java.util.List<Long> categoryIds,
245 long groupId, long categoryId)
246 throws com.liferay.portal.SystemException {
247 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
248 }
249
250 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
251 long categoryId, long parentCategoryId, java.lang.String name,
252 java.lang.String description, boolean mergeWithParentCategory)
253 throws com.liferay.portal.PortalException,
254 com.liferay.portal.SystemException {
255 return getService()
256 .updateCategory(categoryId, parentCategoryId, name,
257 description, mergeWithParentCategory);
258 }
259
260 public static ShoppingCategoryLocalService getService() {
261 if (_service == null) {
262 _service = (ShoppingCategoryLocalService)PortalBeanLocatorUtil.locate(ShoppingCategoryLocalService.class.getName());
263 }
264
265 return _service;
266 }
267
268 public void setService(ShoppingCategoryLocalService service) {
269 _service = service;
270 }
271
272 private static ShoppingCategoryLocalService _service;
273 }