001
014
015 package com.liferay.portlet.shopping.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class ShoppingCategoryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
049 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addShoppingCategory(shoppingCategory);
052 }
053
054
060 public static com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
061 long categoryId) {
062 return getService().createShoppingCategory(categoryId);
063 }
064
065
073 public static com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
074 long categoryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteShoppingCategory(categoryId);
078 }
079
080
087 public static com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
088 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteShoppingCategory(shoppingCategory);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
184 long categoryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchShoppingCategory(categoryId);
187 }
188
189
197 public static com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
198 long categoryId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException {
201 return getService().getShoppingCategory(categoryId);
202 }
203
204 public static com.liferay.portal.model.PersistedModel getPersistedModel(
205 java.io.Serializable primaryKeyObj)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getPersistedModel(primaryKeyObj);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getShoppingCategories(start, end);
227 }
228
229
235 public static int getShoppingCategoriesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getShoppingCategoriesCount();
238 }
239
240
247 public static com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
248 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateShoppingCategory(shoppingCategory);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
272 long userId, long parentCategoryId, java.lang.String name,
273 java.lang.String description,
274 com.liferay.portal.service.ServiceContext serviceContext)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException {
277 return getService()
278 .addCategory(userId, parentCategoryId, name, description,
279 serviceContext);
280 }
281
282 public static void addCategoryResources(long categoryId,
283 boolean addGroupPermissions, boolean addGuestPermissions)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 getService()
287 .addCategoryResources(categoryId, addGroupPermissions,
288 addGuestPermissions);
289 }
290
291 public static void addCategoryResources(long categoryId,
292 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 getService()
296 .addCategoryResources(categoryId, groupPermissions, guestPermissions);
297 }
298
299 public static void addCategoryResources(
300 com.liferay.portlet.shopping.model.ShoppingCategory category,
301 boolean addGroupPermissions, boolean addGuestPermissions)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 getService()
305 .addCategoryResources(category, addGroupPermissions,
306 addGuestPermissions);
307 }
308
309 public static void addCategoryResources(
310 com.liferay.portlet.shopping.model.ShoppingCategory category,
311 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 getService()
315 .addCategoryResources(category, groupPermissions, guestPermissions);
316 }
317
318 public static void deleteCategories(long groupId)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteCategories(groupId);
322 }
323
324 public static void deleteCategory(long categoryId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 getService().deleteCategory(categoryId);
328 }
329
330 public static void deleteCategory(
331 com.liferay.portlet.shopping.model.ShoppingCategory category)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 getService().deleteCategory(category);
335 }
336
337 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
338 long groupId)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().getCategories(groupId);
341 }
342
343 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
344 long groupId, long parentCategoryId, int start, int end)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService().getCategories(groupId, parentCategoryId, start, end);
347 }
348
349 public static int getCategoriesCount(long groupId, long parentCategoryId)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().getCategoriesCount(groupId, parentCategoryId);
352 }
353
354 public static com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
355 long categoryId)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException {
358 return getService().getCategory(categoryId);
359 }
360
361 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
362 long categoryId)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException {
365 return getService().getParentCategories(categoryId);
366 }
367
368 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
369 com.liferay.portlet.shopping.model.ShoppingCategory category)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException {
372 return getService().getParentCategories(category);
373 }
374
375 public static com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
376 com.liferay.portlet.shopping.model.ShoppingCategory category)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException {
379 return getService().getParentCategory(category);
380 }
381
382 public static void getSubcategoryIds(
383 java.util.List<java.lang.Long> categoryIds, long groupId,
384 long categoryId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 getService().getSubcategoryIds(categoryIds, groupId, categoryId);
387 }
388
389 public static com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
390 long categoryId, long parentCategoryId, java.lang.String name,
391 java.lang.String description, boolean mergeWithParentCategory,
392 com.liferay.portal.service.ServiceContext serviceContext)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 return getService()
396 .updateCategory(categoryId, parentCategoryId, name,
397 description, mergeWithParentCategory, serviceContext);
398 }
399
400 public static ShoppingCategoryLocalService getService() {
401 if (_service == null) {
402 _service = (ShoppingCategoryLocalService)PortalBeanLocatorUtil.locate(ShoppingCategoryLocalService.class.getName());
403
404 ReferenceRegistry.registerReference(ShoppingCategoryLocalServiceUtil.class,
405 "_service");
406 }
407
408 return _service;
409 }
410
411
414 public void setService(ShoppingCategoryLocalService service) {
415 }
416
417 private static ShoppingCategoryLocalService _service;
418 }