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