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 com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
77          long categoryId)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException {
80          return _assetCategoryLocalService.getAssetCategory(categoryId);
81      }
82  
83      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
84          int start, int end)
85          throws com.liferay.portal.kernel.exception.SystemException {
86          return _assetCategoryLocalService.getAssetCategories(start, end);
87      }
88  
89      public int getAssetCategoriesCount()
90          throws com.liferay.portal.kernel.exception.SystemException {
91          return _assetCategoryLocalService.getAssetCategoriesCount();
92      }
93  
94      public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
95          com.liferay.portlet.asset.model.AssetCategory assetCategory)
96          throws com.liferay.portal.kernel.exception.SystemException {
97          return _assetCategoryLocalService.updateAssetCategory(assetCategory);
98      }
99  
100     public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
101         com.liferay.portlet.asset.model.AssetCategory assetCategory,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return _assetCategoryLocalService.updateAssetCategory(assetCategory,
105             merge);
106     }
107 
108     public com.liferay.portlet.asset.model.AssetCategory addCategory(
109         java.lang.String uuid, long userId, long parentCategoryId,
110         java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
111         java.lang.String[] categoryProperties,
112         com.liferay.portal.service.ServiceContext serviceContext)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException {
115         return _assetCategoryLocalService.addCategory(uuid, userId,
116             parentCategoryId, titleMap, vocabularyId, categoryProperties,
117             serviceContext);
118     }
119 
120     public void addCategoryResources(
121         com.liferay.portlet.asset.model.AssetCategory category,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         _assetCategoryLocalService.addCategoryResources(category,
126             addCommunityPermissions, addGuestPermissions);
127     }
128 
129     public void addCategoryResources(
130         com.liferay.portlet.asset.model.AssetCategory category,
131         java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         _assetCategoryLocalService.addCategoryResources(category,
136             communityPermissions, guestPermissions);
137     }
138 
139     public void deleteCategory(
140         com.liferay.portlet.asset.model.AssetCategory category)
141         throws com.liferay.portal.kernel.exception.PortalException,
142             com.liferay.portal.kernel.exception.SystemException {
143         _assetCategoryLocalService.deleteCategory(category);
144     }
145 
146     public void deleteCategory(long categoryId)
147         throws com.liferay.portal.kernel.exception.PortalException,
148             com.liferay.portal.kernel.exception.SystemException {
149         _assetCategoryLocalService.deleteCategory(categoryId);
150     }
151 
152     public void deleteVocabularyCategories(long vocabularyId)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException {
155         _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
156     }
157 
158     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
159         throws com.liferay.portal.kernel.exception.SystemException {
160         return _assetCategoryLocalService.getCategories();
161     }
162 
163     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
164         long classNameId, long classPK)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return _assetCategoryLocalService.getCategories(classNameId, classPK);
167     }
168 
169     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
170         java.lang.String className, long classPK)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return _assetCategoryLocalService.getCategories(className, classPK);
173     }
174 
175     public com.liferay.portlet.asset.model.AssetCategory getCategory(
176         long categoryId)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         return _assetCategoryLocalService.getCategory(categoryId);
180     }
181 
182     public long[] getCategoryIds(java.lang.String className, long classPK)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return _assetCategoryLocalService.getCategoryIds(className, classPK);
185     }
186 
187     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
188         long parentCategoryId)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return _assetCategoryLocalService.getChildCategories(parentCategoryId);
191     }
192 
193     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
194         long entryId)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return _assetCategoryLocalService.getEntryCategories(entryId);
197     }
198 
199     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
200         long vocabularyId)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return _assetCategoryLocalService.getVocabularyCategories(vocabularyId);
203     }
204 
205     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
206         long vocabularyId)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId);
209     }
210 
211     public void mergeCategories(long fromCategoryId, long toCategoryId)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException {
214         _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
215     }
216 
217     public com.liferay.portal.kernel.json.JSONArray search(long groupId,
218         java.lang.String name, java.lang.String[] categoryProperties,
219         int start, int end)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return _assetCategoryLocalService.search(groupId, name,
222             categoryProperties, start, end);
223     }
224 
225     public com.liferay.portlet.asset.model.AssetCategory updateCategory(
226         long userId, long categoryId, long parentCategoryId,
227         java.util.Map<java.util.Locale, String> titleMap, long vocabularyId,
228         java.lang.String[] categoryProperties,
229         com.liferay.portal.service.ServiceContext serviceContext)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException {
232         return _assetCategoryLocalService.updateCategory(userId, categoryId,
233             parentCategoryId, titleMap, vocabularyId, categoryProperties,
234             serviceContext);
235     }
236 
237     public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
238         return _assetCategoryLocalService;
239     }
240 
241     private AssetCategoryLocalService _assetCategoryLocalService;
242 }