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