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. 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.
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. 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.
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. 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.
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            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _layoutRevisionLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _layoutRevisionLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portal.model.LayoutRevision addLayoutRevision(
252                    long userId, long layoutSetBranchId, long layoutBranchId,
253                    long parentLayoutRevisionId, boolean head, long plid,
254                    long portletPreferencesPlid, boolean privateLayout,
255                    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, portletPreferencesPlid, privateLayout, name, title,
267                            description, keywords, robots, typeSettings, iconImage,
268                            iconImageId, themeId, colorSchemeId, wapThemeId, wapColorSchemeId,
269                            css, serviceContext);
270            }
271    
272            public void deleteLayoutLayoutRevisions(long plid)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _layoutRevisionLocalService.deleteLayoutLayoutRevisions(plid);
276            }
277    
278            public void deleteLayoutRevisions(long layoutSetBranchId, long plid)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
282                            plid);
283            }
284    
285            public void deleteLayoutRevisions(long layoutSetBranchId,
286                    long layoutBranchId, long plid)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
290                            layoutBranchId, plid);
291            }
292    
293            public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _layoutRevisionLocalService.deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
297            }
298    
299            public com.liferay.portal.model.LayoutRevision fetchLastLayoutRevision(
300                    long plid, boolean head)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _layoutRevisionLocalService.fetchLastLayoutRevision(plid, head);
303            }
304    
305            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
306                    long layoutSetBranchId, long parentLayoutRevisionId, long plid)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
309                            parentLayoutRevisionId, plid);
310            }
311    
312            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
313                    long layoutSetBranchId, long parentLayoutRevision, long plid,
314                    int start, int end,
315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
318                            parentLayoutRevision, plid, start, end, orderByComparator);
319            }
320    
321            public int getChildLayoutRevisionsCount(long layoutSetBranchId,
322                    long parentLayoutRevision, long plid)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _layoutRevisionLocalService.getChildLayoutRevisionsCount(layoutSetBranchId,
325                            parentLayoutRevision, plid);
326            }
327    
328            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
329                    long layoutSetBranchId, long plid, boolean head)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
333                            plid, head);
334            }
335    
336            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
337                    long layoutSetBranchId, long layoutBranchId, long plid)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
341                            layoutBranchId, plid);
342            }
343    
344            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
345                    long plid) throws com.liferay.portal.kernel.exception.SystemException {
346                    return _layoutRevisionLocalService.getLayoutRevisions(plid);
347            }
348    
349            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
350                    long layoutSetBranchId, boolean head)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
353                            head);
354            }
355    
356            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
357                    long layoutSetBranchId, int status)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
360                            status);
361            }
362    
363            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
364                    long layoutSetBranchId, long plid)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
367                            plid);
368            }
369    
370            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
371                    long layoutSetBranchId, long plid, int status)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
374                            plid, status);
375            }
376    
377            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
378                    long layoutSetBranchId, long layoutBranchId, long plid, int start,
379                    int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
383                            layoutBranchId, plid, start, end, orderByComparator);
384            }
385    
386            public int getLayoutRevisionsCount(long layoutSetBranchId,
387                    long layoutBranchId, long plid)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _layoutRevisionLocalService.getLayoutRevisionsCount(layoutSetBranchId,
390                            layoutBranchId, plid);
391            }
392    
393            public com.liferay.portal.model.LayoutRevision updateLayoutRevision(
394                    long userId, long layoutRevisionId, long layoutBranchId,
395                    java.lang.String name, java.lang.String title,
396                    java.lang.String description, java.lang.String keywords,
397                    java.lang.String robots, java.lang.String typeSettings,
398                    boolean iconImage, long iconImageId, java.lang.String themeId,
399                    java.lang.String colorSchemeId, java.lang.String wapThemeId,
400                    java.lang.String wapColorSchemeId, java.lang.String css,
401                    com.liferay.portal.service.ServiceContext serviceContext)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    return _layoutRevisionLocalService.updateLayoutRevision(userId,
405                            layoutRevisionId, layoutBranchId, name, title, description,
406                            keywords, robots, typeSettings, iconImage, iconImageId, themeId,
407                            colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
408            }
409    
410            public com.liferay.portal.model.LayoutRevision updateStatus(long userId,
411                    long layoutRevisionId, int status,
412                    com.liferay.portal.service.ServiceContext serviceContext)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return _layoutRevisionLocalService.updateStatus(userId,
416                            layoutRevisionId, status, serviceContext);
417            }
418    
419            /**
420             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
421             */
422            public LayoutRevisionLocalService getWrappedLayoutRevisionLocalService() {
423                    return _layoutRevisionLocalService;
424            }
425    
426            /**
427             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
428             */
429            public void setWrappedLayoutRevisionLocalService(
430                    LayoutRevisionLocalService layoutRevisionLocalService) {
431                    _layoutRevisionLocalService = layoutRevisionLocalService;
432            }
433    
434            public LayoutRevisionLocalService getWrappedService() {
435                    return _layoutRevisionLocalService;
436            }
437    
438            public void setWrappedService(
439                    LayoutRevisionLocalService layoutRevisionLocalService) {
440                    _layoutRevisionLocalService = layoutRevisionLocalService;
441            }
442    
443            private LayoutRevisionLocalService _layoutRevisionLocalService;
444    }