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