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