001
014
015 package com.liferay.portlet.shopping.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ShoppingCategoryLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
052 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addShoppingCategory(shoppingCategory);
055 }
056
057
063 public static com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
064 long categoryId) {
065 return getService().createShoppingCategory(categoryId);
066 }
067
068
076 public static com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
077 long categoryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteShoppingCategory(categoryId);
081 }
082
083
090 public static com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
091 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteShoppingCategory(shoppingCategory);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
187 long categoryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchShoppingCategory(categoryId);
190 }
191
192
200 public static com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
201 long categoryId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService().getShoppingCategory(categoryId);
205 }
206
207 public static com.liferay.portal.model.PersistedModel getPersistedModel(
208 java.io.Serializable primaryKeyObj)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return getService().getPersistedModel(primaryKeyObj);
212 }
213
214
226 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
227 int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getService().getShoppingCategories(start, end);
230 }
231
232
238 public static int getShoppingCategoriesCount()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getShoppingCategoriesCount();
241 }
242
243
250 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
251 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateShoppingCategory(shoppingCategory);
254 }
255
256
261 public static java.lang.String getBeanIdentifier() {
262 return getService().getBeanIdentifier();
263 }
264
265
270 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271 getService().setBeanIdentifier(beanIdentifier);
272 }
273
274 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
275 long userId, long parentCategoryId, java.lang.String name,
276 java.lang.String description,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 return getService()
281 .addCategory(userId, parentCategoryId, name, description,
282 serviceContext);
283 }
284
285 public static void addCategoryResources(long categoryId,
286 boolean addGroupPermissions, boolean addGuestPermissions)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 getService()
290 .addCategoryResources(categoryId, addGroupPermissions,
291 addGuestPermissions);
292 }
293
294 public static void addCategoryResources(long categoryId,
295 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 getService()
299 .addCategoryResources(categoryId, groupPermissions, guestPermissions);
300 }
301
302 public static void addCategoryResources(
303 com.liferay.portlet.shopping.model.ShoppingCategory category,
304 boolean addGroupPermissions, boolean addGuestPermissions)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 getService()
308 .addCategoryResources(category, addGroupPermissions,
309 addGuestPermissions);
310 }
311
312 public static void addCategoryResources(
313 com.liferay.portlet.shopping.model.ShoppingCategory category,
314 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 getService()
318 .addCategoryResources(category, groupPermissions, guestPermissions);
319 }
320
321 public static void deleteCategories(long groupId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 getService().deleteCategories(groupId);
325 }
326
327 public static void deleteCategory(long categoryId)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 getService().deleteCategory(categoryId);
331 }
332
333 public static void deleteCategory(
334 com.liferay.portlet.shopping.model.ShoppingCategory category)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 getService().deleteCategory(category);
338 }
339
340 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
341 long groupId)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getService().getCategories(groupId);
344 }
345
346 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
347 long groupId, long parentCategoryId, int start, int end)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 return getService().getCategories(groupId, parentCategoryId, start, end);
350 }
351
352 public static int getCategoriesCount(long groupId, long parentCategoryId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService().getCategoriesCount(groupId, parentCategoryId);
355 }
356
357 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
358 long categoryId)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 return getService().getCategory(categoryId);
362 }
363
364 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
365 long groupId, java.lang.String categoryName)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getService().getCategory(groupId, categoryName);
368 }
369
370 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
371 long categoryId)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 return getService().getParentCategories(categoryId);
375 }
376
377 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
378 com.liferay.portlet.shopping.model.ShoppingCategory category)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 return getService().getParentCategories(category);
382 }
383
384 public static com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
385 com.liferay.portlet.shopping.model.ShoppingCategory category)
386 throws com.liferay.portal.kernel.exception.PortalException,
387 com.liferay.portal.kernel.exception.SystemException {
388 return getService().getParentCategory(category);
389 }
390
391 public static void getSubcategoryIds(
392 java.util.List<java.lang.Long> categoryIds, long groupId,
393 long categoryId)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
396 }
397
398 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
399 long categoryId, long parentCategoryId, java.lang.String name,
400 java.lang.String description, boolean mergeWithParentCategory,
401 com.liferay.portal.service.ServiceContext serviceContext)
402 throws com.liferay.portal.kernel.exception.PortalException,
403 com.liferay.portal.kernel.exception.SystemException {
404 return getService()
405 .updateCategory(categoryId, parentCategoryId, name,
406 description, mergeWithParentCategory, serviceContext);
407 }
408
409 public static ShoppingCategoryLocalService getService() {
410 if (_service == null) {
411 _service = (ShoppingCategoryLocalService)PortalBeanLocatorUtil.locate(ShoppingCategoryLocalService.class.getName());
412
413 ReferenceRegistry.registerReference(ShoppingCategoryLocalServiceUtil.class,
414 "_service");
415 }
416
417 return _service;
418 }
419
420
423 public void setService(ShoppingCategoryLocalService service) {
424 }
425
426 private static ShoppingCategoryLocalService _service;
427 }