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 fetchLatestLayoutRevision(
238                    long layoutSetBranchId, long plid) {
239                    return _layoutRevisionLocalService.fetchLatestLayoutRevision(layoutSetBranchId,
240                            plid);
241            }
242    
243            @Override
244            public com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
245                    long layoutRevisionId) {
246                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutRevisionId);
247            }
248    
249            @Override
250            public com.liferay.portal.model.LayoutRevision fetchLayoutRevision(
251                    long layoutSetBranchId, boolean head, long plid) {
252                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutSetBranchId,
253                            head, plid);
254            }
255    
256            @Override
257            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
258                    return _layoutRevisionLocalService.getActionableDynamicQuery();
259            }
260    
261            /**
262            * Returns the Spring bean ID for this bean.
263            *
264            * @return the Spring bean ID for this bean
265            */
266            @Override
267            public java.lang.String getBeanIdentifier() {
268                    return _layoutRevisionLocalService.getBeanIdentifier();
269            }
270    
271            @Override
272            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
273                    long layoutSetBranchId, long parentLayoutRevision, long plid,
274                    int start, int end,
275                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
276                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
277                            parentLayoutRevision, plid, start, end, orderByComparator);
278            }
279    
280            @Override
281            public java.util.List<com.liferay.portal.model.LayoutRevision> getChildLayoutRevisions(
282                    long layoutSetBranchId, long parentLayoutRevisionId, long plid) {
283                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
284                            parentLayoutRevisionId, plid);
285            }
286    
287            @Override
288            public int getChildLayoutRevisionsCount(long layoutSetBranchId,
289                    long parentLayoutRevision, long plid) {
290                    return _layoutRevisionLocalService.getChildLayoutRevisionsCount(layoutSetBranchId,
291                            parentLayoutRevision, plid);
292            }
293    
294            /**
295            * Returns the layout revision with the primary key.
296            *
297            * @param layoutRevisionId the primary key of the layout revision
298            * @return the layout revision
299            * @throws PortalException if a layout revision with the primary key could not be found
300            */
301            @Override
302            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
303                    long layoutRevisionId)
304                    throws com.liferay.portal.kernel.exception.PortalException {
305                    return _layoutRevisionLocalService.getLayoutRevision(layoutRevisionId);
306            }
307    
308            @Override
309            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
310                    long layoutSetBranchId, long layoutBranchId, long plid)
311                    throws com.liferay.portal.kernel.exception.PortalException {
312                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
313                            layoutBranchId, plid);
314            }
315    
316            @Override
317            public com.liferay.portal.model.LayoutRevision getLayoutRevision(
318                    long layoutSetBranchId, long plid, boolean head)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    return _layoutRevisionLocalService.getLayoutRevision(layoutSetBranchId,
321                            plid, head);
322            }
323    
324            @Override
325            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
326                    long layoutSetBranchId, boolean head) {
327                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
328                            head);
329            }
330    
331            @Override
332            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
333                    long layoutSetBranchId, long layoutBranchId, long plid, int start,
334                    int end,
335                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
336                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
337                            layoutBranchId, plid, start, end, orderByComparator);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
342                    long layoutSetBranchId, long plid) {
343                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
344                            plid);
345            }
346    
347            @Override
348            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
349                    long layoutSetBranchId, long plid, int start, int end,
350                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutRevision> orderByComparator) {
351                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
352                            plid, start, end, orderByComparator);
353            }
354    
355            @Override
356            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
357                    long layoutSetBranchId, long plid, int status) {
358                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
359                            plid, status);
360            }
361    
362            @Override
363            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
364                    long layoutSetBranchId, int status) {
365                    return _layoutRevisionLocalService.getLayoutRevisions(layoutSetBranchId,
366                            status);
367            }
368    
369            @Override
370            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
371                    long plid) {
372                    return _layoutRevisionLocalService.getLayoutRevisions(plid);
373            }
374    
375            /**
376            * Returns a range of all the layout revisions.
377            *
378            * <p>
379            * 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.
380            * </p>
381            *
382            * @param start the lower bound of the range of layout revisions
383            * @param end the upper bound of the range of layout revisions (not inclusive)
384            * @return the range of layout revisions
385            */
386            @Override
387            public java.util.List<com.liferay.portal.model.LayoutRevision> getLayoutRevisions(
388                    int start, int end) {
389                    return _layoutRevisionLocalService.getLayoutRevisions(start, end);
390            }
391    
392            /**
393            * Returns the number of layout revisions.
394            *
395            * @return the number of layout revisions
396            */
397            @Override
398            public int getLayoutRevisionsCount() {
399                    return _layoutRevisionLocalService.getLayoutRevisionsCount();
400            }
401    
402            @Override
403            public int getLayoutRevisionsCount(long layoutSetBranchId,
404                    long layoutBranchId, long plid) {
405                    return _layoutRevisionLocalService.getLayoutRevisionsCount(layoutSetBranchId,
406                            layoutBranchId, plid);
407            }
408    
409            @Override
410            public com.liferay.portal.model.PersistedModel getPersistedModel(
411                    java.io.Serializable primaryKeyObj)
412                    throws com.liferay.portal.kernel.exception.PortalException {
413                    return _layoutRevisionLocalService.getPersistedModel(primaryKeyObj);
414            }
415    
416            /**
417            * Sets the Spring bean ID for this bean.
418            *
419            * @param beanIdentifier the Spring bean ID for this bean
420            */
421            @Override
422            public void setBeanIdentifier(java.lang.String beanIdentifier) {
423                    _layoutRevisionLocalService.setBeanIdentifier(beanIdentifier);
424            }
425    
426            /**
427            * Updates the layout revision in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
428            *
429            * @param layoutRevision the layout revision
430            * @return the layout revision that was updated
431            */
432            @Override
433            public com.liferay.portal.model.LayoutRevision updateLayoutRevision(
434                    com.liferay.portal.model.LayoutRevision layoutRevision) {
435                    return _layoutRevisionLocalService.updateLayoutRevision(layoutRevision);
436            }
437    
438            @Override
439            public com.liferay.portal.model.LayoutRevision updateLayoutRevision(
440                    long userId, long layoutRevisionId, long layoutBranchId,
441                    java.lang.String name, java.lang.String title,
442                    java.lang.String description, java.lang.String keywords,
443                    java.lang.String robots, java.lang.String typeSettings,
444                    boolean iconImage, long iconImageId, java.lang.String themeId,
445                    java.lang.String colorSchemeId, java.lang.String wapThemeId,
446                    java.lang.String wapColorSchemeId, java.lang.String css,
447                    com.liferay.portal.service.ServiceContext serviceContext)
448                    throws com.liferay.portal.kernel.exception.PortalException {
449                    return _layoutRevisionLocalService.updateLayoutRevision(userId,
450                            layoutRevisionId, layoutBranchId, name, title, description,
451                            keywords, robots, typeSettings, iconImage, iconImageId, themeId,
452                            colorSchemeId, wapThemeId, wapColorSchemeId, css, serviceContext);
453            }
454    
455            @Override
456            public com.liferay.portal.model.LayoutRevision updateStatus(long userId,
457                    long layoutRevisionId, int status,
458                    com.liferay.portal.service.ServiceContext serviceContext)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    return _layoutRevisionLocalService.updateStatus(userId,
461                            layoutRevisionId, status, serviceContext);
462            }
463    
464            /**
465             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
466             */
467            @Deprecated
468            public LayoutRevisionLocalService getWrappedLayoutRevisionLocalService() {
469                    return _layoutRevisionLocalService;
470            }
471    
472            /**
473             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
474             */
475            @Deprecated
476            public void setWrappedLayoutRevisionLocalService(
477                    LayoutRevisionLocalService layoutRevisionLocalService) {
478                    _layoutRevisionLocalService = layoutRevisionLocalService;
479            }
480    
481            @Override
482            public LayoutRevisionLocalService getWrappedService() {
483                    return _layoutRevisionLocalService;
484            }
485    
486            @Override
487            public void setWrappedService(
488                    LayoutRevisionLocalService layoutRevisionLocalService) {
489                    _layoutRevisionLocalService = layoutRevisionLocalService;
490            }
491    
492            private LayoutRevisionLocalService _layoutRevisionLocalService;
493    }