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            /**
238            * Returns the Spring bean ID for this bean.
239            *
240            * @return the Spring bean ID for this bean
241            */
242            @Override
243            public java.lang.String getBeanIdentifier() {
244                    return _layoutSetBranchLocalService.getBeanIdentifier();
245            }
246    
247            @Override
248            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
249                    long groupId, boolean privateLayout, java.lang.String name)
250                    throws com.liferay.portal.kernel.exception.PortalException {
251                    return _layoutSetBranchLocalService.getLayoutSetBranch(groupId,
252                            privateLayout, name);
253            }
254    
255            /**
256            * Returns the layout set branch with the primary key.
257            *
258            * @param layoutSetBranchId the primary key of the layout set branch
259            * @return the layout set branch
260            * @throws PortalException if a layout set branch with the primary key could not be found
261            */
262            @Override
263            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
264                    long layoutSetBranchId)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return _layoutSetBranchLocalService.getLayoutSetBranch(layoutSetBranchId);
267            }
268    
269            @Override
270            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
271                    long groupId, boolean privateLayout) {
272                    return _layoutSetBranchLocalService.getLayoutSetBranches(groupId,
273                            privateLayout);
274            }
275    
276            /**
277            * Returns a range of all the layout set branchs.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param start the lower bound of the range of layout set branchs
284            * @param end the upper bound of the range of layout set branchs (not inclusive)
285            * @return the range of layout set branchs
286            */
287            @Override
288            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
289                    int start, int end) {
290                    return _layoutSetBranchLocalService.getLayoutSetBranchs(start, end);
291            }
292    
293            /**
294            * Returns the number of layout set branchs.
295            *
296            * @return the number of layout set branchs
297            */
298            @Override
299            public int getLayoutSetBranchsCount() {
300                    return _layoutSetBranchLocalService.getLayoutSetBranchsCount();
301            }
302    
303            @Override
304            public com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
305                    long groupId, boolean privateLayout)
306                    throws com.liferay.portal.kernel.exception.PortalException {
307                    return _layoutSetBranchLocalService.getMasterLayoutSetBranch(groupId,
308                            privateLayout);
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            * Sets the Spring bean ID for this bean.
351            *
352            * @param beanIdentifier the Spring bean ID for this bean
353            */
354            @Override
355            public void setBeanIdentifier(java.lang.String beanIdentifier) {
356                    _layoutSetBranchLocalService.setBeanIdentifier(beanIdentifier);
357            }
358    
359            /**
360            * Updates the layout set branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
361            *
362            * @param layoutSetBranch the layout set branch
363            * @return the layout set branch that was updated
364            */
365            @Override
366            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
367                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
368                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranch);
369            }
370    
371            @Override
372            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
373                    long layoutSetBranchId, java.lang.String name,
374                    java.lang.String description,
375                    com.liferay.portal.service.ServiceContext serviceContext)
376                    throws com.liferay.portal.kernel.exception.PortalException {
377                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranchId,
378                            name, description, serviceContext);
379            }
380    
381            /**
382             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
383             */
384            @Deprecated
385            public LayoutSetBranchLocalService getWrappedLayoutSetBranchLocalService() {
386                    return _layoutSetBranchLocalService;
387            }
388    
389            /**
390             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
391             */
392            @Deprecated
393            public void setWrappedLayoutSetBranchLocalService(
394                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
395                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
396            }
397    
398            @Override
399            public LayoutSetBranchLocalService getWrappedService() {
400                    return _layoutSetBranchLocalService;
401            }
402    
403            @Override
404            public void setWrappedService(
405                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
406                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
407            }
408    
409            private LayoutSetBranchLocalService _layoutSetBranchLocalService;
410    }