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 LayoutSetBranchLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutSetBranchLocalService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutSetBranchLocalServiceWrapper
028            implements LayoutSetBranchLocalService,
029                    ServiceWrapper<LayoutSetBranchLocalService> {
030            public LayoutSetBranchLocalServiceWrapper(
031                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
032                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
033            }
034    
035            /**
036            * Adds the layout set branch to the database. Also notifies the appropriate model listeners.
037            *
038            * @param layoutSetBranch the layout set branch
039            * @return the layout set branch that was added
040            */
041            @Override
042            public com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
043                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
044                    return _layoutSetBranchLocalService.addLayoutSetBranch(layoutSetBranch);
045            }
046    
047            @Override
048            public com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
049                    long userId, long groupId, boolean privateLayout,
050                    java.lang.String name, java.lang.String description, boolean master,
051                    long copyLayoutSetBranchId,
052                    com.liferay.portal.service.ServiceContext serviceContext)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _layoutSetBranchLocalService.addLayoutSetBranch(userId, groupId,
055                            privateLayout, name, description, master, copyLayoutSetBranchId,
056                            serviceContext);
057            }
058    
059            /**
060            * Creates a new layout set branch with the primary key. Does not add the layout set branch to the database.
061            *
062            * @param layoutSetBranchId the primary key for the new layout set branch
063            * @return the new layout set branch
064            */
065            @Override
066            public com.liferay.portal.model.LayoutSetBranch createLayoutSetBranch(
067                    long layoutSetBranchId) {
068                    return _layoutSetBranchLocalService.createLayoutSetBranch(layoutSetBranchId);
069            }
070    
071            /**
072            * Deletes the layout set branch from the database. Also notifies the appropriate model listeners.
073            *
074            * @param layoutSetBranch the layout set branch
075            * @return the layout set branch that was removed
076            * @throws PortalException
077            */
078            @Override
079            public com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
080                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _layoutSetBranchLocalService.deleteLayoutSetBranch(layoutSetBranch);
083            }
084    
085            @Override
086            public com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
087                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch,
088                    boolean includeMaster)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return _layoutSetBranchLocalService.deleteLayoutSetBranch(layoutSetBranch,
091                            includeMaster);
092            }
093    
094            /**
095            * Deletes the layout set branch with the primary key from the database. Also notifies the appropriate model listeners.
096            *
097            * @param layoutSetBranchId the primary key of the layout set branch
098            * @return the layout set branch that was removed
099            * @throws PortalException if a layout set branch with the primary key could not be found
100            */
101            @Override
102            public com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
103                    long layoutSetBranchId)
104                    throws com.liferay.portal.kernel.exception.PortalException {
105                    return _layoutSetBranchLocalService.deleteLayoutSetBranch(layoutSetBranchId);
106            }
107    
108            @Override
109            public void deleteLayoutSetBranches(long groupId, boolean privateLayout)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    _layoutSetBranchLocalService.deleteLayoutSetBranches(groupId,
112                            privateLayout);
113            }
114    
115            @Override
116            public void deleteLayoutSetBranches(long groupId, boolean privateLayout,
117                    boolean includeMaster)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    _layoutSetBranchLocalService.deleteLayoutSetBranches(groupId,
120                            privateLayout, includeMaster);
121            }
122    
123            /**
124            * @throws PortalException
125            */
126            @Override
127            public com.liferay.portal.model.PersistedModel deletePersistedModel(
128                    com.liferay.portal.model.PersistedModel persistedModel)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return _layoutSetBranchLocalService.deletePersistedModel(persistedModel);
131            }
132    
133            @Override
134            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
135                    return _layoutSetBranchLocalService.dynamicQuery();
136            }
137    
138            /**
139            * Performs a dynamic query on the database and returns the matching rows.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the matching rows
143            */
144            @Override
145            public <T> java.util.List<T> dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
147                    return _layoutSetBranchLocalService.dynamicQuery(dynamicQuery);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns a 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.LayoutSetBranchModelImpl}. 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            * @return the range of matching rows
161            */
162            @Override
163            public <T> java.util.List<T> dynamicQuery(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165                    int end) {
166                    return _layoutSetBranchLocalService.dynamicQuery(dynamicQuery, start,
167                            end);
168            }
169    
170            /**
171            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172            *
173            * <p>
174            * 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.LayoutSetBranchModelImpl}. 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.
175            * </p>
176            *
177            * @param dynamicQuery the dynamic query
178            * @param start the lower bound of the range of model instances
179            * @param end the upper bound of the range of model instances (not inclusive)
180            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
181            * @return the ordered range of matching rows
182            */
183            @Override
184            public <T> java.util.List<T> dynamicQuery(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
186                    int end,
187                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
188                    return _layoutSetBranchLocalService.dynamicQuery(dynamicQuery, start,
189                            end, orderByComparator);
190            }
191    
192            /**
193            * Returns the number of rows matching the dynamic query.
194            *
195            * @param dynamicQuery the dynamic query
196            * @return the number of rows matching the dynamic query
197            */
198            @Override
199            public long dynamicQueryCount(
200                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
201                    return _layoutSetBranchLocalService.dynamicQueryCount(dynamicQuery);
202            }
203    
204            /**
205            * Returns the number of rows matching the dynamic query.
206            *
207            * @param dynamicQuery the dynamic query
208            * @param projection the projection to apply to the query
209            * @return the number of rows matching the dynamic query
210            */
211            @Override
212            public long dynamicQueryCount(
213                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
214                    com.liferay.portal.kernel.dao.orm.Projection projection) {
215                    return _layoutSetBranchLocalService.dynamicQueryCount(dynamicQuery,
216                            projection);
217            }
218    
219            @Override
220            public com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
221                    long groupId, boolean privateLayout, java.lang.String name) {
222                    return _layoutSetBranchLocalService.fetchLayoutSetBranch(groupId,
223                            privateLayout, name);
224            }
225    
226            @Override
227            public com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
228                    long layoutSetBranchId) {
229                    return _layoutSetBranchLocalService.fetchLayoutSetBranch(layoutSetBranchId);
230            }
231    
232            @Override
233            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
234                    return _layoutSetBranchLocalService.getActionableDynamicQuery();
235            }
236    
237            @Override
238            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
239                    long groupId, boolean privateLayout, java.lang.String name)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _layoutSetBranchLocalService.getLayoutSetBranch(groupId,
242                            privateLayout, name);
243            }
244    
245            /**
246            * Returns the layout set branch with the primary key.
247            *
248            * @param layoutSetBranchId the primary key of the layout set branch
249            * @return the layout set branch
250            * @throws PortalException if a layout set branch with the primary key could not be found
251            */
252            @Override
253            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
254                    long layoutSetBranchId)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    return _layoutSetBranchLocalService.getLayoutSetBranch(layoutSetBranchId);
257            }
258    
259            @Override
260            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
261                    long groupId, boolean privateLayout) {
262                    return _layoutSetBranchLocalService.getLayoutSetBranches(groupId,
263                            privateLayout);
264            }
265    
266            /**
267            * Returns a range of all the layout set branchs.
268            *
269            * <p>
270            * 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.LayoutSetBranchModelImpl}. 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.
271            * </p>
272            *
273            * @param start the lower bound of the range of layout set branchs
274            * @param end the upper bound of the range of layout set branchs (not inclusive)
275            * @return the range of layout set branchs
276            */
277            @Override
278            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
279                    int start, int end) {
280                    return _layoutSetBranchLocalService.getLayoutSetBranchs(start, end);
281            }
282    
283            /**
284            * Returns the number of layout set branchs.
285            *
286            * @return the number of layout set branchs
287            */
288            @Override
289            public int getLayoutSetBranchsCount() {
290                    return _layoutSetBranchLocalService.getLayoutSetBranchsCount();
291            }
292    
293            @Override
294            public com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
295                    long groupId, boolean privateLayout)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _layoutSetBranchLocalService.getMasterLayoutSetBranch(groupId,
298                            privateLayout);
299            }
300    
301            /**
302            * Returns the OSGi service identifier.
303            *
304            * @return the OSGi service identifier
305            */
306            @Override
307            public java.lang.String getOSGiServiceIdentifier() {
308                    return _layoutSetBranchLocalService.getOSGiServiceIdentifier();
309            }
310    
311            @Override
312            public com.liferay.portal.model.PersistedModel getPersistedModel(
313                    java.io.Serializable primaryKeyObj)
314                    throws com.liferay.portal.kernel.exception.PortalException {
315                    return _layoutSetBranchLocalService.getPersistedModel(primaryKeyObj);
316            }
317    
318            /**
319            * @deprecated As of 6.2.0, replaced by {@link #getUserLayoutSetBranch(long,
320            long, boolean, long, long)}
321            */
322            @Deprecated
323            @Override
324            public com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
325                    long userId, long groupId, boolean privateLayout, long layoutSetBranchId)
326                    throws com.liferay.portal.kernel.exception.PortalException {
327                    return _layoutSetBranchLocalService.getUserLayoutSetBranch(userId,
328                            groupId, privateLayout, layoutSetBranchId);
329            }
330    
331            @Override
332            public com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
333                    long userId, long groupId, boolean privateLayout, long layoutSetId,
334                    long layoutSetBranchId)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    return _layoutSetBranchLocalService.getUserLayoutSetBranch(userId,
337                            groupId, privateLayout, layoutSetId, layoutSetBranchId);
338            }
339    
340            @Override
341            public com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
342                    long layoutSetBranchId, long mergeLayoutSetBranchId,
343                    com.liferay.portal.service.ServiceContext serviceContext)
344                    throws com.liferay.portal.kernel.exception.PortalException {
345                    return _layoutSetBranchLocalService.mergeLayoutSetBranch(layoutSetBranchId,
346                            mergeLayoutSetBranchId, serviceContext);
347            }
348    
349            /**
350            * Updates the layout set branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
351            *
352            * @param layoutSetBranch the layout set branch
353            * @return the layout set branch that was updated
354            */
355            @Override
356            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
357                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
358                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranch);
359            }
360    
361            @Override
362            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
363                    long layoutSetBranchId, java.lang.String name,
364                    java.lang.String description,
365                    com.liferay.portal.service.ServiceContext serviceContext)
366                    throws com.liferay.portal.kernel.exception.PortalException {
367                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranchId,
368                            name, description, serviceContext);
369            }
370    
371            /**
372             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
373             */
374            @Deprecated
375            public LayoutSetBranchLocalService getWrappedLayoutSetBranchLocalService() {
376                    return _layoutSetBranchLocalService;
377            }
378    
379            /**
380             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
381             */
382            @Deprecated
383            public void setWrappedLayoutSetBranchLocalService(
384                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
385                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
386            }
387    
388            @Override
389            public LayoutSetBranchLocalService getWrappedService() {
390                    return _layoutSetBranchLocalService;
391            }
392    
393            @Override
394            public void setWrappedService(
395                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
396                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
397            }
398    
399            private LayoutSetBranchLocalService _layoutSetBranchLocalService;
400    }