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 RecentLayoutBranchLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see RecentLayoutBranchLocalService
024     * @generated
025     */
026    @ProviderType
027    public class RecentLayoutBranchLocalServiceWrapper
028            implements RecentLayoutBranchLocalService,
029                    ServiceWrapper<RecentLayoutBranchLocalService> {
030            public RecentLayoutBranchLocalServiceWrapper(
031                    RecentLayoutBranchLocalService recentLayoutBranchLocalService) {
032                    _recentLayoutBranchLocalService = recentLayoutBranchLocalService;
033            }
034    
035            /**
036            * Adds the recent layout branch to the database. Also notifies the appropriate model listeners.
037            *
038            * @param recentLayoutBranch the recent layout branch
039            * @return the recent layout branch that was added
040            */
041            @Override
042            public com.liferay.portal.model.RecentLayoutBranch addRecentLayoutBranch(
043                    com.liferay.portal.model.RecentLayoutBranch recentLayoutBranch) {
044                    return _recentLayoutBranchLocalService.addRecentLayoutBranch(recentLayoutBranch);
045            }
046    
047            @Override
048            public com.liferay.portal.model.RecentLayoutBranch addRecentLayoutBranch(
049                    long userId, long layoutBranchId, long layoutSetBranchId, long plid)
050                    throws com.liferay.portal.kernel.exception.PortalException {
051                    return _recentLayoutBranchLocalService.addRecentLayoutBranch(userId,
052                            layoutBranchId, layoutSetBranchId, plid);
053            }
054    
055            /**
056            * Creates a new recent layout branch with the primary key. Does not add the recent layout branch to the database.
057            *
058            * @param recentLayoutBranchId the primary key for the new recent layout branch
059            * @return the new recent layout branch
060            */
061            @Override
062            public com.liferay.portal.model.RecentLayoutBranch createRecentLayoutBranch(
063                    long recentLayoutBranchId) {
064                    return _recentLayoutBranchLocalService.createRecentLayoutBranch(recentLayoutBranchId);
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 _recentLayoutBranchLocalService.deletePersistedModel(persistedModel);
075            }
076    
077            /**
078            * Deletes the recent layout branch from the database. Also notifies the appropriate model listeners.
079            *
080            * @param recentLayoutBranch the recent layout branch
081            * @return the recent layout branch that was removed
082            */
083            @Override
084            public com.liferay.portal.model.RecentLayoutBranch deleteRecentLayoutBranch(
085                    com.liferay.portal.model.RecentLayoutBranch recentLayoutBranch) {
086                    return _recentLayoutBranchLocalService.deleteRecentLayoutBranch(recentLayoutBranch);
087            }
088    
089            /**
090            * Deletes the recent layout branch with the primary key from the database. Also notifies the appropriate model listeners.
091            *
092            * @param recentLayoutBranchId the primary key of the recent layout branch
093            * @return the recent layout branch that was removed
094            * @throws PortalException if a recent layout branch with the primary key could not be found
095            */
096            @Override
097            public com.liferay.portal.model.RecentLayoutBranch deleteRecentLayoutBranch(
098                    long recentLayoutBranchId)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    return _recentLayoutBranchLocalService.deleteRecentLayoutBranch(recentLayoutBranchId);
101            }
102    
103            @Override
104            public void deleteRecentLayoutBranches(long layoutBranchId) {
105                    _recentLayoutBranchLocalService.deleteRecentLayoutBranches(layoutBranchId);
106            }
107    
108            @Override
109            public void deleteUserRecentLayoutBranches(long userId) {
110                    _recentLayoutBranchLocalService.deleteUserRecentLayoutBranches(userId);
111            }
112    
113            @Override
114            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
115                    return _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.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.RecentLayoutBranchModelImpl}. 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 _recentLayoutBranchLocalService.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.RecentLayoutBranchModelImpl}. 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 _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.dynamicQueryCount(dynamicQuery,
196                            projection);
197            }
198    
199            @Override
200            public com.liferay.portal.model.RecentLayoutBranch fetchRecentLayoutBranch(
201                    long recentLayoutBranchId) {
202                    return _recentLayoutBranchLocalService.fetchRecentLayoutBranch(recentLayoutBranchId);
203            }
204    
205            @Override
206            public com.liferay.portal.model.RecentLayoutBranch fetchRecentLayoutBranch(
207                    long userId, long layoutSetBranchId, long plid) {
208                    return _recentLayoutBranchLocalService.fetchRecentLayoutBranch(userId,
209                            layoutSetBranchId, plid);
210            }
211    
212            @Override
213            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
214                    return _recentLayoutBranchLocalService.getActionableDynamicQuery();
215            }
216    
217            @Override
218            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
219                    return _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.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 _recentLayoutBranchLocalService.getPersistedModel(primaryKeyObj);
237            }
238    
239            /**
240            * Returns the recent layout branch with the primary key.
241            *
242            * @param recentLayoutBranchId the primary key of the recent layout branch
243            * @return the recent layout branch
244            * @throws PortalException if a recent layout branch with the primary key could not be found
245            */
246            @Override
247            public com.liferay.portal.model.RecentLayoutBranch getRecentLayoutBranch(
248                    long recentLayoutBranchId)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    return _recentLayoutBranchLocalService.getRecentLayoutBranch(recentLayoutBranchId);
251            }
252    
253            /**
254            * Returns a range of all the recent layout branchs.
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.RecentLayoutBranchModelImpl}. 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 branchs
261            * @param end the upper bound of the range of recent layout branchs (not inclusive)
262            * @return the range of recent layout branchs
263            */
264            @Override
265            public java.util.List<com.liferay.portal.model.RecentLayoutBranch> getRecentLayoutBranchs(
266                    int start, int end) {
267                    return _recentLayoutBranchLocalService.getRecentLayoutBranchs(start, end);
268            }
269    
270            /**
271            * Returns the number of recent layout branchs.
272            *
273            * @return the number of recent layout branchs
274            */
275            @Override
276            public int getRecentLayoutBranchsCount() {
277                    return _recentLayoutBranchLocalService.getRecentLayoutBranchsCount();
278            }
279    
280            /**
281            * Updates the recent layout branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
282            *
283            * @param recentLayoutBranch the recent layout branch
284            * @return the recent layout branch that was updated
285            */
286            @Override
287            public com.liferay.portal.model.RecentLayoutBranch updateRecentLayoutBranch(
288                    com.liferay.portal.model.RecentLayoutBranch recentLayoutBranch) {
289                    return _recentLayoutBranchLocalService.updateRecentLayoutBranch(recentLayoutBranch);
290            }
291    
292            @Override
293            public RecentLayoutBranchLocalService getWrappedService() {
294                    return _recentLayoutBranchLocalService;
295            }
296    
297            @Override
298            public void setWrappedService(
299                    RecentLayoutBranchLocalService recentLayoutBranchLocalService) {
300                    _recentLayoutBranchLocalService = recentLayoutBranchLocalService;
301            }
302    
303            private RecentLayoutBranchLocalService _recentLayoutBranchLocalService;
304    }