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.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
239                    return _layoutSetBranchLocalService.getIndexableActionableDynamicQuery();
240            }
241    
242            @Override
243            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
244                    long groupId, boolean privateLayout, java.lang.String name)
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    return _layoutSetBranchLocalService.getLayoutSetBranch(groupId,
247                            privateLayout, name);
248            }
249    
250            /**
251            * Returns the layout set branch with the primary key.
252            *
253            * @param layoutSetBranchId the primary key of the layout set branch
254            * @return the layout set branch
255            * @throws PortalException if a layout set branch with the primary key could not be found
256            */
257            @Override
258            public com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
259                    long layoutSetBranchId)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    return _layoutSetBranchLocalService.getLayoutSetBranch(layoutSetBranchId);
262            }
263    
264            @Override
265            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
266                    long groupId, boolean privateLayout) {
267                    return _layoutSetBranchLocalService.getLayoutSetBranches(groupId,
268                            privateLayout);
269            }
270    
271            /**
272            * Returns a range of all the layout set branchs.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param start the lower bound of the range of layout set branchs
279            * @param end the upper bound of the range of layout set branchs (not inclusive)
280            * @return the range of layout set branchs
281            */
282            @Override
283            public java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
284                    int start, int end) {
285                    return _layoutSetBranchLocalService.getLayoutSetBranchs(start, end);
286            }
287    
288            /**
289            * Returns the number of layout set branchs.
290            *
291            * @return the number of layout set branchs
292            */
293            @Override
294            public int getLayoutSetBranchsCount() {
295                    return _layoutSetBranchLocalService.getLayoutSetBranchsCount();
296            }
297    
298            @Override
299            public com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
300                    long groupId, boolean privateLayout)
301                    throws com.liferay.portal.kernel.exception.PortalException {
302                    return _layoutSetBranchLocalService.getMasterLayoutSetBranch(groupId,
303                            privateLayout);
304            }
305    
306            /**
307            * Returns the OSGi service identifier.
308            *
309            * @return the OSGi service identifier
310            */
311            @Override
312            public java.lang.String getOSGiServiceIdentifier() {
313                    return _layoutSetBranchLocalService.getOSGiServiceIdentifier();
314            }
315    
316            @Override
317            public com.liferay.portal.model.PersistedModel getPersistedModel(
318                    java.io.Serializable primaryKeyObj)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    return _layoutSetBranchLocalService.getPersistedModel(primaryKeyObj);
321            }
322    
323            /**
324            * @deprecated As of 6.2.0, replaced by {@link #getUserLayoutSetBranch(long,
325            long, boolean, long, long)}
326            */
327            @Deprecated
328            @Override
329            public com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
330                    long userId, long groupId, boolean privateLayout, long layoutSetBranchId)
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    return _layoutSetBranchLocalService.getUserLayoutSetBranch(userId,
333                            groupId, privateLayout, layoutSetBranchId);
334            }
335    
336            @Override
337            public com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
338                    long userId, long groupId, boolean privateLayout, long layoutSetId,
339                    long layoutSetBranchId)
340                    throws com.liferay.portal.kernel.exception.PortalException {
341                    return _layoutSetBranchLocalService.getUserLayoutSetBranch(userId,
342                            groupId, privateLayout, layoutSetId, layoutSetBranchId);
343            }
344    
345            @Override
346            public com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
347                    long layoutSetBranchId, long mergeLayoutSetBranchId,
348                    com.liferay.portal.service.ServiceContext serviceContext)
349                    throws com.liferay.portal.kernel.exception.PortalException {
350                    return _layoutSetBranchLocalService.mergeLayoutSetBranch(layoutSetBranchId,
351                            mergeLayoutSetBranchId, serviceContext);
352            }
353    
354            /**
355            * Updates the layout set branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
356            *
357            * @param layoutSetBranch the layout set branch
358            * @return the layout set branch that was updated
359            */
360            @Override
361            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
362                    com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
363                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranch);
364            }
365    
366            @Override
367            public com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
368                    long layoutSetBranchId, java.lang.String name,
369                    java.lang.String description,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws com.liferay.portal.kernel.exception.PortalException {
372                    return _layoutSetBranchLocalService.updateLayoutSetBranch(layoutSetBranchId,
373                            name, description, serviceContext);
374            }
375    
376            @Override
377            public LayoutSetBranchLocalService getWrappedService() {
378                    return _layoutSetBranchLocalService;
379            }
380    
381            @Override
382            public void setWrappedService(
383                    LayoutSetBranchLocalService layoutSetBranchLocalService) {
384                    _layoutSetBranchLocalService = layoutSetBranchLocalService;
385            }
386    
387            private LayoutSetBranchLocalService _layoutSetBranchLocalService;
388    }