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