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            @Override
208            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
209                    boolean privateLayout)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
212            }
213    
214            /**
215            * Returns the layout set with the primary key.
216            *
217            * @param layoutSetId the primary key of the layout set
218            * @return the layout set
219            * @throws PortalException if a layout set with the primary key could not be found
220            */
221            @Override
222            public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
223                    throws com.liferay.portal.kernel.exception.PortalException {
224                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
225            }
226    
227            @Override
228            public com.liferay.portal.model.LayoutSet getLayoutSet(
229                    java.lang.String virtualHostname)
230                    throws com.liferay.portal.kernel.exception.PortalException {
231                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
232            }
233    
234            /**
235            * Returns a range of all the layout sets.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param start the lower bound of the range of layout sets
242            * @param end the upper bound of the range of layout sets (not inclusive)
243            * @return the range of layout sets
244            */
245            @Override
246            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
247                    int start, int end) {
248                    return _layoutSetLocalService.getLayoutSets(start, end);
249            }
250    
251            @Override
252            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
253                    java.lang.String layoutSetPrototypeUuid) {
254                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
255            }
256    
257            /**
258            * Returns the number of layout sets.
259            *
260            * @return the number of layout sets
261            */
262            @Override
263            public int getLayoutSetsCount() {
264                    return _layoutSetLocalService.getLayoutSetsCount();
265            }
266    
267            /**
268            * Returns the OSGi service identifier.
269            *
270            * @return the OSGi service identifier
271            */
272            @Override
273            public java.lang.String getOSGiServiceIdentifier() {
274                    return _layoutSetLocalService.getOSGiServiceIdentifier();
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            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286            *
287            * @param layoutSet the layout set
288            * @return the layout set that was updated
289            */
290            @Override
291            public com.liferay.portal.model.LayoutSet updateLayoutSet(
292                    com.liferay.portal.model.LayoutSet layoutSet) {
293                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
294            }
295    
296            /**
297            * Updates the state of the layout set prototype link.
298            *
299            * <p>
300            * This method can disable the layout set prototype's link by setting
301            * <code>layoutSetPrototypeLinkEnabled</code> to <code>false</code>.
302            * However, this method can only enable the layout set prototype's link if
303            * the layout set prototype's current uuid is not <code>null</code>. Setting
304            * the <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> when
305            * the layout set prototype's current uuid is <code>null</code> will have no
306            * effect.
307            * </p>
308            *
309            * @param groupId the primary key of the group
310            * @param privateLayout whether the layout set is private to the group
311            * @param layoutSetPrototypeLinkEnabled whether the layout set
312            prototype is link enabled
313            * @deprecated As of 6.1.0, replaced by {@link
314            #updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean,
315            String)}
316            */
317            @Deprecated
318            @Override
319            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
320                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
321                    throws com.liferay.portal.kernel.exception.PortalException {
322                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
323                            privateLayout, layoutSetPrototypeLinkEnabled);
324            }
325    
326            /**
327            * Updates the state of the layout set prototype link.
328            *
329            * @param groupId the primary key of the group
330            * @param privateLayout whether the layout set is private to the group
331            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
332            link enabled
333            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
334            link with
335            */
336            @Override
337            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
338                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
339                    java.lang.String layoutSetPrototypeUuid)
340                    throws com.liferay.portal.kernel.exception.PortalException {
341                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
342                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
343            }
344    
345            @Override
346            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
347                    boolean privateLayout, boolean logo, byte[] bytes)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
350                            bytes);
351            }
352    
353            @Override
354            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
355                    boolean privateLayout, boolean logo, java.io.File file)
356                    throws com.liferay.portal.kernel.exception.PortalException {
357                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
358                            file);
359            }
360    
361            @Override
362            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
363                    boolean privateLayout, boolean logo, java.io.InputStream is)
364                    throws com.liferay.portal.kernel.exception.PortalException {
365                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
366                            is);
367            }
368    
369            @Override
370            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
371                    boolean privateLayout, boolean logo, java.io.InputStream is,
372                    boolean cleanUpStream)
373                    throws com.liferay.portal.kernel.exception.PortalException {
374                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
375                            is, cleanUpStream);
376            }
377    
378            @Override
379            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
380                    boolean privateLayout, java.lang.String themeId,
381                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
382                    throws com.liferay.portal.kernel.exception.PortalException {
383                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
384                            themeId, colorSchemeId, css, wapTheme);
385            }
386    
387            @Override
388            public void updateLookAndFeel(long groupId, java.lang.String themeId,
389                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
390                    throws com.liferay.portal.kernel.exception.PortalException {
391                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
392                            colorSchemeId, css, wapTheme);
393            }
394    
395            @Override
396            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
397                    boolean privateLayout)
398                    throws com.liferay.portal.kernel.exception.PortalException {
399                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
400            }
401    
402            @Override
403            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
404                    boolean privateLayout, java.lang.String settings)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
407                            settings);
408            }
409    
410            @Override
411            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
412                    boolean privateLayout, java.lang.String virtualHostname)
413                    throws com.liferay.portal.kernel.exception.PortalException {
414                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
415                            virtualHostname);
416            }
417    
418            /**
419             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
420             */
421            @Deprecated
422            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
423                    return _layoutSetLocalService;
424            }
425    
426            /**
427             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
428             */
429            @Deprecated
430            public void setWrappedLayoutSetLocalService(
431                    LayoutSetLocalService layoutSetLocalService) {
432                    _layoutSetLocalService = layoutSetLocalService;
433            }
434    
435            @Override
436            public LayoutSetLocalService getWrappedService() {
437                    return _layoutSetLocalService;
438            }
439    
440            @Override
441            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
442                    _layoutSetLocalService = layoutSetLocalService;
443            }
444    
445            private LayoutSetLocalService _layoutSetLocalService;
446    }