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