001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetCategoryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetCategoryLocalService
026     * @generated
027     */
028    public class AssetCategoryLocalServiceWrapper
029            implements AssetCategoryLocalService,
030                    ServiceWrapper<AssetCategoryLocalService> {
031            public AssetCategoryLocalServiceWrapper(
032                    AssetCategoryLocalService assetCategoryLocalService) {
033                    _assetCategoryLocalService = assetCategoryLocalService;
034            }
035    
036            /**
037            * Adds the asset category to the database. Also notifies the appropriate model listeners.
038            *
039            * @param assetCategory the asset category
040            * @return the asset category that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
044                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _assetCategoryLocalService.addAssetCategory(assetCategory);
047            }
048    
049            /**
050            * Creates a new asset category with the primary key. Does not add the asset category to the database.
051            *
052            * @param categoryId the primary key for the new asset category
053            * @return the new asset category
054            */
055            public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
056                    long categoryId) {
057                    return _assetCategoryLocalService.createAssetCategory(categoryId);
058            }
059    
060            /**
061            * Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param categoryId the primary key of the asset category
064            * @return the asset category that was removed
065            * @throws PortalException if a asset category with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
069                    long categoryId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _assetCategoryLocalService.deleteAssetCategory(categoryId);
073            }
074    
075            /**
076            * Deletes the asset category from the database. Also notifies the appropriate model listeners.
077            *
078            * @param assetCategory the asset category
079            * @return the asset category that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
083                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _assetCategoryLocalService.deleteAssetCategory(assetCategory);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _assetCategoryLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _assetCategoryLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
164                    long categoryId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _assetCategoryLocalService.fetchAssetCategory(categoryId);
167            }
168    
169            /**
170            * Returns the asset category with the primary key.
171            *
172            * @param categoryId the primary key of the asset category
173            * @return the asset category
174            * @throws PortalException if a asset category with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
178                    long categoryId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _assetCategoryLocalService.getAssetCategory(categoryId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _assetCategoryLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns the asset category with the UUID in the group.
193            *
194            * @param uuid the UUID of asset category
195            * @param groupId the group id of the asset category
196            * @return the asset category
197            * @throws PortalException if a asset category with the UUID in the group could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    return _assetCategoryLocalService.getAssetCategoryByUuidAndGroupId(uuid,
205                            groupId);
206            }
207    
208            /**
209            * Returns a range of all the asset categories.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
213            * </p>
214            *
215            * @param start the lower bound of the range of asset categories
216            * @param end the upper bound of the range of asset categories (not inclusive)
217            * @return the range of asset categories
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
221                    int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _assetCategoryLocalService.getAssetCategories(start, end);
224            }
225    
226            /**
227            * Returns the number of asset categories.
228            *
229            * @return the number of asset categories
230            * @throws SystemException if a system exception occurred
231            */
232            public int getAssetCategoriesCount()
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _assetCategoryLocalService.getAssetCategoriesCount();
235            }
236    
237            /**
238            * Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
239            *
240            * @param assetCategory the asset category
241            * @return the asset category that was updated
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
245                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _assetCategoryLocalService.updateAssetCategory(assetCategory);
248            }
249    
250            /**
251            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _assetCategoryLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _assetCategoryLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.asset.model.AssetCategory addCategory(
269                    long userId, long parentCategoryId,
270                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
271                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
272                    long vocabularyId, java.lang.String[] categoryProperties,
273                    com.liferay.portal.service.ServiceContext serviceContext)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _assetCategoryLocalService.addCategory(userId, parentCategoryId,
277                            titleMap, descriptionMap, vocabularyId, categoryProperties,
278                            serviceContext);
279            }
280    
281            public void addCategoryResources(
282                    com.liferay.portlet.asset.model.AssetCategory category,
283                    boolean addGroupPermissions, boolean addGuestPermissions)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _assetCategoryLocalService.addCategoryResources(category,
287                            addGroupPermissions, addGuestPermissions);
288            }
289    
290            public void addCategoryResources(
291                    com.liferay.portlet.asset.model.AssetCategory category,
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                    _assetCategoryLocalService.addCategoryResources(category,
296                            groupPermissions, guestPermissions);
297            }
298    
299            public void deleteCategory(
300                    com.liferay.portlet.asset.model.AssetCategory category)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _assetCategoryLocalService.deleteCategory(category);
304            }
305    
306            public void deleteCategory(long categoryId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _assetCategoryLocalService.deleteCategory(categoryId);
310            }
311    
312            public void deleteVocabularyCategories(long vocabularyId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
316            }
317    
318            public com.liferay.portlet.asset.model.AssetCategory fetchCategory(
319                    long categoryId)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _assetCategoryLocalService.fetchCategory(categoryId);
322            }
323    
324            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _assetCategoryLocalService.getCategories();
327            }
328    
329            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
330                    long classNameId, long classPK)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _assetCategoryLocalService.getCategories(classNameId, classPK);
333            }
334    
335            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
336                    java.lang.String className, long classPK)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _assetCategoryLocalService.getCategories(className, classPK);
339            }
340    
341            public com.liferay.portlet.asset.model.AssetCategory getCategory(
342                    long categoryId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _assetCategoryLocalService.getCategory(categoryId);
346            }
347    
348            public com.liferay.portlet.asset.model.AssetCategory getCategory(
349                    java.lang.String uuid, long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    return _assetCategoryLocalService.getCategory(uuid, groupId);
353            }
354    
355            public long[] getCategoryIds(java.lang.String className, long classPK)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _assetCategoryLocalService.getCategoryIds(className, classPK);
358            }
359    
360            public java.lang.String[] getCategoryNames()
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _assetCategoryLocalService.getCategoryNames();
363            }
364    
365            public java.lang.String[] getCategoryNames(long classNameId, long classPK)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _assetCategoryLocalService.getCategoryNames(classNameId, classPK);
368            }
369    
370            public java.lang.String[] getCategoryNames(java.lang.String className,
371                    long classPK)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _assetCategoryLocalService.getCategoryNames(className, classPK);
374            }
375    
376            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
377                    long parentCategoryId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _assetCategoryLocalService.getChildCategories(parentCategoryId);
380            }
381    
382            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
383                    long parentCategoryId, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator obc)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _assetCategoryLocalService.getChildCategories(parentCategoryId,
387                            start, end, obc);
388            }
389    
390            public int getChildCategoriesCount(long parentCategoryId)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _assetCategoryLocalService.getChildCategoriesCount(parentCategoryId);
393            }
394    
395            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
396                    long entryId)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _assetCategoryLocalService.getEntryCategories(entryId);
399            }
400    
401            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
402                    long vocabularyId, int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator obc)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _assetCategoryLocalService.getVocabularyCategories(vocabularyId,
406                            start, end, obc);
407            }
408    
409            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
410                    long parentCategoryId, long vocabularyId, int start, int end,
411                    com.liferay.portal.kernel.util.OrderByComparator obc)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _assetCategoryLocalService.getVocabularyCategories(parentCategoryId,
414                            vocabularyId, start, end, obc);
415            }
416    
417            public int getVocabularyCategoriesCount(long vocabularyId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _assetCategoryLocalService.getVocabularyCategoriesCount(vocabularyId);
420            }
421    
422            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
423                    long vocabularyId, int start, int end,
424                    com.liferay.portal.kernel.util.OrderByComparator obc)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId,
427                            start, end, obc);
428            }
429    
430            public void mergeCategories(long fromCategoryId, long toCategoryId)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
434            }
435    
436            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
437                    long categoryId, long parentCategoryId, long vocabularyId,
438                    com.liferay.portal.service.ServiceContext serviceContext)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    return _assetCategoryLocalService.moveCategory(categoryId,
442                            parentCategoryId, vocabularyId, serviceContext);
443            }
444    
445            public void rebuildTree(long groupId, boolean force)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    _assetCategoryLocalService.rebuildTree(groupId, force);
448            }
449    
450            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
451                    long groupId, java.lang.String name,
452                    java.lang.String[] categoryProperties, int start, int end)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return _assetCategoryLocalService.search(groupId, name,
455                            categoryProperties, start, end);
456            }
457    
458            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
459                    long userId, long categoryId, long parentCategoryId,
460                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
461                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
462                    long vocabularyId, java.lang.String[] categoryProperties,
463                    com.liferay.portal.service.ServiceContext serviceContext)
464                    throws com.liferay.portal.kernel.exception.PortalException,
465                            com.liferay.portal.kernel.exception.SystemException {
466                    return _assetCategoryLocalService.updateCategory(userId, categoryId,
467                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
468                            categoryProperties, serviceContext);
469            }
470    
471            /**
472             * @deprecated Renamed to {@link #getWrappedService}
473             */
474            public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
475                    return _assetCategoryLocalService;
476            }
477    
478            /**
479             * @deprecated Renamed to {@link #setWrappedService}
480             */
481            public void setWrappedAssetCategoryLocalService(
482                    AssetCategoryLocalService assetCategoryLocalService) {
483                    _assetCategoryLocalService = assetCategoryLocalService;
484            }
485    
486            public AssetCategoryLocalService getWrappedService() {
487                    return _assetCategoryLocalService;
488            }
489    
490            public void setWrappedService(
491                    AssetCategoryLocalService assetCategoryLocalService) {
492                    _assetCategoryLocalService = assetCategoryLocalService;
493            }
494    
495            private AssetCategoryLocalService _assetCategoryLocalService;
496    }