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