001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    boolean privateLayout, java.lang.String name, java.lang.String title,
263                    java.lang.String description, java.lang.String keywords,
264                    java.lang.String robots, java.lang.String typeSettings,
265                    boolean iconImage, long iconImageId, java.lang.String themeId,
266                    java.lang.String colorSchemeId, java.lang.String wapThemeId,
267                    java.lang.String wapColorSchemeId, java.lang.String css,
268                    com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _layoutRevisionLocalService.addLayoutRevision(userId,
272                            layoutSetBranchId, layoutBranchId, parentLayoutRevisionId, head,
273                            plid, privateLayout, name, title, description, keywords, robots,
274                            typeSettings, iconImage, iconImageId, themeId, colorSchemeId,
275                            wapThemeId, wapColorSchemeId, css, serviceContext);
276            }
277    
278            public void deleteLayoutLayoutRevisions(long plid)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _layoutRevisionLocalService.deleteLayoutLayoutRevisions(plid);
282            }
283    
284            public void deleteLayoutRevisions(long layoutSetBranchId, long plid)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
288                            plid);
289            }
290    
291            public void deleteLayoutRevisions(long layoutSetBranchId,
292                    long layoutBranchId, long plid)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
296                            layoutBranchId, plid);
297            }
298    
299            public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _layoutRevisionLocalService.deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
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 Renamed to {@link #getWrappedService}
421             */
422            public LayoutRevisionLocalService getWrappedLayoutRevisionLocalService() {
423                    return _layoutRevisionLocalService;
424            }
425    
426            /**
427             * @deprecated Renamed to {@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    }