001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link AssetVocabularyLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see AssetVocabularyLocalService
026     * @generated
027     */
028    @ProviderType
029    public class AssetVocabularyLocalServiceWrapper
030            implements AssetVocabularyLocalService,
031                    ServiceWrapper<AssetVocabularyLocalService> {
032            public AssetVocabularyLocalServiceWrapper(
033                    AssetVocabularyLocalService assetVocabularyLocalService) {
034                    _assetVocabularyLocalService = assetVocabularyLocalService;
035            }
036    
037            /**
038            * Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.
039            *
040            * @param assetVocabulary the asset vocabulary
041            * @return the asset vocabulary that was added
042            */
043            @Override
044            public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
045                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
046                    return _assetVocabularyLocalService.addAssetVocabulary(assetVocabulary);
047            }
048    
049            @Override
050            public com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.PortalException {
053                    return _assetVocabularyLocalService.addDefaultVocabulary(groupId);
054            }
055    
056            @Override
057            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
058                    long userId, long groupId, java.lang.String title,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return _assetVocabularyLocalService.addVocabulary(userId, groupId,
062                            title, serviceContext);
063            }
064    
065            @Override
066            public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067                    long userId, long groupId, java.lang.String title,
068                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
069                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
070                    java.lang.String settings,
071                    com.liferay.portal.service.ServiceContext serviceContext)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return _assetVocabularyLocalService.addVocabulary(userId, groupId,
074                            title, titleMap, descriptionMap, settings, serviceContext);
075            }
076    
077            @Override
078            public void addVocabularyResources(
079                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
080                    boolean addGroupPermissions, boolean addGuestPermissions)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
083                            addGroupPermissions, addGuestPermissions);
084            }
085    
086            @Override
087            public void addVocabularyResources(
088                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
089                    com.liferay.portal.service.permission.ModelPermissions modelPermissions)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
092                            modelPermissions);
093            }
094    
095            /**
096            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
097            *
098            * @param vocabularyId the primary key for the new asset vocabulary
099            * @return the new asset vocabulary
100            */
101            @Override
102            public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
103                    long vocabularyId) {
104                    return _assetVocabularyLocalService.createAssetVocabulary(vocabularyId);
105            }
106    
107            /**
108            * Deletes the asset vocabulary from the database. Also notifies the appropriate model listeners.
109            *
110            * @param assetVocabulary the asset vocabulary
111            * @return the asset vocabulary that was removed
112            */
113            @Override
114            public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
115                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
116                    return _assetVocabularyLocalService.deleteAssetVocabulary(assetVocabulary);
117            }
118    
119            /**
120            * Deletes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
121            *
122            * @param vocabularyId the primary key of the asset vocabulary
123            * @return the asset vocabulary that was removed
124            * @throws PortalException if a asset vocabulary with the primary key could not be found
125            */
126            @Override
127            public com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
128                    long vocabularyId)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return _assetVocabularyLocalService.deleteAssetVocabulary(vocabularyId);
131            }
132    
133            /**
134            * @throws PortalException
135            */
136            @Override
137            public com.liferay.portal.model.PersistedModel deletePersistedModel(
138                    com.liferay.portal.model.PersistedModel persistedModel)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return _assetVocabularyLocalService.deletePersistedModel(persistedModel);
141            }
142    
143            @Override
144            public void deleteVocabularies(long groupId)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    _assetVocabularyLocalService.deleteVocabularies(groupId);
147            }
148    
149            @Override
150            public com.liferay.portlet.asset.model.AssetVocabulary deleteVocabulary(
151                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
152                    throws com.liferay.portal.kernel.exception.PortalException {
153                    return _assetVocabularyLocalService.deleteVocabulary(vocabulary);
154            }
155    
156            @Override
157            public void deleteVocabulary(long vocabularyId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    _assetVocabularyLocalService.deleteVocabulary(vocabularyId);
160            }
161    
162            @Override
163            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
164                    return _assetVocabularyLocalService.dynamicQuery();
165            }
166    
167            /**
168            * Performs a dynamic query on the database and returns the matching rows.
169            *
170            * @param dynamicQuery the dynamic query
171            * @return the matching rows
172            */
173            @Override
174            public <T> java.util.List<T> dynamicQuery(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
176                    return _assetVocabularyLocalService.dynamicQuery(dynamicQuery);
177            }
178    
179            /**
180            * Performs a dynamic query on the database and returns a range of the matching rows.
181            *
182            * <p>
183            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
184            * </p>
185            *
186            * @param dynamicQuery the dynamic query
187            * @param start the lower bound of the range of model instances
188            * @param end the upper bound of the range of model instances (not inclusive)
189            * @return the range of matching rows
190            */
191            @Override
192            public <T> java.util.List<T> dynamicQuery(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
194                    int end) {
195                    return _assetVocabularyLocalService.dynamicQuery(dynamicQuery, start,
196                            end);
197            }
198    
199            /**
200            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
201            *
202            * <p>
203            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
204            * </p>
205            *
206            * @param dynamicQuery the dynamic query
207            * @param start the lower bound of the range of model instances
208            * @param end the upper bound of the range of model instances (not inclusive)
209            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
210            * @return the ordered range of matching rows
211            */
212            @Override
213            public <T> java.util.List<T> dynamicQuery(
214                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
215                    int end,
216                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
217                    return _assetVocabularyLocalService.dynamicQuery(dynamicQuery, start,
218                            end, orderByComparator);
219            }
220    
221            /**
222            * Returns the number of rows matching the dynamic query.
223            *
224            * @param dynamicQuery the dynamic query
225            * @return the number of rows matching the dynamic query
226            */
227            @Override
228            public long dynamicQueryCount(
229                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
230                    return _assetVocabularyLocalService.dynamicQueryCount(dynamicQuery);
231            }
232    
233            /**
234            * Returns the number of rows matching the dynamic query.
235            *
236            * @param dynamicQuery the dynamic query
237            * @param projection the projection to apply to the query
238            * @return the number of rows matching the dynamic query
239            */
240            @Override
241            public long dynamicQueryCount(
242                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
243                    com.liferay.portal.kernel.dao.orm.Projection projection) {
244                    return _assetVocabularyLocalService.dynamicQueryCount(dynamicQuery,
245                            projection);
246            }
247    
248            @Override
249            public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
250                    long vocabularyId) {
251                    return _assetVocabularyLocalService.fetchAssetVocabulary(vocabularyId);
252            }
253    
254            /**
255            * Returns the asset vocabulary matching the UUID and group.
256            *
257            * @param uuid the asset vocabulary's UUID
258            * @param groupId the primary key of the group
259            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
260            */
261            @Override
262            public com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
263                    java.lang.String uuid, long groupId) {
264                    return _assetVocabularyLocalService.fetchAssetVocabularyByUuidAndGroupId(uuid,
265                            groupId);
266            }
267    
268            @Override
269            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
270                    return _assetVocabularyLocalService.getActionableDynamicQuery();
271            }
272    
273            /**
274            * Returns a range of all the asset vocabularies.
275            *
276            * <p>
277            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
278            * </p>
279            *
280            * @param start the lower bound of the range of asset vocabularies
281            * @param end the upper bound of the range of asset vocabularies (not inclusive)
282            * @return the range of asset vocabularies
283            */
284            @Override
285            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
286                    int start, int end) {
287                    return _assetVocabularyLocalService.getAssetVocabularies(start, end);
288            }
289    
290            /**
291            * Returns all the asset vocabularies matching the UUID and company.
292            *
293            * @param uuid the UUID of the asset vocabularies
294            * @param companyId the primary key of the company
295            * @return the matching asset vocabularies, or an empty list if no matches were found
296            */
297            @Override
298            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
299                    java.lang.String uuid, long companyId) {
300                    return _assetVocabularyLocalService.getAssetVocabulariesByUuidAndCompanyId(uuid,
301                            companyId);
302            }
303    
304            /**
305            * Returns a range of asset vocabularies matching the UUID and company.
306            *
307            * @param uuid the UUID of the asset vocabularies
308            * @param companyId the primary key of the company
309            * @param start the lower bound of the range of asset vocabularies
310            * @param end the upper bound of the range of asset vocabularies (not inclusive)
311            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
312            * @return the range of matching asset vocabularies, or an empty list if no matches were found
313            */
314            @Override
315            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
316                    java.lang.String uuid, long companyId, int start, int end,
317                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator) {
318                    return _assetVocabularyLocalService.getAssetVocabulariesByUuidAndCompanyId(uuid,
319                            companyId, start, end, orderByComparator);
320            }
321    
322            /**
323            * Returns the number of asset vocabularies.
324            *
325            * @return the number of asset vocabularies
326            */
327            @Override
328            public int getAssetVocabulariesCount() {
329                    return _assetVocabularyLocalService.getAssetVocabulariesCount();
330            }
331    
332            /**
333            * Returns the asset vocabulary with the primary key.
334            *
335            * @param vocabularyId the primary key of the asset vocabulary
336            * @return the asset vocabulary
337            * @throws PortalException if a asset vocabulary with the primary key could not be found
338            */
339            @Override
340            public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
341                    long vocabularyId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    return _assetVocabularyLocalService.getAssetVocabulary(vocabularyId);
344            }
345    
346            /**
347            * Returns the asset vocabulary matching the UUID and group.
348            *
349            * @param uuid the asset vocabulary's UUID
350            * @param groupId the primary key of the group
351            * @return the matching asset vocabulary
352            * @throws PortalException if a matching asset vocabulary could not be found
353            */
354            @Override
355            public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
356                    java.lang.String uuid, long groupId)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    return _assetVocabularyLocalService.getAssetVocabularyByUuidAndGroupId(uuid,
359                            groupId);
360            }
361    
362            @Override
363            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
364                    long companyId) {
365                    return _assetVocabularyLocalService.getCompanyVocabularies(companyId);
366            }
367    
368            @Override
369            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
370                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
371                    return _assetVocabularyLocalService.getExportActionableDynamicQuery(portletDataContext);
372            }
373    
374            @Override
375            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
376                    long groupId)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    return _assetVocabularyLocalService.getGroupVocabularies(groupId);
379            }
380    
381            @Override
382            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
383                    long groupId, boolean addDefaultVocabulary)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _assetVocabularyLocalService.getGroupVocabularies(groupId,
386                            addDefaultVocabulary);
387            }
388    
389            @Override
390            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
391                    long groupId, java.lang.String name, int start, int end,
392                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
393                    return _assetVocabularyLocalService.getGroupVocabularies(groupId, name,
394                            start, end, obc);
395            }
396    
397            @Override
398            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
399                    long[] groupIds) {
400                    return _assetVocabularyLocalService.getGroupVocabularies(groupIds);
401            }
402    
403            @Override
404            public int getGroupVocabulariesCount(long[] groupIds) {
405                    return _assetVocabularyLocalService.getGroupVocabulariesCount(groupIds);
406            }
407    
408            @Override
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                    return _assetVocabularyLocalService.getGroupVocabulary(groupId, name);
413            }
414    
415            @Override
416            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
417                    long[] groupIds) {
418                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds);
419            }
420    
421            @Override
422            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
423                    long[] groupIds, java.lang.String className) {
424                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds,
425                            className);
426            }
427    
428            @Override
429            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
430                    long[] groupIds, java.lang.String className, long classTypePK) {
431                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds,
432                            className, classTypePK);
433            }
434    
435            @Override
436            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
437                    return _assetVocabularyLocalService.getIndexableActionableDynamicQuery();
438            }
439    
440            /**
441            * Returns the OSGi service identifier.
442            *
443            * @return the OSGi service identifier
444            */
445            @Override
446            public java.lang.String getOSGiServiceIdentifier() {
447                    return _assetVocabularyLocalService.getOSGiServiceIdentifier();
448            }
449    
450            @Override
451            public com.liferay.portal.model.PersistedModel getPersistedModel(
452                    java.io.Serializable primaryKeyObj)
453                    throws com.liferay.portal.kernel.exception.PortalException {
454                    return _assetVocabularyLocalService.getPersistedModel(primaryKeyObj);
455            }
456    
457            @Override
458            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
459                    com.liferay.portal.kernel.search.Hits hits)
460                    throws com.liferay.portal.kernel.exception.PortalException {
461                    return _assetVocabularyLocalService.getVocabularies(hits);
462            }
463    
464            @Override
465            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
466                    long[] vocabularyIds)
467                    throws com.liferay.portal.kernel.exception.PortalException {
468                    return _assetVocabularyLocalService.getVocabularies(vocabularyIds);
469            }
470    
471            @Override
472            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
473                    long vocabularyId)
474                    throws com.liferay.portal.kernel.exception.PortalException {
475                    return _assetVocabularyLocalService.getVocabulary(vocabularyId);
476            }
477    
478            @Override
479            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
480                    long companyId, long groupId, java.lang.String title, int start, int end)
481                    throws com.liferay.portal.kernel.exception.PortalException {
482                    return _assetVocabularyLocalService.searchVocabularies(companyId,
483                            groupId, title, start, end);
484            }
485    
486            @Override
487            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
488                    long companyId, long groupId, java.lang.String title, int start,
489                    int end, com.liferay.portal.kernel.search.Sort sort)
490                    throws com.liferay.portal.kernel.exception.PortalException {
491                    return _assetVocabularyLocalService.searchVocabularies(companyId,
492                            groupId, title, start, end, sort);
493            }
494    
495            /**
496            * Updates the asset vocabulary in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
497            *
498            * @param assetVocabulary the asset vocabulary
499            * @return the asset vocabulary that was updated
500            */
501            @Override
502            public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
503                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
504                    return _assetVocabularyLocalService.updateAssetVocabulary(assetVocabulary);
505            }
506    
507            @Override
508            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
509                    long vocabularyId, java.lang.String title,
510                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
511                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
512                    java.lang.String settings,
513                    com.liferay.portal.service.ServiceContext serviceContext)
514                    throws com.liferay.portal.kernel.exception.PortalException {
515                    return _assetVocabularyLocalService.updateVocabulary(vocabularyId,
516                            title, titleMap, descriptionMap, settings, serviceContext);
517            }
518    
519            @Override
520            public AssetVocabularyLocalService getWrappedService() {
521                    return _assetVocabularyLocalService;
522            }
523    
524            @Override
525            public void setWrappedService(
526                    AssetVocabularyLocalService assetVocabularyLocalService) {
527                    _assetVocabularyLocalService = assetVocabularyLocalService;
528            }
529    
530            private AssetVocabularyLocalService _assetVocabularyLocalService;
531    }