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            * @param groupId the primary key of the group
305            * @param privateLayout whether the layout set is private to the group
306            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
307            link enabled
308            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
309            link with
310            */
311            @Override
312            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
313                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
314                    java.lang.String layoutSetPrototypeUuid)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
317                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
318            }
319    
320            @Override
321            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
322                    boolean privateLayout, boolean logo, byte[] bytes)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
325                            bytes);
326            }
327    
328            @Override
329            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
330                    boolean privateLayout, boolean logo, java.io.File file)
331                    throws com.liferay.portal.kernel.exception.PortalException {
332                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
333                            file);
334            }
335    
336            @Override
337            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
338                    boolean privateLayout, boolean logo, java.io.InputStream is)
339                    throws com.liferay.portal.kernel.exception.PortalException {
340                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
341                            is);
342            }
343    
344            @Override
345            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
346                    boolean privateLayout, boolean logo, java.io.InputStream is,
347                    boolean cleanUpStream)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
350                            is, cleanUpStream);
351            }
352    
353            @Override
354            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
355                    boolean privateLayout, java.lang.String themeId,
356                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
359                            themeId, colorSchemeId, css, wapTheme);
360            }
361    
362            @Override
363            public void updateLookAndFeel(long groupId, java.lang.String themeId,
364                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
365                    throws com.liferay.portal.kernel.exception.PortalException {
366                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
367                            colorSchemeId, css, wapTheme);
368            }
369    
370            @Override
371            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
372                    boolean privateLayout)
373                    throws com.liferay.portal.kernel.exception.PortalException {
374                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
375            }
376    
377            @Override
378            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
379                    boolean privateLayout, java.lang.String settings)
380                    throws com.liferay.portal.kernel.exception.PortalException {
381                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
382                            settings);
383            }
384    
385            @Override
386            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
387                    boolean privateLayout, java.lang.String virtualHostname)
388                    throws com.liferay.portal.kernel.exception.PortalException {
389                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
390                            virtualHostname);
391            }
392    
393            @Override
394            public LayoutSetLocalService getWrappedService() {
395                    return _layoutSetLocalService;
396            }
397    
398            @Override
399            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
400                    _layoutSetLocalService = layoutSetLocalService;
401            }
402    
403            private LayoutSetLocalService _layoutSetLocalService;
404    }