001    /**
002     * Copyright (c) 2000-2010 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 AssetCategoryLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AssetCategoryLocalService
024     * @generated
025     */
026    public class AssetCategoryLocalServiceWrapper
027            implements AssetCategoryLocalService {
028            public AssetCategoryLocalServiceWrapper(
029                    AssetCategoryLocalService assetCategoryLocalService) {
030                    _assetCategoryLocalService = assetCategoryLocalService;
031            }
032    
033            /**
034            * Adds the asset category to the database. Also notifies the appropriate model listeners.
035            *
036            * @param assetCategory the asset category to add
037            * @return the asset category that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
041                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _assetCategoryLocalService.addAssetCategory(assetCategory);
044            }
045    
046            /**
047            * Creates a new asset category with the primary key. Does not add the asset category to the database.
048            *
049            * @param categoryId the primary key for the new asset category
050            * @return the new asset category
051            */
052            public com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
053                    long categoryId) {
054                    return _assetCategoryLocalService.createAssetCategory(categoryId);
055            }
056    
057            /**
058            * Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param categoryId the primary key of the asset category to delete
061            * @throws PortalException if a asset category with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteAssetCategory(long categoryId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _assetCategoryLocalService.deleteAssetCategory(categoryId);
068            }
069    
070            /**
071            * Deletes the asset category from the database. Also notifies the appropriate model listeners.
072            *
073            * @param assetCategory the asset category to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteAssetCategory(
077                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _assetCategoryLocalService.deleteAssetCategory(assetCategory);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
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 _assetCategoryLocalService.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 to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (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 _assetCategoryLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _assetCategoryLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _assetCategoryLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the asset category with the primary key.
155            *
156            * @param categoryId the primary key of the asset category to get
157            * @return the asset category
158            * @throws PortalException if a asset category with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
162                    long categoryId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _assetCategoryLocalService.getAssetCategory(categoryId);
166            }
167    
168            /**
169            * Gets the asset category with the UUID and group id.
170            *
171            * @param uuid the UUID of asset category to get
172            * @param groupId the group id of the asset category to get
173            * @return the asset category
174            * @throws PortalException if a asset category with the UUID and group id could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
178                    java.lang.String uuid, long groupId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _assetCategoryLocalService.getAssetCategoryByUuidAndGroupId(uuid,
182                            groupId);
183            }
184    
185            /**
186            * Gets a range of all the asset categories.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of asset categories to return
193            * @param end the upper bound of the range of asset categories to return (not inclusive)
194            * @return the range of asset categories
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _assetCategoryLocalService.getAssetCategories(start, end);
201            }
202    
203            /**
204            * Gets the number of asset categories.
205            *
206            * @return the number of asset categories
207            * @throws SystemException if a system exception occurred
208            */
209            public int getAssetCategoriesCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _assetCategoryLocalService.getAssetCategoriesCount();
212            }
213    
214            /**
215            * Updates the asset category in the database. Also notifies the appropriate model listeners.
216            *
217            * @param assetCategory the asset category to update
218            * @return the asset category that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
222                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _assetCategoryLocalService.updateAssetCategory(assetCategory);
225            }
226    
227            /**
228            * Updates the asset category in the database. Also notifies the appropriate model listeners.
229            *
230            * @param assetCategory the asset category to update
231            * @param merge whether to merge the asset category 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.
232            * @return the asset category that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
236                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _assetCategoryLocalService.updateAssetCategory(assetCategory,
240                            merge);
241            }
242    
243            public com.liferay.portlet.asset.model.AssetCategory addCategory(
244                    long userId, long parentCategoryId,
245                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
246                    long vocabularyId, java.lang.String[] categoryProperties,
247                    com.liferay.portal.service.ServiceContext serviceContext)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException {
250                    return _assetCategoryLocalService.addCategory(userId, parentCategoryId,
251                            titleMap, vocabularyId, categoryProperties, serviceContext);
252            }
253    
254            public void addCategoryResources(
255                    com.liferay.portlet.asset.model.AssetCategory category,
256                    boolean addCommunityPermissions, boolean addGuestPermissions)
257                    throws com.liferay.portal.kernel.exception.PortalException,
258                            com.liferay.portal.kernel.exception.SystemException {
259                    _assetCategoryLocalService.addCategoryResources(category,
260                            addCommunityPermissions, addGuestPermissions);
261            }
262    
263            public void addCategoryResources(
264                    com.liferay.portlet.asset.model.AssetCategory category,
265                    java.lang.String[] communityPermissions,
266                    java.lang.String[] guestPermissions)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _assetCategoryLocalService.addCategoryResources(category,
270                            communityPermissions, guestPermissions);
271            }
272    
273            public void deleteCategory(
274                    com.liferay.portlet.asset.model.AssetCategory category)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _assetCategoryLocalService.deleteCategory(category);
278            }
279    
280            public void deleteCategory(long categoryId)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    _assetCategoryLocalService.deleteCategory(categoryId);
284            }
285    
286            public void deleteVocabularyCategories(long vocabularyId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _assetCategoryLocalService.deleteVocabularyCategories(vocabularyId);
290            }
291    
292            public java.lang.String[] getCategoryNames()
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _assetCategoryLocalService.getCategoryNames();
295            }
296    
297            public java.lang.String[] getCategoryNames(long classNameId, long classPK)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _assetCategoryLocalService.getCategoryNames(classNameId, classPK);
300            }
301    
302            public java.lang.String[] getCategoryNames(java.lang.String className,
303                    long classPK)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _assetCategoryLocalService.getCategoryNames(className, classPK);
306            }
307    
308            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _assetCategoryLocalService.getCategories();
311            }
312    
313            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
314                    long classNameId, long classPK)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return _assetCategoryLocalService.getCategories(classNameId, classPK);
317            }
318    
319            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
320                    java.lang.String className, long classPK)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _assetCategoryLocalService.getCategories(className, classPK);
323            }
324    
325            public com.liferay.portlet.asset.model.AssetCategory getCategory(
326                    long categoryId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _assetCategoryLocalService.getCategory(categoryId);
330            }
331    
332            public long[] getCategoryIds(java.lang.String className, long classPK)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _assetCategoryLocalService.getCategoryIds(className, classPK);
335            }
336    
337            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
338                    long parentCategoryId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _assetCategoryLocalService.getChildCategories(parentCategoryId);
341            }
342    
343            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
344                    long parentCategoryId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator obc)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _assetCategoryLocalService.getChildCategories(parentCategoryId,
348                            start, end, obc);
349            }
350    
351            public int getChildCategoriesCount(long parentCategoryId)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _assetCategoryLocalService.getChildCategoriesCount(parentCategoryId);
354            }
355    
356            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
357                    long entryId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _assetCategoryLocalService.getEntryCategories(entryId);
360            }
361    
362            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
363                    long vocabularyId, int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator obc)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _assetCategoryLocalService.getVocabularyCategories(vocabularyId,
367                            start, end, obc);
368            }
369    
370            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
371                    long parentCategoryId, long vocabularyId, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator obc)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _assetCategoryLocalService.getVocabularyCategories(parentCategoryId,
375                            vocabularyId, start, end, obc);
376            }
377    
378            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
379                    long vocabularyId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator obc)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _assetCategoryLocalService.getVocabularyRootCategories(vocabularyId,
383                            start, end, obc);
384            }
385    
386            public void mergeCategories(long fromCategoryId, long toCategoryId)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    _assetCategoryLocalService.mergeCategories(fromCategoryId, toCategoryId);
390            }
391    
392            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
393                    long groupId, java.lang.String name,
394                    java.lang.String[] categoryProperties, int start, int end)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _assetCategoryLocalService.search(groupId, name,
397                            categoryProperties, start, end);
398            }
399    
400            public com.liferay.portlet.asset.model.AssetCategory updateCategory(
401                    long userId, long categoryId, long parentCategoryId,
402                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
403                    long vocabularyId, java.lang.String[] categoryProperties,
404                    com.liferay.portal.service.ServiceContext serviceContext)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    return _assetCategoryLocalService.updateCategory(userId, categoryId,
408                            parentCategoryId, titleMap, vocabularyId, categoryProperties,
409                            serviceContext);
410            }
411    
412            public AssetCategoryLocalService getWrappedAssetCategoryLocalService() {
413                    return _assetCategoryLocalService;
414            }
415    
416            private AssetCategoryLocalService _assetCategoryLocalService;
417    }