001    /**
002     * Copyright (c) 2000-2011 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     * <p>
019     * This class is a wrapper for {@link AssetCategoryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AssetCategoryLocalService
024     * @generated
025     */
026    public class AssetCategoryLocalServiceWrapper
027            implements AssetCategoryLocalService {
028            public AssetCategoryLocalServiceWrapper(
029                    AssetCategoryLocalService assetCategoryLocalService) {
030                    _assetCategoryLocalService = assetCategoryLocalService;
031            }
032    
033            /**
034            * Adds the asset category to the database. Also notifies the appropriate model listeners.
035            *
036            * @param assetCategory the asset category
037            * @return the asset category that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
041                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _assetCategoryLocalService.addAssetCategory(assetCategory);
044            }
045    
046            /**
047            * Creates a new asset category with the primary key. Does not add the asset category to the database.
048            *
049            * @param categoryId the primary key for the new asset category
050            * @return the new asset category
051            */
052            public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
053                    long categoryId) {
054                    return _assetCategoryLocalService.createAssetCategory(categoryId);
055            }
056    
057            /**
058            * Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param categoryId the primary key of the asset category
061            * @throws PortalException if a asset category with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteAssetCategory(long categoryId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _assetCategoryLocalService.deleteAssetCategory(categoryId);
068            }
069    
070            /**
071            * Deletes the asset category from the database. Also notifies the appropriate model listeners.
072            *
073            * @param assetCategory the asset category
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteAssetCategory(
077                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _assetCategoryLocalService.deleteAssetCategory(assetCategory);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _assetCategoryLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the asset category with the primary key.
155            *
156            * @param categoryId the primary key of the asset category
157            * @return the asset category
158            * @throws PortalException if a asset category with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
162                    long categoryId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _assetCategoryLocalService.getAssetCategory(categoryId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _assetCategoryLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns the asset category with the UUID in the group.
177            *
178            * @param uuid the UUID of asset category
179            * @param groupId the group id of the asset category
180            * @return the asset category
181            * @throws PortalException if a asset category with the UUID in the group could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
185                    java.lang.String uuid, long groupId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _assetCategoryLocalService.getAssetCategoryByUuidAndGroupId(uuid,
189                            groupId);
190            }
191    
192            /**
193            * Returns a range of all the asset categories.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param start the lower bound of the range of asset categories
200            * @param end the upper bound of the range of asset categories (not inclusive)
201            * @return the range of asset categories
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _assetCategoryLocalService.getAssetCategories(start, end);
208            }
209    
210            /**
211            * Returns the number of asset categories.
212            *
213            * @return the number of asset categories
214            * @throws SystemException if a system exception occurred
215            */
216            public int getAssetCategoriesCount()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _assetCategoryLocalService.getAssetCategoriesCount();
219            }
220    
221            /**
222            * Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
223            *
224            * @param assetCategory the asset category
225            * @return the asset category that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
229                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _assetCategoryLocalService.updateAssetCategory(assetCategory);
232            }
233    
234            /**
235            * Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param assetCategory the asset category
238            * @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.
239            * @return the asset category that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
243                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
244                    boolean merge)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _assetCategoryLocalService.updateAssetCategory(assetCategory,
247                            merge);
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 long[] getCategoryIds(java.lang.String className, long classPK)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _assetCategoryLocalService.getCategoryIds(className, classPK);
351            }
352    
353            public java.lang.String[] getCategoryNames()
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _assetCategoryLocalService.getCategoryNames();
356            }
357    
358            public java.lang.String[] getCategoryNames(long classNameId, long classPK)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _assetCategoryLocalService.getCategoryNames(classNameId, classPK);
361            }
362    
363            public java.lang.String[] getCategoryNames(java.lang.String className,
364                    long classPK)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _assetCategoryLocalService.getCategoryNames(className, classPK);
367            }
368    
369            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
370                    long parentCategoryId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _assetCategoryLocalService.getChildCategories(parentCategoryId);
373            }
374    
375            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
376                    long parentCategoryId, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator obc)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _assetCategoryLocalService.getChildCategories(parentCategoryId,
380                            start, end, obc);
381            }
382    
383            public int getChildCategoriesCount(long parentCategoryId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _assetCategoryLocalService.getChildCategoriesCount(parentCategoryId);
386            }
387    
388            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
389                    long entryId)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _assetCategoryLocalService.getEntryCategories(entryId);
392            }
393    
394            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
395                    long vocabularyId, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator obc)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return _assetCategoryLocalService.getVocabularyCategories(vocabularyId,
399                            start, end, obc);
400            }
401    
402            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
403                    long parentCategoryId, long vocabularyId, int start, int end,
404                    com.liferay.portal.kernel.util.OrderByComparator obc)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _assetCategoryLocalService.getVocabularyCategories(parentCategoryId,
407                            vocabularyId, start, end, obc);
408            }
409    
410            public int getVocabularyCategoriesCount(long vocabularyId)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _assetCategoryLocalService.getVocabularyCategoriesCount(vocabularyId);
413            }
414    
415            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
416                    long vocabularyId, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator obc)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId,
420                            start, end, obc);
421            }
422    
423            public void mergeCategories(long fromCategoryId, long toCategoryId)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
427            }
428    
429            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
430                    long categoryId, long parentCategoryId, long vocabularyId,
431                    com.liferay.portal.service.ServiceContext serviceContext)
432                    throws com.liferay.portal.kernel.exception.PortalException,
433                            com.liferay.portal.kernel.exception.SystemException {
434                    return _assetCategoryLocalService.moveCategory(categoryId,
435                            parentCategoryId, vocabularyId, serviceContext);
436            }
437    
438            public void rebuildTree(long groupId, boolean force)
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    _assetCategoryLocalService.rebuildTree(groupId, force);
441            }
442    
443            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
444                    long groupId, java.lang.String name,
445                    java.lang.String[] categoryProperties, int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _assetCategoryLocalService.search(groupId, name,
448                            categoryProperties, start, end);
449            }
450    
451            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
452                    long userId, long categoryId, long parentCategoryId,
453                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
454                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
455                    long vocabularyId, java.lang.String[] categoryProperties,
456                    com.liferay.portal.service.ServiceContext serviceContext)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _assetCategoryLocalService.updateCategory(userId, categoryId,
460                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
461                            categoryProperties, serviceContext);
462            }
463    
464            public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
465                    return _assetCategoryLocalService;
466            }
467    
468            public void setWrappedAssetCategoryLocalService(
469                    AssetCategoryLocalService assetCategoryLocalService) {
470                    _assetCategoryLocalService = assetCategoryLocalService;
471            }
472    
473            private AssetCategoryLocalService _assetCategoryLocalService;
474    }