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