1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service;
16  
17  
18  /**
19   * <a href="AssetCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link AssetCategoryService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       AssetCategoryService
32   * @generated
33   */
34  public class AssetCategoryServiceWrapper implements AssetCategoryService {
35      public AssetCategoryServiceWrapper(
36          AssetCategoryService assetCategoryService) {
37          _assetCategoryService = assetCategoryService;
38      }
39  
40      public com.liferay.portlet.asset.model.AssetCategory addCategory(
41          long parentCategoryId,
42          java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
43          java.lang.String[] categoryProperties,
44          com.liferay.portal.service.ServiceContext serviceContext)
45          throws com.liferay.portal.kernel.exception.PortalException,
46              com.liferay.portal.kernel.exception.SystemException {
47          return _assetCategoryService.addCategory(parentCategoryId, titleMap,
48              vocabularyId, categoryProperties, serviceContext);
49      }
50  
51      public void deleteCategory(long categoryId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _assetCategoryService.deleteCategory(categoryId);
55      }
56  
57      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
58          java.lang.String className, long classPK)
59          throws com.liferay.portal.kernel.exception.PortalException,
60              com.liferay.portal.kernel.exception.SystemException {
61          return _assetCategoryService.getCategories(className, classPK);
62      }
63  
64      public com.liferay.portlet.asset.model.AssetCategory getCategory(
65          long categoryId)
66          throws com.liferay.portal.kernel.exception.PortalException,
67              com.liferay.portal.kernel.exception.SystemException {
68          return _assetCategoryService.getCategory(categoryId);
69      }
70  
71      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
72          long parentCategoryId)
73          throws com.liferay.portal.kernel.exception.PortalException,
74              com.liferay.portal.kernel.exception.SystemException {
75          return _assetCategoryService.getChildCategories(parentCategoryId);
76      }
77  
78      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
79          long vocabularyId)
80          throws com.liferay.portal.kernel.exception.PortalException,
81              com.liferay.portal.kernel.exception.SystemException {
82          return _assetCategoryService.getVocabularyCategories(vocabularyId);
83      }
84  
85      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
86          long vocabularyId)
87          throws com.liferay.portal.kernel.exception.PortalException,
88              com.liferay.portal.kernel.exception.SystemException {
89          return _assetCategoryService.getVocabularyRootCategories(vocabularyId);
90      }
91  
92      public com.liferay.portal.kernel.json.JSONArray search(long groupId,
93          java.lang.String name, java.lang.String[] categoryProperties,
94          int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return _assetCategoryService.search(groupId, name, categoryProperties,
97              start, end);
98      }
99  
100     public com.liferay.portlet.asset.model.AssetCategory updateCategory(
101         long categoryId, long parentCategoryId,
102         java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
103         java.lang.String[] categoryProperties,
104         com.liferay.portal.service.ServiceContext serviceContext)
105         throws com.liferay.portal.kernel.exception.PortalException,
106             com.liferay.portal.kernel.exception.SystemException {
107         return _assetCategoryService.updateCategory(categoryId,
108             parentCategoryId, titleMap, vocabularyId, categoryProperties,
109             serviceContext);
110     }
111 
112     public AssetCategoryService getWrappedAssetCategoryService() {
113         return _assetCategoryService;
114     }
115 
116     private AssetCategoryService _assetCategoryService;
117 }