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