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