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            @Override
217            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
218                    return _layoutBranchLocalService.getIndexableActionableDynamicQuery();
219            }
220    
221            /**
222            * Returns the layout branch with the primary key.
223            *
224            * @param layoutBranchId the primary key of the layout branch
225            * @return the layout branch
226            * @throws PortalException if a layout branch with the primary key could not be found
227            */
228            @Override
229            public com.liferay.portal.model.LayoutBranch getLayoutBranch(
230                    long layoutBranchId)
231                    throws com.liferay.portal.kernel.exception.PortalException {
232                    return _layoutBranchLocalService.getLayoutBranch(layoutBranchId);
233            }
234    
235            @Override
236            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutBranches(
237                    long layoutSetBranchId, long plid, int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutBranch> orderByComparator) {
239                    return _layoutBranchLocalService.getLayoutBranches(layoutSetBranchId,
240                            plid, start, end, orderByComparator);
241            }
242    
243            /**
244            * Returns a range of all the layout branchs.
245            *
246            * <p>
247            * 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.
248            * </p>
249            *
250            * @param start the lower bound of the range of layout branchs
251            * @param end the upper bound of the range of layout branchs (not inclusive)
252            * @return the range of layout branchs
253            */
254            @Override
255            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutBranchs(
256                    int start, int end) {
257                    return _layoutBranchLocalService.getLayoutBranchs(start, end);
258            }
259    
260            /**
261            * Returns the number of layout branchs.
262            *
263            * @return the number of layout branchs
264            */
265            @Override
266            public int getLayoutBranchsCount() {
267                    return _layoutBranchLocalService.getLayoutBranchsCount();
268            }
269    
270            @Override
271            public java.util.List<com.liferay.portal.model.LayoutBranch> getLayoutSetBranchLayoutBranches(
272                    long layoutSetBranchId) {
273                    return _layoutBranchLocalService.getLayoutSetBranchLayoutBranches(layoutSetBranchId);
274            }
275    
276            @Override
277            public com.liferay.portal.model.LayoutBranch getMasterLayoutBranch(
278                    long layoutSetBranchId, long plid)
279                    throws com.liferay.portal.kernel.exception.PortalException {
280                    return _layoutBranchLocalService.getMasterLayoutBranch(layoutSetBranchId,
281                            plid);
282            }
283    
284            @Override
285            public com.liferay.portal.model.LayoutBranch getMasterLayoutBranch(
286                    long layoutSetBranchId, long plid,
287                    com.liferay.portal.service.ServiceContext serviceContext)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return _layoutBranchLocalService.getMasterLayoutBranch(layoutSetBranchId,
290                            plid, serviceContext);
291            }
292    
293            /**
294            * Returns the OSGi service identifier.
295            *
296            * @return the OSGi service identifier
297            */
298            @Override
299            public java.lang.String getOSGiServiceIdentifier() {
300                    return _layoutBranchLocalService.getOSGiServiceIdentifier();
301            }
302    
303            @Override
304            public com.liferay.portal.model.PersistedModel getPersistedModel(
305                    java.io.Serializable primaryKeyObj)
306                    throws com.liferay.portal.kernel.exception.PortalException {
307                    return _layoutBranchLocalService.getPersistedModel(primaryKeyObj);
308            }
309    
310            /**
311            * Updates the layout branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
312            *
313            * @param layoutBranch the layout branch
314            * @return the layout branch that was updated
315            */
316            @Override
317            public com.liferay.portal.model.LayoutBranch updateLayoutBranch(
318                    com.liferay.portal.model.LayoutBranch layoutBranch) {
319                    return _layoutBranchLocalService.updateLayoutBranch(layoutBranch);
320            }
321    
322            @Override
323            public com.liferay.portal.model.LayoutBranch updateLayoutBranch(
324                    long layoutBranchId, java.lang.String name,
325                    java.lang.String description,
326                    com.liferay.portal.service.ServiceContext serviceContext)
327                    throws com.liferay.portal.kernel.exception.PortalException {
328                    return _layoutBranchLocalService.updateLayoutBranch(layoutBranchId,
329                            name, description, serviceContext);
330            }
331    
332            @Override
333            public LayoutBranchLocalService getWrappedService() {
334                    return _layoutBranchLocalService;
335            }
336    
337            @Override
338            public void setWrappedService(
339                    LayoutBranchLocalService layoutBranchLocalService) {
340                    _layoutBranchLocalService = layoutBranchLocalService;
341            }
342    
343            private LayoutBranchLocalService _layoutBranchLocalService;
344    }