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