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