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