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