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.kernel.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.kernel.model.LayoutRevision addLayoutRevision(
043                    com.liferay.portal.kernel.model.LayoutRevision layoutRevision) {
044                    return _layoutRevisionLocalService.addLayoutRevision(layoutRevision);
045            }
046    
047            @Override
048            public com.liferay.portal.kernel.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 css,
057                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return _layoutRevisionLocalService.addLayoutRevision(userId,
060                            layoutSetBranchId, layoutBranchId, parentLayoutRevisionId, head,
061                            plid, portletPreferencesPlid, privateLayout, name, title,
062                            description, keywords, robots, typeSettings, iconImage,
063                            iconImageId, themeId, colorSchemeId, css, serviceContext);
064            }
065    
066            /**
067            * Creates a new layout revision with the primary key. Does not add the layout revision to the database.
068            *
069            * @param layoutRevisionId the primary key for the new layout revision
070            * @return the new layout revision
071            */
072            @Override
073            public com.liferay.portal.kernel.model.LayoutRevision createLayoutRevision(
074                    long layoutRevisionId) {
075                    return _layoutRevisionLocalService.createLayoutRevision(layoutRevisionId);
076            }
077    
078            @Override
079            public void deleteLayoutLayoutRevisions(long plid)
080                    throws com.liferay.portal.kernel.exception.PortalException {
081                    _layoutRevisionLocalService.deleteLayoutLayoutRevisions(plid);
082            }
083    
084            /**
085            * Deletes the layout revision from the database. Also notifies the appropriate model listeners.
086            *
087            * @param layoutRevision the layout revision
088            * @return the layout revision that was removed
089            * @throws PortalException
090            */
091            @Override
092            public com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(
093                    com.liferay.portal.kernel.model.LayoutRevision layoutRevision)
094                    throws com.liferay.portal.kernel.exception.PortalException {
095                    return _layoutRevisionLocalService.deleteLayoutRevision(layoutRevision);
096            }
097    
098            /**
099            * Deletes the layout revision with the primary key from the database. Also notifies the appropriate model listeners.
100            *
101            * @param layoutRevisionId the primary key of the layout revision
102            * @return the layout revision that was removed
103            * @throws PortalException if a layout revision with the primary key could not be found
104            */
105            @Override
106            public com.liferay.portal.kernel.model.LayoutRevision deleteLayoutRevision(
107                    long layoutRevisionId)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _layoutRevisionLocalService.deleteLayoutRevision(layoutRevisionId);
110            }
111    
112            @Override
113            public void deleteLayoutRevisions(long layoutSetBranchId,
114                    long layoutBranchId, long plid)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
117                            layoutBranchId, plid);
118            }
119    
120            @Override
121            public void deleteLayoutRevisions(long layoutSetBranchId, long plid)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    _layoutRevisionLocalService.deleteLayoutRevisions(layoutSetBranchId,
124                            plid);
125            }
126    
127            @Override
128            public void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    _layoutRevisionLocalService.deleteLayoutSetBranchLayoutRevisions(layoutSetBranchId);
131            }
132    
133            /**
134            * @throws PortalException
135            */
136            @Override
137            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
138                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return _layoutRevisionLocalService.deletePersistedModel(persistedModel);
141            }
142    
143            @Override
144            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
145                    return _layoutRevisionLocalService.dynamicQuery();
146            }
147    
148            /**
149            * Performs a dynamic query on the database and returns the matching rows.
150            *
151            * @param dynamicQuery the dynamic query
152            * @return the matching rows
153            */
154            @Override
155            public <T> java.util.List<T> dynamicQuery(
156                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
157                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery);
158            }
159    
160            /**
161            * Performs a dynamic query on the database and returns a range of the matching rows.
162            *
163            * <p>
164            * 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.
165            * </p>
166            *
167            * @param dynamicQuery the dynamic query
168            * @param start the lower bound of the range of model instances
169            * @param end the upper bound of the range of model instances (not inclusive)
170            * @return the range of matching rows
171            */
172            @Override
173            public <T> java.util.List<T> dynamicQuery(
174                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
175                    int end) {
176                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery, start, end);
177            }
178    
179            /**
180            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
181            *
182            * <p>
183            * 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.
184            * </p>
185            *
186            * @param dynamicQuery the dynamic query
187            * @param start the lower bound of the range of model instances
188            * @param end the upper bound of the range of model instances (not inclusive)
189            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190            * @return the ordered range of matching rows
191            */
192            @Override
193            public <T> java.util.List<T> dynamicQuery(
194                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
195                    int end,
196                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
197                    return _layoutRevisionLocalService.dynamicQuery(dynamicQuery, start,
198                            end, orderByComparator);
199            }
200    
201            /**
202            * Returns the number of rows matching the dynamic query.
203            *
204            * @param dynamicQuery the dynamic query
205            * @return the number of rows matching the dynamic query
206            */
207            @Override
208            public long dynamicQueryCount(
209                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
210                    return _layoutRevisionLocalService.dynamicQueryCount(dynamicQuery);
211            }
212    
213            /**
214            * Returns the number of rows matching the dynamic query.
215            *
216            * @param dynamicQuery the dynamic query
217            * @param projection the projection to apply to the query
218            * @return the number of rows matching the dynamic query
219            */
220            @Override
221            public long dynamicQueryCount(
222                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
223                    com.liferay.portal.kernel.dao.orm.Projection projection) {
224                    return _layoutRevisionLocalService.dynamicQueryCount(dynamicQuery,
225                            projection);
226            }
227    
228            @Override
229            public com.liferay.portal.kernel.model.LayoutRevision fetchLastLayoutRevision(
230                    long plid, boolean head) {
231                    return _layoutRevisionLocalService.fetchLastLayoutRevision(plid, head);
232            }
233    
234            @Override
235            public com.liferay.portal.kernel.model.LayoutRevision fetchLatestLayoutRevision(
236                    long layoutSetBranchId, long plid) {
237                    return _layoutRevisionLocalService.fetchLatestLayoutRevision(layoutSetBranchId,
238                            plid);
239            }
240    
241            @Override
242            public com.liferay.portal.kernel.model.LayoutRevision fetchLayoutRevision(
243                    long layoutRevisionId) {
244                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutRevisionId);
245            }
246    
247            @Override
248            public com.liferay.portal.kernel.model.LayoutRevision fetchLayoutRevision(
249                    long layoutSetBranchId, boolean head, long plid) {
250                    return _layoutRevisionLocalService.fetchLayoutRevision(layoutSetBranchId,
251                            head, plid);
252            }
253    
254            @Override
255            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
256                    return _layoutRevisionLocalService.getActionableDynamicQuery();
257            }
258    
259            @Override
260            public java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(
261                    long layoutSetBranchId, long parentLayoutRevision, long plid,
262                    int start, int end,
263                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutRevision> orderByComparator) {
264                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
265                            parentLayoutRevision, plid, start, end, orderByComparator);
266            }
267    
268            @Override
269            public java.util.List<com.liferay.portal.kernel.model.LayoutRevision> getChildLayoutRevisions(
270                    long layoutSetBranchId, long parentLayoutRevisionId, long plid) {
271                    return _layoutRevisionLocalService.getChildLayoutRevisions(layoutSetBranchId,
272                            parentLayoutRevisionId, plid);
273            }
274    
275            @Override
276            public int getChildLayoutRevisionsCount(long layoutSetBranchId,
277                    long parentLayoutRevision, long plid) {
278                    return _layoutRevisionLocalService.getChildLayoutRevisionsCount(layoutSetBranchId,
279                            parentLayoutRevision, plid);
280            }
281    
282            @Override
283            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
284                    return _layoutRevisionLocalService.getIndexableActionableDynamicQuery();
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.kernel.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.kernel.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.kernel.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.kernel.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.kernel.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.kernel.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.kernel.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.kernel.model.LayoutRevision> getLayoutRevisions(
342                    long layoutSetBranchId, long plid, int start, int end,
343                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.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.kernel.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.kernel.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.kernel.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.kernel.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            /**
403            * Returns the OSGi service identifier.
404            *
405            * @return the OSGi service identifier
406            */
407            @Override
408            public java.lang.String getOSGiServiceIdentifier() {
409                    return _layoutRevisionLocalService.getOSGiServiceIdentifier();
410            }
411    
412            @Override
413            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
414                    java.io.Serializable primaryKeyObj)
415                    throws com.liferay.portal.kernel.exception.PortalException {
416                    return _layoutRevisionLocalService.getPersistedModel(primaryKeyObj);
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.kernel.model.LayoutRevision updateLayoutRevision(
427                    com.liferay.portal.kernel.model.LayoutRevision layoutRevision) {
428                    return _layoutRevisionLocalService.updateLayoutRevision(layoutRevision);
429            }
430    
431            @Override
432            public com.liferay.portal.kernel.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 css,
439                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
440                    throws com.liferay.portal.kernel.exception.PortalException {
441                    return _layoutRevisionLocalService.updateLayoutRevision(userId,
442                            layoutRevisionId, layoutBranchId, name, title, description,
443                            keywords, robots, typeSettings, iconImage, iconImageId, themeId,
444                            colorSchemeId, css, serviceContext);
445            }
446    
447            @Override
448            public com.liferay.portal.kernel.model.LayoutRevision updateStatus(
449                    long userId, long layoutRevisionId, int status,
450                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
451                    throws com.liferay.portal.kernel.exception.PortalException {
452                    return _layoutRevisionLocalService.updateStatus(userId,
453                            layoutRevisionId, status, serviceContext);
454            }
455    
456            @Override
457            public LayoutRevisionLocalService getWrappedService() {
458                    return _layoutRevisionLocalService;
459            }
460    
461            @Override
462            public void setWrappedService(
463                    LayoutRevisionLocalService layoutRevisionLocalService) {
464                    _layoutRevisionLocalService = layoutRevisionLocalService;
465            }
466    
467            private LayoutRevisionLocalService _layoutRevisionLocalService;
468    }