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="AssetCategoryLocalServiceUtil.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 AssetCategoryLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       AssetCategoryLocalService
32   * @generated
33   */
34  public class AssetCategoryLocalServiceWrapper
35      implements AssetCategoryLocalService {
36      public AssetCategoryLocalServiceWrapper(
37          AssetCategoryLocalService assetCategoryLocalService) {
38          _assetCategoryLocalService = assetCategoryLocalService;
39      }
40  
41      public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
42          com.liferay.portlet.asset.model.AssetCategory assetCategory)
43          throws com.liferay.portal.kernel.exception.SystemException {
44          return _assetCategoryLocalService.addAssetCategory(assetCategory);
45      }
46  
47      public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
48          long categoryId) {
49          return _assetCategoryLocalService.createAssetCategory(categoryId);
50      }
51  
52      public void deleteAssetCategory(long categoryId)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException {
55          _assetCategoryLocalService.deleteAssetCategory(categoryId);
56      }
57  
58      public void deleteAssetCategory(
59          com.liferay.portlet.asset.model.AssetCategory assetCategory)
60          throws com.liferay.portal.kernel.exception.SystemException {
61          _assetCategoryLocalService.deleteAssetCategory(assetCategory);
62      }
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return _assetCategoryLocalService.dynamicQuery(dynamicQuery);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.kernel.exception.SystemException {
73          return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException {
81          return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start,
82              end, orderByComparator);
83      }
84  
85      public int dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.kernel.exception.SystemException {
88          return _assetCategoryLocalService.dynamicQueryCount(dynamicQuery);
89      }
90  
91      public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
92          long categoryId)
93          throws com.liferay.portal.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.SystemException {
95          return _assetCategoryLocalService.getAssetCategory(categoryId);
96      }
97  
98      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
99          int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return _assetCategoryLocalService.getAssetCategories(start, end);
102     }
103 
104     public int getAssetCategoriesCount()
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return _assetCategoryLocalService.getAssetCategoriesCount();
107     }
108 
109     public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
110         com.liferay.portlet.asset.model.AssetCategory assetCategory)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _assetCategoryLocalService.updateAssetCategory(assetCategory);
113     }
114 
115     public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
116         com.liferay.portlet.asset.model.AssetCategory assetCategory,
117         boolean merge)
118         throws com.liferay.portal.kernel.exception.SystemException {
119         return _assetCategoryLocalService.updateAssetCategory(assetCategory,
120             merge);
121     }
122 
123     public com.liferay.portlet.asset.model.AssetCategory addCategory(
124         java.lang.String uuid, long userId, long parentCategoryId,
125         java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
126         java.lang.String[] categoryProperties,
127         com.liferay.portal.service.ServiceContext serviceContext)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException {
130         return _assetCategoryLocalService.addCategory(uuid, userId,
131             parentCategoryId, titleMap, vocabularyId, categoryProperties,
132             serviceContext);
133     }
134 
135     public void addCategoryResources(
136         com.liferay.portlet.asset.model.AssetCategory category,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException {
140         _assetCategoryLocalService.addCategoryResources(category,
141             addCommunityPermissions, addGuestPermissions);
142     }
143 
144     public void addCategoryResources(
145         com.liferay.portlet.asset.model.AssetCategory category,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         _assetCategoryLocalService.addCategoryResources(category,
151             communityPermissions, guestPermissions);
152     }
153 
154     public void deleteCategory(
155         com.liferay.portlet.asset.model.AssetCategory category)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         _assetCategoryLocalService.deleteCategory(category);
159     }
160 
161     public void deleteCategory(long categoryId)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         _assetCategoryLocalService.deleteCategory(categoryId);
165     }
166 
167     public void deleteVocabularyCategories(long vocabularyId)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException {
170         _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
171     }
172 
173     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return _assetCategoryLocalService.getCategories();
176     }
177 
178     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
179         long classNameId, long classPK)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return _assetCategoryLocalService.getCategories(classNameId, classPK);
182     }
183 
184     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
185         java.lang.String className, long classPK)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return _assetCategoryLocalService.getCategories(className, classPK);
188     }
189 
190     public com.liferay.portlet.asset.model.AssetCategory getCategory(
191         long categoryId)
192         throws com.liferay.portal.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException {
194         return _assetCategoryLocalService.getCategory(categoryId);
195     }
196 
197     public long[] getCategoryIds(java.lang.String className, long classPK)
198         throws com.liferay.portal.kernel.exception.SystemException {
199         return _assetCategoryLocalService.getCategoryIds(className, classPK);
200     }
201 
202     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
203         long parentCategoryId)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return _assetCategoryLocalService.getChildCategories(parentCategoryId);
206     }
207 
208     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
209         long entryId)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return _assetCategoryLocalService.getEntryCategories(entryId);
212     }
213 
214     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
215         long vocabularyId)
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return _assetCategoryLocalService.getVocabularyCategories(vocabularyId);
218     }
219 
220     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
221         long vocabularyId)
222         throws com.liferay.portal.kernel.exception.SystemException {
223         return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId);
224     }
225 
226     public void mergeCategories(long fromCategoryId, long toCategoryId)
227         throws com.liferay.portal.kernel.exception.PortalException,
228             com.liferay.portal.kernel.exception.SystemException {
229         _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
230     }
231 
232     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
233         java.lang.String name, java.lang.String[] categoryProperties,
234         int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return _assetCategoryLocalService.search(groupId, name,
237             categoryProperties, start, end);
238     }
239 
240     public com.liferay.portlet.asset.model.AssetCategory updateCategory(
241         long userId, long categoryId, long parentCategoryId,
242         java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
243         java.lang.String[] categoryProperties,
244         com.liferay.portal.service.ServiceContext serviceContext)
245         throws com.liferay.portal.kernel.exception.PortalException,
246             com.liferay.portal.kernel.exception.SystemException {
247         return _assetCategoryLocalService.updateCategory(userId, categoryId,
248             parentCategoryId, titleMap, vocabularyId, categoryProperties,
249             serviceContext);
250     }
251 
252     public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
253         return _assetCategoryLocalService;
254     }
255 
256     private AssetCategoryLocalService _assetCategoryLocalService;
257 }