001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link ShoppingCategoryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingCategoryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingCategoryLocalServiceWrapper
030            implements ShoppingCategoryLocalService,
031                    ServiceWrapper<ShoppingCategoryLocalService> {
032            public ShoppingCategoryLocalServiceWrapper(
033                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
034                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
035            }
036    
037            @Override
038            public com.liferay.portlet.shopping.model.ShoppingCategory addCategory(
039                    long userId, long parentCategoryId, java.lang.String name,
040                    java.lang.String description,
041                    com.liferay.portal.service.ServiceContext serviceContext)
042                    throws com.liferay.portal.kernel.exception.PortalException {
043                    return _shoppingCategoryLocalService.addCategory(userId,
044                            parentCategoryId, name, description, serviceContext);
045            }
046    
047            @Override
048            public void addCategoryResources(
049                    com.liferay.portlet.shopping.model.ShoppingCategory category,
050                    boolean addGroupPermissions, boolean addGuestPermissions)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    _shoppingCategoryLocalService.addCategoryResources(category,
053                            addGroupPermissions, addGuestPermissions);
054            }
055    
056            @Override
057            public void addCategoryResources(
058                    com.liferay.portlet.shopping.model.ShoppingCategory category,
059                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    _shoppingCategoryLocalService.addCategoryResources(category,
062                            groupPermissions, guestPermissions);
063            }
064    
065            @Override
066            public void addCategoryResources(long categoryId,
067                    boolean addGroupPermissions, boolean addGuestPermissions)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
070                            addGroupPermissions, addGuestPermissions);
071            }
072    
073            @Override
074            public void addCategoryResources(long categoryId,
075                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    _shoppingCategoryLocalService.addCategoryResources(categoryId,
078                            groupPermissions, guestPermissions);
079            }
080    
081            /**
082            * Adds the shopping category to the database. Also notifies the appropriate model listeners.
083            *
084            * @param shoppingCategory the shopping category
085            * @return the shopping category that was added
086            */
087            @Override
088            public com.liferay.portlet.shopping.model.ShoppingCategory addShoppingCategory(
089                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
090                    return _shoppingCategoryLocalService.addShoppingCategory(shoppingCategory);
091            }
092    
093            /**
094            * Creates a new shopping category with the primary key. Does not add the shopping category to the database.
095            *
096            * @param categoryId the primary key for the new shopping category
097            * @return the new shopping category
098            */
099            @Override
100            public com.liferay.portlet.shopping.model.ShoppingCategory createShoppingCategory(
101                    long categoryId) {
102                    return _shoppingCategoryLocalService.createShoppingCategory(categoryId);
103            }
104    
105            @Override
106            public void deleteCategories(long groupId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    _shoppingCategoryLocalService.deleteCategories(groupId);
109            }
110    
111            @Override
112            public void deleteCategory(
113                    com.liferay.portlet.shopping.model.ShoppingCategory category)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    _shoppingCategoryLocalService.deleteCategory(category);
116            }
117    
118            @Override
119            public void deleteCategory(long categoryId)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    _shoppingCategoryLocalService.deleteCategory(categoryId);
122            }
123    
124            /**
125            * @throws PortalException
126            */
127            @Override
128            public com.liferay.portal.model.PersistedModel deletePersistedModel(
129                    com.liferay.portal.model.PersistedModel persistedModel)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    return _shoppingCategoryLocalService.deletePersistedModel(persistedModel);
132            }
133    
134            /**
135            * Deletes the shopping category with the primary key from the database. Also notifies the appropriate model listeners.
136            *
137            * @param categoryId the primary key of the shopping category
138            * @return the shopping category that was removed
139            * @throws PortalException if a shopping category with the primary key could not be found
140            */
141            @Override
142            public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
143                    long categoryId)
144                    throws com.liferay.portal.kernel.exception.PortalException {
145                    return _shoppingCategoryLocalService.deleteShoppingCategory(categoryId);
146            }
147    
148            /**
149            * Deletes the shopping category from the database. Also notifies the appropriate model listeners.
150            *
151            * @param shoppingCategory the shopping category
152            * @return the shopping category that was removed
153            */
154            @Override
155            public com.liferay.portlet.shopping.model.ShoppingCategory deleteShoppingCategory(
156                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
157                    return _shoppingCategoryLocalService.deleteShoppingCategory(shoppingCategory);
158            }
159    
160            @Override
161            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
162                    return _shoppingCategoryLocalService.dynamicQuery();
163            }
164    
165            /**
166            * Performs a dynamic query on the database and returns the matching rows.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the matching rows
170            */
171            @Override
172            public <T> java.util.List<T> dynamicQuery(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery);
175            }
176    
177            /**
178            * Performs a dynamic query on the database and returns a range of the matching rows.
179            *
180            * <p>
181            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
182            * </p>
183            *
184            * @param dynamicQuery the dynamic query
185            * @param start the lower bound of the range of model instances
186            * @param end the upper bound of the range of model instances (not inclusive)
187            * @return the range of matching rows
188            */
189            @Override
190            public <T> java.util.List<T> dynamicQuery(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192                    int end) {
193                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
194                            end);
195            }
196    
197            /**
198            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
199            *
200            * <p>
201            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
202            * </p>
203            *
204            * @param dynamicQuery the dynamic query
205            * @param start the lower bound of the range of model instances
206            * @param end the upper bound of the range of model instances (not inclusive)
207            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
208            * @return the ordered range of matching rows
209            */
210            @Override
211            public <T> java.util.List<T> dynamicQuery(
212                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
213                    int end,
214                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
215                    return _shoppingCategoryLocalService.dynamicQuery(dynamicQuery, start,
216                            end, orderByComparator);
217            }
218    
219            /**
220            * Returns the number of rows matching the dynamic query.
221            *
222            * @param dynamicQuery the dynamic query
223            * @return the number of rows matching the dynamic query
224            */
225            @Override
226            public long dynamicQueryCount(
227                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
228                    return _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery);
229            }
230    
231            /**
232            * Returns the number of rows matching the dynamic query.
233            *
234            * @param dynamicQuery the dynamic query
235            * @param projection the projection to apply to the query
236            * @return the number of rows matching the dynamic query
237            */
238            @Override
239            public long dynamicQueryCount(
240                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
241                    com.liferay.portal.kernel.dao.orm.Projection projection) {
242                    return _shoppingCategoryLocalService.dynamicQueryCount(dynamicQuery,
243                            projection);
244            }
245    
246            @Override
247            public com.liferay.portlet.shopping.model.ShoppingCategory fetchShoppingCategory(
248                    long categoryId) {
249                    return _shoppingCategoryLocalService.fetchShoppingCategory(categoryId);
250            }
251    
252            @Override
253            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
254                    return _shoppingCategoryLocalService.getActionableDynamicQuery();
255            }
256    
257            /**
258            * Returns the Spring bean ID for this bean.
259            *
260            * @return the Spring bean ID for this bean
261            */
262            @Override
263            public java.lang.String getBeanIdentifier() {
264                    return _shoppingCategoryLocalService.getBeanIdentifier();
265            }
266    
267            @Override
268            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
269                    long groupId) {
270                    return _shoppingCategoryLocalService.getCategories(groupId);
271            }
272    
273            @Override
274            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getCategories(
275                    long groupId, long parentCategoryId, int start, int end) {
276                    return _shoppingCategoryLocalService.getCategories(groupId,
277                            parentCategoryId, start, end);
278            }
279    
280            @Override
281            public int getCategoriesCount(long groupId, long parentCategoryId) {
282                    return _shoppingCategoryLocalService.getCategoriesCount(groupId,
283                            parentCategoryId);
284            }
285    
286            @Override
287            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
288                    long categoryId)
289                    throws com.liferay.portal.kernel.exception.PortalException {
290                    return _shoppingCategoryLocalService.getCategory(categoryId);
291            }
292    
293            @Override
294            public com.liferay.portlet.shopping.model.ShoppingCategory getCategory(
295                    long groupId, java.lang.String categoryName) {
296                    return _shoppingCategoryLocalService.getCategory(groupId, categoryName);
297            }
298    
299            @Override
300            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
301                    com.liferay.portlet.shopping.model.ShoppingCategory category)
302                    throws com.liferay.portal.kernel.exception.PortalException {
303                    return _shoppingCategoryLocalService.getParentCategories(category);
304            }
305    
306            @Override
307            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getParentCategories(
308                    long categoryId)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return _shoppingCategoryLocalService.getParentCategories(categoryId);
311            }
312    
313            @Override
314            public com.liferay.portlet.shopping.model.ShoppingCategory getParentCategory(
315                    com.liferay.portlet.shopping.model.ShoppingCategory category)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    return _shoppingCategoryLocalService.getParentCategory(category);
318            }
319    
320            @Override
321            public com.liferay.portal.model.PersistedModel getPersistedModel(
322                    java.io.Serializable primaryKeyObj)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return _shoppingCategoryLocalService.getPersistedModel(primaryKeyObj);
325            }
326    
327            /**
328            * Returns a range of all the shopping categories.
329            *
330            * <p>
331            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
332            * </p>
333            *
334            * @param start the lower bound of the range of shopping categories
335            * @param end the upper bound of the range of shopping categories (not inclusive)
336            * @return the range of shopping categories
337            */
338            @Override
339            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> getShoppingCategories(
340                    int start, int end) {
341                    return _shoppingCategoryLocalService.getShoppingCategories(start, end);
342            }
343    
344            /**
345            * Returns the number of shopping categories.
346            *
347            * @return the number of shopping categories
348            */
349            @Override
350            public int getShoppingCategoriesCount() {
351                    return _shoppingCategoryLocalService.getShoppingCategoriesCount();
352            }
353    
354            /**
355            * Returns the shopping category with the primary key.
356            *
357            * @param categoryId the primary key of the shopping category
358            * @return the shopping category
359            * @throws PortalException if a shopping category with the primary key could not be found
360            */
361            @Override
362            public com.liferay.portlet.shopping.model.ShoppingCategory getShoppingCategory(
363                    long categoryId)
364                    throws com.liferay.portal.kernel.exception.PortalException {
365                    return _shoppingCategoryLocalService.getShoppingCategory(categoryId);
366            }
367    
368            @Override
369            public void getSubcategoryIds(java.util.List<java.lang.Long> categoryIds,
370                    long groupId, long categoryId) {
371                    _shoppingCategoryLocalService.getSubcategoryIds(categoryIds, groupId,
372                            categoryId);
373            }
374    
375            /**
376            * Sets the Spring bean ID for this bean.
377            *
378            * @param beanIdentifier the Spring bean ID for this bean
379            */
380            @Override
381            public void setBeanIdentifier(java.lang.String beanIdentifier) {
382                    _shoppingCategoryLocalService.setBeanIdentifier(beanIdentifier);
383            }
384    
385            @Override
386            public com.liferay.portlet.shopping.model.ShoppingCategory updateCategory(
387                    long categoryId, long parentCategoryId, java.lang.String name,
388                    java.lang.String description, boolean mergeWithParentCategory,
389                    com.liferay.portal.service.ServiceContext serviceContext)
390                    throws com.liferay.portal.kernel.exception.PortalException {
391                    return _shoppingCategoryLocalService.updateCategory(categoryId,
392                            parentCategoryId, name, description, mergeWithParentCategory,
393                            serviceContext);
394            }
395    
396            /**
397            * Updates the shopping category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
398            *
399            * @param shoppingCategory the shopping category
400            * @return the shopping category that was updated
401            */
402            @Override
403            public com.liferay.portlet.shopping.model.ShoppingCategory updateShoppingCategory(
404                    com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
405                    return _shoppingCategoryLocalService.updateShoppingCategory(shoppingCategory);
406            }
407    
408            /**
409             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
410             */
411            @Deprecated
412            public ShoppingCategoryLocalService getWrappedShoppingCategoryLocalService() {
413                    return _shoppingCategoryLocalService;
414            }
415    
416            /**
417             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
418             */
419            @Deprecated
420            public void setWrappedShoppingCategoryLocalService(
421                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
422                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
423            }
424    
425            @Override
426            public ShoppingCategoryLocalService getWrappedService() {
427                    return _shoppingCategoryLocalService;
428            }
429    
430            @Override
431            public void setWrappedService(
432                    ShoppingCategoryLocalService shoppingCategoryLocalService) {
433                    _shoppingCategoryLocalService = shoppingCategoryLocalService;
434            }
435    
436            private ShoppingCategoryLocalService _shoppingCategoryLocalService;
437    }