001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * Provides a wrapper for {@link LayoutRevisionLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see LayoutRevisionLocalService
022     * @generated
023     */
024    public class LayoutRevisionLocalServiceWrapper
025            implements LayoutRevisionLocalService,
026                    ServiceWrapper<LayoutRevisionLocalService> {
027            public LayoutRevisionLocalServiceWrapper(
028                    LayoutRevisionLocalService layoutRevisionLocalService) {
029                    _layoutRevisionLocalService = layoutRevisionLocalService;
030            }
031    
032            /**
033            * Adds the layout revision to the database. Also notifies the appropriate model listeners.
034            *
035            * @param layoutRevision the layout revision
036            * @return the layout revision that was added
037            * @throws SystemException if a system exception occurred
038            */
039            @Override
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            @Override
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            @Override
067            public com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
068                    long layoutRevisionId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _layoutRevisionLocalService.deleteLayoutRevision(layoutRevisionId);
072            }
073    
074            /**
075            * Deletes the layout revision from the database. Also notifies the appropriate model listeners.
076            *
077            * @param layoutRevision the layout revision
078            * @return the layout revision that was removed
079            * @throws PortalException
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portal.model.LayoutRevision deleteLayoutRevision(
084                    com.liferay.portal.model.LayoutRevision layoutRevision)
085                    throws com.liferay.portal.kernel.exception.PortalException,
086                            com.liferay.portal.kernel.exception.SystemException {
087                    return _layoutRevisionLocalService.deleteLayoutRevision(layoutRevision);
088            }
089    
090            @Override
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092                    return _layoutRevisionLocalService.dynamicQuery();
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns the matching rows.
097            *
098            * @param dynamicQuery the dynamic query
099            * @return the matching rows
100            * @throws SystemException if a system exception occurred
101            */
102            @Override
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @Override
124            @SuppressWarnings("rawtypes")
125            public java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @Override
146            @SuppressWarnings("rawtypes")
147            public java.util.List dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery, start,
153                            end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows that match the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows that match the dynamic query
161            * @throws SystemException if a system exception occurred
162            */
163            @Override
164            public long dynamicQueryCount(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _layoutRevisionLocalService.dynamicQueryCount(dynamicQuery);
168            }
169    
170            /**
171            * Returns the number of rows that match the dynamic query.
172            *
173            * @param dynamicQuery the dynamic query
174            * @param projection the projection to apply to the query
175            * @return the number of rows that match the dynamic query
176            * @throws SystemException if a system exception occurred
177            */
178            @Override
179            public long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _layoutRevisionLocalService.dynamicQueryCount(dynamicQuery,
184                            projection);
185            }
186    
187            @Override
188            public com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
189                    long layoutRevisionId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutRevisionId);
192            }
193    
194            /**
195            * Returns the layout revision with the primary key.
196            *
197            * @param layoutRevisionId the primary key of the layout revision
198            * @return the layout revision
199            * @throws PortalException if a layout revision with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            @Override
203            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
204                    long layoutRevisionId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return _layoutRevisionLocalService.getLayoutRevision(layoutRevisionId);
208            }
209    
210            @Override
211            public com.liferay.portal.model.PersistedModel getPersistedModel(
212                    java.io.Serializable primaryKeyObj)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    return _layoutRevisionLocalService.getPersistedModel(primaryKeyObj);
216            }
217    
218            /**
219            * Returns a range of all the layout revisions.
220            *
221            * <p>
222            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutRevisionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
223            * </p>
224            *
225            * @param start the lower bound of the range of layout revisions
226            * @param end the upper bound of the range of layout revisions (not inclusive)
227            * @return the range of layout revisions
228            * @throws SystemException if a system exception occurred
229            */
230            @Override
231            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
232                    int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _layoutRevisionLocalService.getLayoutRevisions(start, end);
235            }
236    
237            /**
238            * Returns the number of layout revisions.
239            *
240            * @return the number of layout revisions
241            * @throws SystemException if a system exception occurred
242            */
243            @Override
244            public int getLayoutRevisionsCount()
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _layoutRevisionLocalService.getLayoutRevisionsCount();
247            }
248    
249            /**
250            * Updates the layout revision in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
251            *
252            * @param layoutRevision the layout revision
253            * @return the layout revision that was updated
254            * @throws SystemException if a system exception occurred
255            */
256            @Override
257            public com.liferay.portal.model.LayoutRevision updateLayoutRevision(
258                    com.liferay.portal.model.LayoutRevision layoutRevision)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _layoutRevisionLocalService.updateLayoutRevision(layoutRevision);
261            }
262    
263            /**
264            * Returns the Spring bean ID for this bean.
265            *
266            * @return the Spring bean ID for this bean
267            */
268            @Override
269            public java.lang.String getBeanIdentifier() {
270                    return _layoutRevisionLocalService.getBeanIdentifier();
271            }
272    
273            /**
274            * Sets the Spring bean ID for this bean.
275            *
276            * @param beanIdentifier the Spring bean ID for this bean
277            */
278            @Override
279            public void setBeanIdentifier(java.lang.String beanIdentifier) {
280                    _layoutRevisionLocalService.setBeanIdentifier(beanIdentifier);
281            }
282    
283            @Override
284            public com.liferay.portal.model.LayoutRevision addLayoutRevision(
285                    long userId, long layoutSetBranchId, long layoutBranchId,
286                    long parentLayoutRevisionId, boolean head, long plid,
287                    long portletPreferencesPlid, boolean privateLayout,
288                    java.lang.String name, java.lang.String title,
289                    java.lang.String description, java.lang.String keywords,
290                    java.lang.String robots, java.lang.String typeSettings,
291                    boolean iconImage, long iconImageId, java.lang.String themeId,
292                    java.lang.String colorSchemeId, java.lang.String wapThemeId,
293                    java.lang.String wapColorSchemeId, java.lang.String css,
294                    com.liferay.portal.service.ServiceContext serviceContext)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _layoutRevisionLocalService.addLayoutRevision(userId,
298                            layoutSetBranchId, layoutBranchId, parentLayoutRevisionId, head,
299                            plid, portletPreferencesPlid, privateLayout, name, title,
300                            description, keywords, robots, typeSettings, iconImage,
301                            iconImageId, themeId, colorSchemeId, wapThemeId, wapColorSchemeId,
302                            css, serviceContext);
303            }
304    
305            @Override
306            public void deleteLayoutLayoutRevisions(long plid)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _layoutRevisionLocalService.deleteLayoutLayoutRevisions(plid);
310            }
311    
312            @Override
313            public void deleteLayoutRevisions(long layoutSetBranchId, long plid)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
317                            plid);
318            }
319    
320            @Override
321            public void deleteLayoutRevisions(long layoutSetBranchId,
322                    long layoutBranchId, long plid)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
326                            layoutBranchId, plid);
327            }
328    
329            @Override
330            public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    _layoutRevisionLocalService.deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
334            }
335    
336            @Override
337            public com.liferay.portal.model.LayoutRevision fetchLastLayoutRevision(
338                    long plid, boolean head)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _layoutRevisionLocalService.fetchLastLayoutRevision(plid, head);
341            }
342    
343            @Override
344            public com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
345                    long layoutSetBranchId, boolean head, long plid)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutSetBranchId,
348                            head, plid);
349            }
350    
351            @Override
352            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
353                    long layoutSetBranchId, long parentLayoutRevisionId, long plid)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
356                            parentLayoutRevisionId, plid);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
361                    long layoutSetBranchId, long parentLayoutRevision, long plid,
362                    int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
366                            parentLayoutRevision, plid, start, end, orderByComparator);
367            }
368    
369            @Override
370            public int getChildLayoutRevisionsCount(long layoutSetBranchId,
371                    long parentLayoutRevision, long plid)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _layoutRevisionLocalService.getChildLayoutRevisionsCount(layoutSetBranchId,
374                            parentLayoutRevision, plid);
375            }
376    
377            @Override
378            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
379                    long layoutSetBranchId, long plid, boolean head)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
383                            plid, head);
384            }
385    
386            @Override
387            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
388                    long layoutSetBranchId, long layoutBranchId, long plid)
389                    throws com.liferay.portal.kernel.exception.PortalException,
390                            com.liferay.portal.kernel.exception.SystemException {
391                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
392                            layoutBranchId, plid);
393            }
394    
395            @Override
396            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
397                    long plid) throws com.liferay.portal.kernel.exception.SystemException {
398                    return _layoutRevisionLocalService.getLayoutRevisions(plid);
399            }
400    
401            @Override
402            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
403                    long layoutSetBranchId, boolean head)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
406                            head);
407            }
408    
409            @Override
410            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
411                    long layoutSetBranchId, int status)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
414                            status);
415            }
416    
417            @Override
418            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
419                    long layoutSetBranchId, long plid)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
422                            plid);
423            }
424    
425            @Override
426            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
427                    long layoutSetBranchId, long plid, int status)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
430                            plid, status);
431            }
432    
433            @Override
434            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
435                    long layoutSetBranchId, long plid, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
439                            plid, start, end, orderByComparator);
440            }
441    
442            @Override
443            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
444                    long layoutSetBranchId, long layoutBranchId, long plid, int start,
445                    int end,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
449                            layoutBranchId, plid, start, end, orderByComparator);
450            }
451    
452            @Override
453            public int getLayoutRevisionsCount(long layoutSetBranchId,
454                    long layoutBranchId, long plid)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _layoutRevisionLocalService.getLayoutRevisionsCount(layoutSetBranchId,
457                            layoutBranchId, plid);
458            }
459    
460            @Override
461            public com.liferay.portal.model.LayoutRevision updateLayoutRevision(
462                    long userId, long layoutRevisionId, long layoutBranchId,
463                    java.lang.String name, java.lang.String title,
464                    java.lang.String description, java.lang.String keywords,
465                    java.lang.String robots, java.lang.String typeSettings,
466                    boolean iconImage, long iconImageId, java.lang.String themeId,
467                    java.lang.String colorSchemeId, java.lang.String wapThemeId,
468                    java.lang.String wapColorSchemeId, java.lang.String css,
469                    com.liferay.portal.service.ServiceContext serviceContext)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    return _layoutRevisionLocalService.updateLayoutRevision(userId,
473                            layoutRevisionId, layoutBranchId, name, title, description,
474                            keywords, robots, typeSettings, iconImage, iconImageId, themeId,
475                            colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
476            }
477    
478            @Override
479            public com.liferay.portal.model.LayoutRevision updateStatus(long userId,
480                    long layoutRevisionId, int status,
481                    com.liferay.portal.service.ServiceContext serviceContext)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    return _layoutRevisionLocalService.updateStatus(userId,
485                            layoutRevisionId, status, serviceContext);
486            }
487    
488            /**
489             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
490             */
491            public LayoutRevisionLocalService getWrappedLayoutRevisionLocalService() {
492                    return _layoutRevisionLocalService;
493            }
494    
495            /**
496             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
497             */
498            public void setWrappedLayoutRevisionLocalService(
499                    LayoutRevisionLocalService layoutRevisionLocalService) {
500                    _layoutRevisionLocalService = layoutRevisionLocalService;
501            }
502    
503            @Override
504            public LayoutRevisionLocalService getWrappedService() {
505                    return _layoutRevisionLocalService;
506            }
507    
508            @Override
509            public void setWrappedService(
510                    LayoutRevisionLocalService layoutRevisionLocalService) {
511                    _layoutRevisionLocalService = layoutRevisionLocalService;
512            }
513    
514            private LayoutRevisionLocalService _layoutRevisionLocalService;
515    }