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 Spring bean ID for this bean.
218            *
219            * @return the Spring bean ID for this bean
220            */
221            @Override
222            public java.lang.String getBeanIdentifier() {
223                    return _layoutBranchLocalService.getBeanIdentifier();
224            }
225    
226            /**
227            * Returns the layout branch with the primary key.
228            *
229            * @param layoutBranchId the primary key of the layout branch
230            * @return the layout branch
231            * @throws PortalException if a layout branch with the primary key could not be found
232            */
233            @Override
234            public com.liferay.portal.model.LayoutBranch getLayoutBranch(
235                    long layoutBranchId)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _layoutBranchLocalService.getLayoutBranch(layoutBranchId);
238            }
239    
240            @Override
241            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutBranches(
242                    long layoutSetBranchId, long plid, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
244                    return _layoutBranchLocalService.getLayoutBranches(layoutSetBranchId,
245                            plid, start, end, orderByComparator);
246            }
247    
248            /**
249            * Returns a range of all the layout branchs.
250            *
251            * <p>
252            * 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.
253            * </p>
254            *
255            * @param start the lower bound of the range of layout branchs
256            * @param end the upper bound of the range of layout branchs (not inclusive)
257            * @return the range of layout branchs
258            */
259            @Override
260            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutBranchs(
261                    int start, int end) {
262                    return _layoutBranchLocalService.getLayoutBranchs(start, end);
263            }
264    
265            /**
266            * Returns the number of layout branchs.
267            *
268            * @return the number of layout branchs
269            */
270            @Override
271            public int getLayoutBranchsCount() {
272                    return _layoutBranchLocalService.getLayoutBranchsCount();
273            }
274    
275            @Override
276            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutSetBranchLayoutBranches(
277                    long layoutSetBranchId) {
278                    return _layoutBranchLocalService.getLayoutSetBranchLayoutBranches(layoutSetBranchId);
279            }
280    
281            @Override
282            public com.liferay.portal.model.LayoutBranch getMasterLayoutBranch(
283                    long layoutSetBranchId, long plid)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return _layoutBranchLocalService.getMasterLayoutBranch(layoutSetBranchId,
286                            plid);
287            }
288    
289            @Override
290            public com.liferay.portal.model.LayoutBranch getMasterLayoutBranch(
291                    long layoutSetBranchId, long plid,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException {
294                    return _layoutBranchLocalService.getMasterLayoutBranch(layoutSetBranchId,
295                            plid, serviceContext);
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            * Sets the Spring bean ID for this bean.
307            *
308            * @param beanIdentifier the Spring bean ID for this bean
309            */
310            @Override
311            public void setBeanIdentifier(java.lang.String beanIdentifier) {
312                    _layoutBranchLocalService.setBeanIdentifier(beanIdentifier);
313            }
314    
315            /**
316            * Updates the layout branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
317            *
318            * @param layoutBranch the layout branch
319            * @return the layout branch that was updated
320            */
321            @Override
322            public com.liferay.portal.model.LayoutBranch updateLayoutBranch(
323                    com.liferay.portal.model.LayoutBranch layoutBranch) {
324                    return _layoutBranchLocalService.updateLayoutBranch(layoutBranch);
325            }
326    
327            @Override
328            public com.liferay.portal.model.LayoutBranch updateLayoutBranch(
329                    long layoutBranchId, java.lang.String name,
330                    java.lang.String description,
331                    com.liferay.portal.service.ServiceContext serviceContext)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    return _layoutBranchLocalService.updateLayoutBranch(layoutBranchId,
334                            name, description, serviceContext);
335            }
336    
337            /**
338             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
339             */
340            @Deprecated
341            public LayoutBranchLocalService getWrappedLayoutBranchLocalService() {
342                    return _layoutBranchLocalService;
343            }
344    
345            /**
346             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
347             */
348            @Deprecated
349            public void setWrappedLayoutBranchLocalService(
350                    LayoutBranchLocalService layoutBranchLocalService) {
351                    _layoutBranchLocalService = layoutBranchLocalService;
352            }
353    
354            @Override
355            public LayoutBranchLocalService getWrappedService() {
356                    return _layoutBranchLocalService;
357            }
358    
359            @Override
360            public void setWrappedService(
361                    LayoutBranchLocalService layoutBranchLocalService) {
362                    _layoutBranchLocalService = layoutBranchLocalService;
363            }
364    
365            private LayoutBranchLocalService _layoutBranchLocalService;
366    }