001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    long vocabularyId, java.lang.String[] categoryProperties,
272                    com.liferay.portal.service.ServiceContext serviceContext)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    return _assetCategoryLocalService.addCategory(userId, parentCategoryId,
276                            titleMap, vocabularyId, categoryProperties, serviceContext);
277            }
278    
279            public void addCategoryResources(
280                    com.liferay.portlet.asset.model.AssetCategory category,
281                    boolean addCommunityPermissions, boolean addGuestPermissions)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _assetCategoryLocalService.addCategoryResources(category,
285                            addCommunityPermissions, addGuestPermissions);
286            }
287    
288            public void addCategoryResources(
289                    com.liferay.portlet.asset.model.AssetCategory category,
290                    java.lang.String[] communityPermissions,
291                    java.lang.String[] guestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _assetCategoryLocalService.addCategoryResources(category,
295                            communityPermissions, guestPermissions);
296            }
297    
298            public void deleteCategory(
299                    com.liferay.portlet.asset.model.AssetCategory category)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _assetCategoryLocalService.deleteCategory(category);
303            }
304    
305            public void deleteCategory(long categoryId)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _assetCategoryLocalService.deleteCategory(categoryId);
309            }
310    
311            public void deleteVocabularyCategories(long vocabularyId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
315            }
316    
317            public java.lang.String[] getCategoryNames()
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _assetCategoryLocalService.getCategoryNames();
320            }
321    
322            public java.lang.String[] getCategoryNames(long classNameId, long classPK)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _assetCategoryLocalService.getCategoryNames(classNameId, classPK);
325            }
326    
327            public java.lang.String[] getCategoryNames(java.lang.String className,
328                    long classPK)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _assetCategoryLocalService.getCategoryNames(className, classPK);
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.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
363                    long parentCategoryId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _assetCategoryLocalService.getChildCategories(parentCategoryId);
366            }
367    
368            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
369                    long parentCategoryId, int start, int end,
370                    com.liferay.portal.kernel.util.OrderByComparator obc)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _assetCategoryLocalService.getChildCategories(parentCategoryId,
373                            start, end, obc);
374            }
375    
376            public int getChildCategoriesCount(long parentCategoryId)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _assetCategoryLocalService.getChildCategoriesCount(parentCategoryId);
379            }
380    
381            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
382                    long entryId)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _assetCategoryLocalService.getEntryCategories(entryId);
385            }
386    
387            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
388                    long vocabularyId, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator obc)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _assetCategoryLocalService.getVocabularyCategories(vocabularyId,
392                            start, end, obc);
393            }
394    
395            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
396                    long parentCategoryId, long vocabularyId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator obc)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _assetCategoryLocalService.getVocabularyCategories(parentCategoryId,
400                            vocabularyId, start, end, obc);
401            }
402    
403            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
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.getVocabularyRootCategories(vocabularyId,
408                            start, end, obc);
409            }
410    
411            public void mergeCategories(long fromCategoryId, long toCategoryId)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
415            }
416    
417            public com.liferay.portlet.asset.model.AssetCategory moveCategory(
418                    long categoryId, long parentCategoryId, long vocabularyId,
419                    com.liferay.portal.service.ServiceContext serviceContext)
420                    throws com.liferay.portal.kernel.exception.PortalException,
421                            com.liferay.portal.kernel.exception.SystemException {
422                    return _assetCategoryLocalService.moveCategory(categoryId,
423                            parentCategoryId, vocabularyId, serviceContext);
424            }
425    
426            public void rebuildTree(long groupId, boolean force)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    _assetCategoryLocalService.rebuildTree(groupId, force);
429            }
430    
431            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
432                    long groupId, java.lang.String name,
433                    java.lang.String[] categoryProperties, int start, int end)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return _assetCategoryLocalService.search(groupId, name,
436                            categoryProperties, start, end);
437            }
438    
439            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
440                    long userId, long categoryId, long parentCategoryId,
441                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
442                    long vocabularyId, java.lang.String[] categoryProperties,
443                    com.liferay.portal.service.ServiceContext serviceContext)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    return _assetCategoryLocalService.updateCategory(userId, categoryId,
447                            parentCategoryId, titleMap, vocabularyId, categoryProperties,
448                            serviceContext);
449            }
450    
451            public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
452                    return _assetCategoryLocalService;
453            }
454    
455            public void setWrappedAssetCategoryLocalService(
456                    AssetCategoryLocalService assetCategoryLocalService) {
457                    _assetCategoryLocalService = assetCategoryLocalService;
458            }
459    
460            private AssetCategoryLocalService _assetCategoryLocalService;
461    }