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