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.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link PortletItemLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PortletItemLocalService
024     * @generated
025     */
026    @ProviderType
027    public class PortletItemLocalServiceWrapper implements PortletItemLocalService,
028            ServiceWrapper<PortletItemLocalService> {
029            public PortletItemLocalServiceWrapper(
030                    PortletItemLocalService portletItemLocalService) {
031                    _portletItemLocalService = portletItemLocalService;
032            }
033    
034            /**
035            * Adds the portlet item to the database. Also notifies the appropriate model listeners.
036            *
037            * @param portletItem the portlet item
038            * @return the portlet item that was added
039            */
040            @Override
041            public com.liferay.portal.model.PortletItem addPortletItem(
042                    com.liferay.portal.model.PortletItem portletItem) {
043                    return _portletItemLocalService.addPortletItem(portletItem);
044            }
045    
046            @Override
047            public com.liferay.portal.model.PortletItem addPortletItem(long userId,
048                    long groupId, java.lang.String name, java.lang.String portletId,
049                    java.lang.String className)
050                    throws com.liferay.portal.kernel.exception.PortalException {
051                    return _portletItemLocalService.addPortletItem(userId, groupId, name,
052                            portletId, className);
053            }
054    
055            /**
056            * Creates a new portlet item with the primary key. Does not add the portlet item to the database.
057            *
058            * @param portletItemId the primary key for the new portlet item
059            * @return the new portlet item
060            */
061            @Override
062            public com.liferay.portal.model.PortletItem createPortletItem(
063                    long portletItemId) {
064                    return _portletItemLocalService.createPortletItem(portletItemId);
065            }
066    
067            /**
068            * @throws PortalException
069            */
070            @Override
071            public com.liferay.portal.model.PersistedModel deletePersistedModel(
072                    com.liferay.portal.model.PersistedModel persistedModel)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    return _portletItemLocalService.deletePersistedModel(persistedModel);
075            }
076    
077            /**
078            * Deletes the portlet item from the database. Also notifies the appropriate model listeners.
079            *
080            * @param portletItem the portlet item
081            * @return the portlet item that was removed
082            */
083            @Override
084            public com.liferay.portal.model.PortletItem deletePortletItem(
085                    com.liferay.portal.model.PortletItem portletItem) {
086                    return _portletItemLocalService.deletePortletItem(portletItem);
087            }
088    
089            /**
090            * Deletes the portlet item with the primary key from the database. Also notifies the appropriate model listeners.
091            *
092            * @param portletItemId the primary key of the portlet item
093            * @return the portlet item that was removed
094            * @throws PortalException if a portlet item with the primary key could not be found
095            */
096            @Override
097            public com.liferay.portal.model.PortletItem deletePortletItem(
098                    long portletItemId)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    return _portletItemLocalService.deletePortletItem(portletItemId);
101            }
102    
103            @Override
104            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
105                    return _portletItemLocalService.dynamicQuery();
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns the matching rows.
110            *
111            * @param dynamicQuery the dynamic query
112            * @return the matching rows
113            */
114            @Override
115            public <T> java.util.List<T> dynamicQuery(
116                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
117                    return _portletItemLocalService.dynamicQuery(dynamicQuery);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns a 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. 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.portal.model.impl.PortletItemModelImpl}. 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.
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            * @return the range of matching rows
131            */
132            @Override
133            public <T> java.util.List<T> dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end) {
136                    return _portletItemLocalService.dynamicQuery(dynamicQuery, start, end);
137            }
138    
139            /**
140            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
141            *
142            * <p>
143            * 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.portal.model.impl.PortletItemModelImpl}. 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.
144            * </p>
145            *
146            * @param dynamicQuery the dynamic query
147            * @param start the lower bound of the range of model instances
148            * @param end the upper bound of the range of model instances (not inclusive)
149            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
150            * @return the ordered range of matching rows
151            */
152            @Override
153            public <T> java.util.List<T> dynamicQuery(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
155                    int end,
156                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
157                    return _portletItemLocalService.dynamicQuery(dynamicQuery, start, end,
158                            orderByComparator);
159            }
160    
161            /**
162            * Returns the number of rows matching the dynamic query.
163            *
164            * @param dynamicQuery the dynamic query
165            * @return the number of rows matching the dynamic query
166            */
167            @Override
168            public long dynamicQueryCount(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
170                    return _portletItemLocalService.dynamicQueryCount(dynamicQuery);
171            }
172    
173            /**
174            * Returns the number of rows matching the dynamic query.
175            *
176            * @param dynamicQuery the dynamic query
177            * @param projection the projection to apply to the query
178            * @return the number of rows matching the dynamic query
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection) {
184                    return _portletItemLocalService.dynamicQueryCount(dynamicQuery,
185                            projection);
186            }
187    
188            @Override
189            public com.liferay.portal.model.PortletItem fetchPortletItem(
190                    long portletItemId) {
191                    return _portletItemLocalService.fetchPortletItem(portletItemId);
192            }
193    
194            @Override
195            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
196                    return _portletItemLocalService.getActionableDynamicQuery();
197            }
198    
199            @Override
200            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
201                    return _portletItemLocalService.getIndexableActionableDynamicQuery();
202            }
203    
204            /**
205            * Returns the OSGi service identifier.
206            *
207            * @return the OSGi service identifier
208            */
209            @Override
210            public java.lang.String getOSGiServiceIdentifier() {
211                    return _portletItemLocalService.getOSGiServiceIdentifier();
212            }
213    
214            @Override
215            public com.liferay.portal.model.PersistedModel getPersistedModel(
216                    java.io.Serializable primaryKeyObj)
217                    throws com.liferay.portal.kernel.exception.PortalException {
218                    return _portletItemLocalService.getPersistedModel(primaryKeyObj);
219            }
220    
221            @Override
222            public com.liferay.portal.model.PortletItem getPortletItem(long groupId,
223                    java.lang.String name, java.lang.String portletId,
224                    java.lang.String className)
225                    throws com.liferay.portal.kernel.exception.PortalException {
226                    return _portletItemLocalService.getPortletItem(groupId, name,
227                            portletId, className);
228            }
229    
230            /**
231            * Returns the portlet item with the primary key.
232            *
233            * @param portletItemId the primary key of the portlet item
234            * @return the portlet item
235            * @throws PortalException if a portlet item with the primary key could not be found
236            */
237            @Override
238            public com.liferay.portal.model.PortletItem getPortletItem(
239                    long portletItemId)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _portletItemLocalService.getPortletItem(portletItemId);
242            }
243    
244            @Override
245            public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
246                    long groupId, java.lang.String className) {
247                    return _portletItemLocalService.getPortletItems(groupId, className);
248            }
249    
250            @Override
251            public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
252                    long groupId, java.lang.String portletId, java.lang.String className) {
253                    return _portletItemLocalService.getPortletItems(groupId, portletId,
254                            className);
255            }
256    
257            /**
258            * Returns a range of all the portlet items.
259            *
260            * <p>
261            * 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.portal.model.impl.PortletItemModelImpl}. 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.
262            * </p>
263            *
264            * @param start the lower bound of the range of portlet items
265            * @param end the upper bound of the range of portlet items (not inclusive)
266            * @return the range of portlet items
267            */
268            @Override
269            public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems(
270                    int start, int end) {
271                    return _portletItemLocalService.getPortletItems(start, end);
272            }
273    
274            /**
275            * Returns the number of portlet items.
276            *
277            * @return the number of portlet items
278            */
279            @Override
280            public int getPortletItemsCount() {
281                    return _portletItemLocalService.getPortletItemsCount();
282            }
283    
284            /**
285            * Updates the portlet item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286            *
287            * @param portletItem the portlet item
288            * @return the portlet item that was updated
289            */
290            @Override
291            public com.liferay.portal.model.PortletItem updatePortletItem(
292                    com.liferay.portal.model.PortletItem portletItem) {
293                    return _portletItemLocalService.updatePortletItem(portletItem);
294            }
295    
296            @Override
297            public com.liferay.portal.model.PortletItem updatePortletItem(long userId,
298                    long groupId, java.lang.String name, java.lang.String portletId,
299                    java.lang.String className)
300                    throws com.liferay.portal.kernel.exception.PortalException {
301                    return _portletItemLocalService.updatePortletItem(userId, groupId,
302                            name, portletId, className);
303            }
304    
305            @Override
306            public PortletItemLocalService getWrappedService() {
307                    return _portletItemLocalService;
308            }
309    
310            @Override
311            public void setWrappedService(
312                    PortletItemLocalService portletItemLocalService) {
313                    _portletItemLocalService = portletItemLocalService;
314            }
315    
316            private PortletItemLocalService _portletItemLocalService;
317    }