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 LayoutSetLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutSetLocalService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutSetLocalServiceWrapper implements LayoutSetLocalService,
028            ServiceWrapper<LayoutSetLocalService> {
029            public LayoutSetLocalServiceWrapper(
030                    LayoutSetLocalService layoutSetLocalService) {
031                    _layoutSetLocalService = layoutSetLocalService;
032            }
033    
034            @Override
035            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
036                    boolean privateLayout)
037                    throws com.liferay.portal.kernel.exception.PortalException {
038                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
039            }
040    
041            /**
042            * Adds the layout set to the database. Also notifies the appropriate model listeners.
043            *
044            * @param layoutSet the layout set
045            * @return the layout set that was added
046            */
047            @Override
048            public com.liferay.portal.model.LayoutSet addLayoutSet(
049                    com.liferay.portal.model.LayoutSet layoutSet) {
050                    return _layoutSetLocalService.addLayoutSet(layoutSet);
051            }
052    
053            /**
054            * Creates a new layout set with the primary key. Does not add the layout set to the database.
055            *
056            * @param layoutSetId the primary key for the new layout set
057            * @return the new layout set
058            */
059            @Override
060            public com.liferay.portal.model.LayoutSet createLayoutSet(long layoutSetId) {
061                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
062            }
063    
064            @Override
065            public void deleteLayoutSet(long groupId, boolean privateLayout,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
069                            serviceContext);
070            }
071    
072            /**
073            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
074            *
075            * @param layoutSet the layout set
076            * @return the layout set that was removed
077            */
078            @Override
079            public com.liferay.portal.model.LayoutSet deleteLayoutSet(
080                    com.liferay.portal.model.LayoutSet layoutSet) {
081                    return _layoutSetLocalService.deleteLayoutSet(layoutSet);
082            }
083    
084            /**
085            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
086            *
087            * @param layoutSetId the primary key of the layout set
088            * @return the layout set that was removed
089            * @throws PortalException if a layout set with the primary key could not be found
090            */
091            @Override
092            public com.liferay.portal.model.LayoutSet deleteLayoutSet(long layoutSetId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _layoutSetLocalService.deleteLayoutSet(layoutSetId);
095            }
096    
097            /**
098            * @throws PortalException
099            */
100            @Override
101            public com.liferay.portal.model.PersistedModel deletePersistedModel(
102                    com.liferay.portal.model.PersistedModel persistedModel)
103                    throws com.liferay.portal.kernel.exception.PortalException {
104                    return _layoutSetLocalService.deletePersistedModel(persistedModel);
105            }
106    
107            @Override
108            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
109                    return _layoutSetLocalService.dynamicQuery();
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns the matching rows.
114            *
115            * @param dynamicQuery the dynamic query
116            * @return the matching rows
117            */
118            @Override
119            public <T> java.util.List<T> dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
121                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns a range of the matching rows.
126            *
127            * <p>
128            * 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.LayoutSetModelImpl}. 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @return the range of matching rows
135            */
136            @Override
137            public <T> java.util.List<T> dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end) {
140                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
145            *
146            * <p>
147            * 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.LayoutSetModelImpl}. 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
154            * @return the ordered range of matching rows
155            */
156            @Override
157            public <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end,
160                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
161                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
162                            orderByComparator);
163            }
164    
165            /**
166            * Returns the number of rows matching the dynamic query.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the number of rows matching the dynamic query
170            */
171            @Override
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
175            }
176    
177            /**
178            * Returns the number of rows matching the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @param projection the projection to apply to the query
182            * @return the number of rows matching the dynamic query
183            */
184            @Override
185            public long dynamicQueryCount(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
187                    com.liferay.portal.kernel.dao.orm.Projection projection) {
188                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery, projection);
189            }
190    
191            @Override
192            public com.liferay.portal.model.LayoutSet fetchLayoutSet(long layoutSetId) {
193                    return _layoutSetLocalService.fetchLayoutSet(layoutSetId);
194            }
195    
196            @Override
197            public com.liferay.portal.model.LayoutSet fetchLayoutSet(
198                    java.lang.String virtualHostname) {
199                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
200            }
201    
202            @Override
203            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
204                    return _layoutSetLocalService.getActionableDynamicQuery();
205            }
206    
207            /**
208            * Returns the Spring bean ID for this bean.
209            *
210            * @return the Spring bean ID for this bean
211            */
212            @Override
213            public java.lang.String getBeanIdentifier() {
214                    return _layoutSetLocalService.getBeanIdentifier();
215            }
216    
217            @Override
218            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
219                    boolean privateLayout)
220                    throws com.liferay.portal.kernel.exception.PortalException {
221                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
222            }
223    
224            /**
225            * Returns the layout set with the primary key.
226            *
227            * @param layoutSetId the primary key of the layout set
228            * @return the layout set
229            * @throws PortalException if a layout set with the primary key could not be found
230            */
231            @Override
232            public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
233                    throws com.liferay.portal.kernel.exception.PortalException {
234                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
235            }
236    
237            @Override
238            public com.liferay.portal.model.LayoutSet getLayoutSet(
239                    java.lang.String virtualHostname)
240                    throws com.liferay.portal.kernel.exception.PortalException {
241                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
242            }
243    
244            /**
245            * Returns a range of all the layout sets.
246            *
247            * <p>
248            * 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.LayoutSetModelImpl}. 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.
249            * </p>
250            *
251            * @param start the lower bound of the range of layout sets
252            * @param end the upper bound of the range of layout sets (not inclusive)
253            * @return the range of layout sets
254            */
255            @Override
256            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
257                    int start, int end) {
258                    return _layoutSetLocalService.getLayoutSets(start, end);
259            }
260    
261            @Override
262            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
263                    java.lang.String layoutSetPrototypeUuid) {
264                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
265            }
266    
267            /**
268            * Returns the number of layout sets.
269            *
270            * @return the number of layout sets
271            */
272            @Override
273            public int getLayoutSetsCount() {
274                    return _layoutSetLocalService.getLayoutSetsCount();
275            }
276    
277            @Override
278            public com.liferay.portal.model.PersistedModel getPersistedModel(
279                    java.io.Serializable primaryKeyObj)
280                    throws com.liferay.portal.kernel.exception.PortalException {
281                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
282            }
283    
284            /**
285            * Sets the Spring bean ID for this bean.
286            *
287            * @param beanIdentifier the Spring bean ID for this bean
288            */
289            @Override
290            public void setBeanIdentifier(java.lang.String beanIdentifier) {
291                    _layoutSetLocalService.setBeanIdentifier(beanIdentifier);
292            }
293    
294            /**
295            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
296            *
297            * @param layoutSet the layout set
298            * @return the layout set that was updated
299            */
300            @Override
301            public com.liferay.portal.model.LayoutSet updateLayoutSet(
302                    com.liferay.portal.model.LayoutSet layoutSet) {
303                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
304            }
305    
306            /**
307            * Updates the state of the layout set prototype link.
308            *
309            * <p>
310            * This method can disable the layout set prototype's link by setting
311            * <code>layoutSetPrototypeLinkEnabled</code> to <code>false</code>.
312            * However, this method can only enable the layout set prototype's link if
313            * the layout set prototype's current uuid is not <code>null</code>. Setting
314            * the <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> when
315            * the layout set prototype's current uuid is <code>null</code> will have no
316            * effect.
317            * </p>
318            *
319            * @param groupId the primary key of the group
320            * @param privateLayout whether the layout set is private to the group
321            * @param layoutSetPrototypeLinkEnabled whether the layout set
322            prototype is link enabled
323            * @throws PortalException if a portal exception occurred
324            * @deprecated As of 6.1.0, replaced by {@link
325            #updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean,
326            String)}
327            */
328            @Deprecated
329            @Override
330            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
331                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
334                            privateLayout, layoutSetPrototypeLinkEnabled);
335            }
336    
337            /**
338            * Updates the state of the layout set prototype link.
339            *
340            * @param groupId the primary key of the group
341            * @param privateLayout whether the layout set is private to the group
342            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
343            link enabled
344            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
345            link with
346            * @throws PortalException if a portal exception occurred
347            */
348            @Override
349            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
350                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
351                    java.lang.String layoutSetPrototypeUuid)
352                    throws com.liferay.portal.kernel.exception.PortalException {
353                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
354                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
355            }
356    
357            @Override
358            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
359                    boolean privateLayout, boolean logo, byte[] bytes)
360                    throws com.liferay.portal.kernel.exception.PortalException {
361                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
362                            bytes);
363            }
364    
365            @Override
366            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
367                    boolean privateLayout, boolean logo, java.io.File file)
368                    throws com.liferay.portal.kernel.exception.PortalException {
369                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
370                            file);
371            }
372    
373            @Override
374            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
375                    boolean privateLayout, boolean logo, java.io.InputStream is)
376                    throws com.liferay.portal.kernel.exception.PortalException {
377                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
378                            is);
379            }
380    
381            @Override
382            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
383                    boolean privateLayout, boolean logo, java.io.InputStream is,
384                    boolean cleanUpStream)
385                    throws com.liferay.portal.kernel.exception.PortalException {
386                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
387                            is, cleanUpStream);
388            }
389    
390            @Override
391            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
392                    boolean privateLayout, java.lang.String themeId,
393                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
394                    throws com.liferay.portal.kernel.exception.PortalException {
395                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
396                            themeId, colorSchemeId, css, wapTheme);
397            }
398    
399            @Override
400            public void updateLookAndFeel(long groupId, java.lang.String themeId,
401                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
402                    throws com.liferay.portal.kernel.exception.PortalException {
403                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
404                            colorSchemeId, css, wapTheme);
405            }
406    
407            @Override
408            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
409                    boolean privateLayout)
410                    throws com.liferay.portal.kernel.exception.PortalException {
411                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
412            }
413    
414            @Override
415            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
416                    boolean privateLayout, java.lang.String settings)
417                    throws com.liferay.portal.kernel.exception.PortalException {
418                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
419                            settings);
420            }
421    
422            @Override
423            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
424                    boolean privateLayout, java.lang.String virtualHostname)
425                    throws com.liferay.portal.kernel.exception.PortalException {
426                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
427                            virtualHostname);
428            }
429    
430            /**
431             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
432             */
433            @Deprecated
434            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
435                    return _layoutSetLocalService;
436            }
437    
438            /**
439             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
440             */
441            @Deprecated
442            public void setWrappedLayoutSetLocalService(
443                    LayoutSetLocalService layoutSetLocalService) {
444                    _layoutSetLocalService = layoutSetLocalService;
445            }
446    
447            @Override
448            public LayoutSetLocalService getWrappedService() {
449                    return _layoutSetLocalService;
450            }
451    
452            @Override
453            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
454                    _layoutSetLocalService = layoutSetLocalService;
455            }
456    
457            private LayoutSetLocalService _layoutSetLocalService;
458    }