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