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