001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    
018    /**
019     * <p>
020     * This class is a wrapper for {@link AssetCategoryLocalService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       AssetCategoryLocalService
025     * @generated
026     */
027    public class AssetCategoryLocalServiceWrapper
028            implements AssetCategoryLocalService {
029            public AssetCategoryLocalServiceWrapper(
030                    AssetCategoryLocalService assetCategoryLocalService) {
031                    _assetCategoryLocalService = assetCategoryLocalService;
032            }
033    
034            public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
035                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
036                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return _assetCategoryLocalService.addAssetCategory(assetCategory);
038            }
039    
040            public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
041                    long categoryId) {
042                    return _assetCategoryLocalService.createAssetCategory(categoryId);
043            }
044    
045            public void deleteAssetCategory(long categoryId)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    _assetCategoryLocalService.deleteAssetCategory(categoryId);
049            }
050    
051            public void deleteAssetCategory(
052                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    _assetCategoryLocalService.deleteAssetCategory(assetCategory);
055            }
056    
057            @SuppressWarnings("unchecked")
058            public java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery);
062            }
063    
064            @SuppressWarnings("unchecked")
065            public java.util.List dynamicQuery(
066                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
067                    int end) throws com.liferay.portal.kernel.exception.SystemException {
068                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
069            }
070    
071            @SuppressWarnings("unchecked")
072            public java.util.List dynamicQuery(
073                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
074                    int end,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start,
078                            end, orderByComparator);
079            }
080    
081            public long dynamicQueryCount(
082                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _assetCategoryLocalService.dynamicQueryCount(dynamicQuery);
085            }
086    
087            public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
088                    long categoryId)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException {
091                    return _assetCategoryLocalService.getAssetCategory(categoryId);
092            }
093    
094            public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
095                    java.lang.String uuid, long groupId)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException {
098                    return _assetCategoryLocalService.getAssetCategoryByUuidAndGroupId(uuid,
099                            groupId);
100            }
101    
102            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
103                    int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _assetCategoryLocalService.getAssetCategories(start, end);
106            }
107    
108            public int getAssetCategoriesCount()
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _assetCategoryLocalService.getAssetCategoriesCount();
111            }
112    
113            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
114                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return _assetCategoryLocalService.updateAssetCategory(assetCategory);
117            }
118    
119            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
120                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
121                    boolean merge)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return _assetCategoryLocalService.updateAssetCategory(assetCategory,
124                            merge);
125            }
126    
127            public com.liferay.portlet.asset.model.AssetCategory addCategory(
128                    long userId, long parentCategoryId,
129                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
130                    long vocabularyId, java.lang.String[] categoryProperties,
131                    com.liferay.portal.service.ServiceContext serviceContext)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException {
134                    return _assetCategoryLocalService.addCategory(userId, parentCategoryId,
135                            titleMap, vocabularyId, categoryProperties, serviceContext);
136            }
137    
138            public void addCategoryResources(
139                    com.liferay.portlet.asset.model.AssetCategory category,
140                    boolean addCommunityPermissions, boolean addGuestPermissions)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    _assetCategoryLocalService.addCategoryResources(category,
144                            addCommunityPermissions, addGuestPermissions);
145            }
146    
147            public void addCategoryResources(
148                    com.liferay.portlet.asset.model.AssetCategory category,
149                    java.lang.String[] communityPermissions,
150                    java.lang.String[] guestPermissions)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    _assetCategoryLocalService.addCategoryResources(category,
154                            communityPermissions, guestPermissions);
155            }
156    
157            public void deleteCategory(
158                    com.liferay.portlet.asset.model.AssetCategory category)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    _assetCategoryLocalService.deleteCategory(category);
162            }
163    
164            public void deleteCategory(long categoryId)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    _assetCategoryLocalService.deleteCategory(categoryId);
168            }
169    
170            public void deleteVocabularyCategories(long vocabularyId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
174            }
175    
176            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
177                    throws com.liferay.portal.kernel.exception.SystemException {
178                    return _assetCategoryLocalService.getCategories();
179            }
180    
181            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
182                    long classNameId, long classPK)
183                    throws com.liferay.portal.kernel.exception.SystemException {
184                    return _assetCategoryLocalService.getCategories(classNameId, classPK);
185            }
186    
187            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
188                    java.lang.String className, long classPK)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _assetCategoryLocalService.getCategories(className, classPK);
191            }
192    
193            public com.liferay.portlet.asset.model.AssetCategory getCategory(
194                    long categoryId)
195                    throws com.liferay.portal.kernel.exception.PortalException,
196                            com.liferay.portal.kernel.exception.SystemException {
197                    return _assetCategoryLocalService.getCategory(categoryId);
198            }
199    
200            public long[] getCategoryIds(java.lang.String className, long classPK)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _assetCategoryLocalService.getCategoryIds(className, classPK);
203            }
204    
205            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
206                    long parentCategoryId, int start, int end,
207                    com.liferay.portal.kernel.util.OrderByComparator obc)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _assetCategoryLocalService.getChildCategories(parentCategoryId,
210                            start, end, obc);
211            }
212    
213            public int getChildCategoriesCount(long parentCategoryId)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _assetCategoryLocalService.getChildCategoriesCount(parentCategoryId);
216            }
217    
218            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
219                    long entryId)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _assetCategoryLocalService.getEntryCategories(entryId);
222            }
223    
224            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
225                    long vocabularyId, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator obc)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _assetCategoryLocalService.getVocabularyCategories(vocabularyId,
229                            start, end, obc);
230            }
231    
232            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
233                    long parentCategoryId, long vocabularyId, int start, int end,
234                    com.liferay.portal.kernel.util.OrderByComparator obc)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _assetCategoryLocalService.getVocabularyCategories(parentCategoryId,
237                            vocabularyId, start, end, obc);
238            }
239    
240            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
241                    long vocabularyId, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator obc)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId,
245                            start, end, obc);
246            }
247    
248            public void mergeCategories(long fromCategoryId, long toCategoryId)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
252            }
253    
254            public com.liferay.portal.kernel.json.JSONArray search(long groupId,
255                    java.lang.String name, java.lang.String[] categoryProperties,
256                    int start, int end)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _assetCategoryLocalService.search(groupId, name,
259                            categoryProperties, start, end);
260            }
261    
262            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
263                    long userId, long categoryId, long parentCategoryId,
264                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
265                    long vocabularyId, java.lang.String[] categoryProperties,
266                    com.liferay.portal.service.ServiceContext serviceContext)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    return _assetCategoryLocalService.updateCategory(userId, categoryId,
270                            parentCategoryId, titleMap, vocabularyId, categoryProperties,
271                            serviceContext);
272            }
273    
274            public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
275                    return _assetCategoryLocalService;
276            }
277    
278            private AssetCategoryLocalService _assetCategoryLocalService;
279    }