001    /**
002     * Copyright (c) 2000-2013 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 AssetVocabularyLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetVocabularyLocalService
026     * @generated
027     */
028    public class AssetVocabularyLocalServiceWrapper
029            implements AssetVocabularyLocalService,
030                    ServiceWrapper<AssetVocabularyLocalService> {
031            public AssetVocabularyLocalServiceWrapper(
032                    AssetVocabularyLocalService assetVocabularyLocalService) {
033                    _assetVocabularyLocalService = assetVocabularyLocalService;
034            }
035    
036            /**
037            * Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.
038            *
039            * @param assetVocabulary the asset vocabulary
040            * @return the asset vocabulary that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
044                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _assetVocabularyLocalService.addAssetVocabulary(assetVocabulary);
047            }
048    
049            /**
050            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
051            *
052            * @param vocabularyId the primary key for the new asset vocabulary
053            * @return the new asset vocabulary
054            */
055            public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
056                    long vocabularyId) {
057                    return _assetVocabularyLocalService.createAssetVocabulary(vocabularyId);
058            }
059    
060            /**
061            * Deletes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param vocabularyId the primary key of the asset vocabulary
064            * @return the asset vocabulary that was removed
065            * @throws PortalException if a asset vocabulary with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
069                    long vocabularyId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _assetVocabularyLocalService.deleteAssetVocabulary(vocabularyId);
073            }
074    
075            /**
076            * Deletes the asset vocabulary from the database. Also notifies the appropriate model listeners.
077            *
078            * @param assetVocabulary the asset vocabulary
079            * @return the asset vocabulary that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
083                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _assetVocabularyLocalService.deleteAssetVocabulary(assetVocabulary);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _assetVocabularyLocalService.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 _assetVocabularyLocalService.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.
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 _assetVocabularyLocalService.dynamicQuery(dynamicQuery, start,
124                            end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * 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.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            * @throws SystemException if a system exception occurred
140            */
141            @SuppressWarnings("rawtypes")
142            public java.util.List dynamicQuery(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144                    int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _assetVocabularyLocalService.dynamicQuery(dynamicQuery, start,
148                            end, orderByComparator);
149            }
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _assetVocabularyLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
165                    long vocabularyId)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _assetVocabularyLocalService.fetchAssetVocabulary(vocabularyId);
168            }
169    
170            /**
171            * Returns the asset vocabulary with the primary key.
172            *
173            * @param vocabularyId the primary key of the asset vocabulary
174            * @return the asset vocabulary
175            * @throws PortalException if a asset vocabulary with the primary key could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
179                    long vocabularyId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _assetVocabularyLocalService.getAssetVocabulary(vocabularyId);
183            }
184    
185            public com.liferay.portal.model.PersistedModel getPersistedModel(
186                    java.io.Serializable primaryKeyObj)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _assetVocabularyLocalService.getPersistedModel(primaryKeyObj);
190            }
191    
192            /**
193            * Returns the asset vocabulary with the UUID in the group.
194            *
195            * @param uuid the UUID of asset vocabulary
196            * @param groupId the group id of the asset vocabulary
197            * @return the asset vocabulary
198            * @throws PortalException if a asset vocabulary with the UUID in the group could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
202                    java.lang.String uuid, long groupId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return _assetVocabularyLocalService.getAssetVocabularyByUuidAndGroupId(uuid,
206                            groupId);
207            }
208    
209            /**
210            * Returns a range of all the asset vocabularies.
211            *
212            * <p>
213            * 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.
214            * </p>
215            *
216            * @param start the lower bound of the range of asset vocabularies
217            * @param end the upper bound of the range of asset vocabularies (not inclusive)
218            * @return the range of asset vocabularies
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
222                    int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _assetVocabularyLocalService.getAssetVocabularies(start, end);
225            }
226    
227            /**
228            * Returns the number of asset vocabularies.
229            *
230            * @return the number of asset vocabularies
231            * @throws SystemException if a system exception occurred
232            */
233            public int getAssetVocabulariesCount()
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _assetVocabularyLocalService.getAssetVocabulariesCount();
236            }
237    
238            /**
239            * Updates the asset vocabulary in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
240            *
241            * @param assetVocabulary the asset vocabulary
242            * @return the asset vocabulary that was updated
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
246                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    return _assetVocabularyLocalService.updateAssetVocabulary(assetVocabulary);
249            }
250    
251            /**
252            * Updates the asset vocabulary in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
253            *
254            * @param assetVocabulary the asset vocabulary
255            * @param merge whether to merge the asset vocabulary 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.
256            * @return the asset vocabulary that was updated
257            * @throws SystemException if a system exception occurred
258            */
259            public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
260                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
261                    boolean merge)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _assetVocabularyLocalService.updateAssetVocabulary(assetVocabulary,
264                            merge);
265            }
266    
267            /**
268            * Returns the Spring bean ID for this bean.
269            *
270            * @return the Spring bean ID for this bean
271            */
272            public java.lang.String getBeanIdentifier() {
273                    return _assetVocabularyLocalService.getBeanIdentifier();
274            }
275    
276            /**
277            * Sets the Spring bean ID for this bean.
278            *
279            * @param beanIdentifier the Spring bean ID for this bean
280            */
281            public void setBeanIdentifier(java.lang.String beanIdentifier) {
282                    _assetVocabularyLocalService.setBeanIdentifier(beanIdentifier);
283            }
284    
285            public com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
286                    long groupId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _assetVocabularyLocalService.addDefaultVocabulary(groupId);
290            }
291    
292            /**
293            * @deprecated
294            */
295            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
296                    long userId,
297                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
298                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
299                    java.lang.String settings,
300                    com.liferay.portal.service.ServiceContext serviceContext)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _assetVocabularyLocalService.addVocabulary(userId, titleMap,
304                            descriptionMap, settings, serviceContext);
305            }
306    
307            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
308                    long userId, java.lang.String title,
309                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
310                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
311                    java.lang.String settings,
312                    com.liferay.portal.service.ServiceContext serviceContext)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _assetVocabularyLocalService.addVocabulary(userId, title,
316                            titleMap, descriptionMap, settings, serviceContext);
317            }
318    
319            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
320                    long userId, java.lang.String title,
321                    com.liferay.portal.service.ServiceContext serviceContext)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _assetVocabularyLocalService.addVocabulary(userId, title,
325                            serviceContext);
326            }
327    
328            public void addVocabularyResources(
329                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
330                    boolean addGroupPermissions, boolean addGuestPermissions)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
334                            addGroupPermissions, addGuestPermissions);
335            }
336    
337            public void addVocabularyResources(
338                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
339                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
343                            groupPermissions, guestPermissions);
344            }
345    
346            public void deleteVocabularies(long groupId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    _assetVocabularyLocalService.deleteVocabularies(groupId);
350            }
351    
352            public void deleteVocabulary(
353                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    _assetVocabularyLocalService.deleteVocabulary(vocabulary);
357            }
358    
359            public void deleteVocabulary(long vocabularyId)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    _assetVocabularyLocalService.deleteVocabulary(vocabularyId);
363            }
364    
365            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
366                    long companyId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _assetVocabularyLocalService.getCompanyVocabularies(companyId);
369            }
370    
371            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
372                    long[] groupIds)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds);
376            }
377    
378            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
379                    long[] groupIds, java.lang.String className)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds,
383                            className);
384            }
385    
386            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
387                    long groupId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _assetVocabularyLocalService.getGroupVocabularies(groupId);
391            }
392    
393            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
394                    long groupId, boolean addDefaultVocabulary)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    return _assetVocabularyLocalService.getGroupVocabularies(groupId,
398                            addDefaultVocabulary);
399            }
400    
401            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
402                    long groupId, java.lang.String name, int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator obc)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _assetVocabularyLocalService.getGroupVocabularies(groupId, name,
406                            start, end, obc);
407            }
408    
409            public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
410                    long groupId, java.lang.String name)
411                    throws com.liferay.portal.kernel.exception.PortalException,
412                            com.liferay.portal.kernel.exception.SystemException {
413                    return _assetVocabularyLocalService.getGroupVocabulary(groupId, name);
414            }
415    
416            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
417                    long[] vocabularyIds)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    return _assetVocabularyLocalService.getVocabularies(vocabularyIds);
421            }
422    
423            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
424                    long vocabularyId)
425                    throws com.liferay.portal.kernel.exception.PortalException,
426                            com.liferay.portal.kernel.exception.SystemException {
427                    return _assetVocabularyLocalService.getVocabulary(vocabularyId);
428            }
429    
430            /**
431            * @deprecated
432            */
433            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
434                    long vocabularyId,
435                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
436                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
437                    java.lang.String settings,
438                    com.liferay.portal.service.ServiceContext serviceContext)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    return _assetVocabularyLocalService.updateVocabulary(vocabularyId,
442                            titleMap, descriptionMap, settings, serviceContext);
443            }
444    
445            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
446                    long vocabularyId, java.lang.String title,
447                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
448                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
449                    java.lang.String settings,
450                    com.liferay.portal.service.ServiceContext serviceContext)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    return _assetVocabularyLocalService.updateVocabulary(vocabularyId,
454                            title, titleMap, descriptionMap, settings, serviceContext);
455            }
456    
457            /**
458             * @deprecated Renamed to {@link #getWrappedService}
459             */
460            public AssetVocabularyLocalService getWrappedAssetVocabularyLocalService() {
461                    return _assetVocabularyLocalService;
462            }
463    
464            /**
465             * @deprecated Renamed to {@link #setWrappedService}
466             */
467            public void setWrappedAssetVocabularyLocalService(
468                    AssetVocabularyLocalService assetVocabularyLocalService) {
469                    _assetVocabularyLocalService = assetVocabularyLocalService;
470            }
471    
472            public AssetVocabularyLocalService getWrappedService() {
473                    return _assetVocabularyLocalService;
474            }
475    
476            public void setWrappedService(
477                    AssetVocabularyLocalService assetVocabularyLocalService) {
478                    _assetVocabularyLocalService = assetVocabularyLocalService;
479            }
480    
481            private AssetVocabularyLocalService _assetVocabularyLocalService;
482    }