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