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