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