001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link 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 addCommunityPermissions, boolean addGuestPermissions)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
302                            addCommunityPermissions, addGuestPermissions);
303            }
304    
305            public void addVocabularyResources(
306                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
307                    java.lang.String[] communityPermissions,
308                    java.lang.String[] guestPermissions)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _assetVocabularyLocalService.addVocabularyResources(vocabulary,
312                            communityPermissions, guestPermissions);
313            }
314    
315            public void deleteVocabulary(
316                    com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _assetVocabularyLocalService.deleteVocabulary(vocabulary);
320            }
321    
322            public void deleteVocabulary(long vocabularyId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _assetVocabularyLocalService.deleteVocabulary(vocabularyId);
326            }
327    
328            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
329                    long companyId)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _assetVocabularyLocalService.getCompanyVocabularies(companyId);
332            }
333    
334            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
335                    long[] groupIds)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return _assetVocabularyLocalService.getGroupsVocabularies(groupIds);
339            }
340    
341            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
342                    long groupId)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return _assetVocabularyLocalService.getGroupVocabularies(groupId);
346            }
347    
348            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
349                    long groupId, boolean createDefaultVocabulary)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    return _assetVocabularyLocalService.getGroupVocabularies(groupId,
353                            createDefaultVocabulary);
354            }
355    
356            public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
357                    long groupId, java.lang.String name)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _assetVocabularyLocalService.getGroupVocabulary(groupId, name);
361            }
362    
363            public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
364                    long vocabularyId)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _assetVocabularyLocalService.getVocabulary(vocabularyId);
368            }
369    
370            /**
371            * @deprecated
372            */
373            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
374                    long vocabularyId,
375                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
376                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
377                    java.lang.String settings,
378                    com.liferay.portal.service.ServiceContext serviceContext)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _assetVocabularyLocalService.updateVocabulary(vocabularyId,
382                            titleMap, descriptionMap, settings, serviceContext);
383            }
384    
385            public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
386                    long vocabularyId, java.lang.String title,
387                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
388                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
389                    java.lang.String settings,
390                    com.liferay.portal.service.ServiceContext serviceContext)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _assetVocabularyLocalService.updateVocabulary(vocabularyId,
394                            title, titleMap, descriptionMap, settings, serviceContext);
395            }
396    
397            public AssetVocabularyLocalService getWrappedAssetVocabularyLocalService() {
398                    return _assetVocabularyLocalService;
399            }
400    
401            public void setWrappedAssetVocabularyLocalService(
402                    AssetVocabularyLocalService assetVocabularyLocalService) {
403                    _assetVocabularyLocalService = assetVocabularyLocalService;
404            }
405    
406            private AssetVocabularyLocalService _assetVocabularyLocalService;
407    }