001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link 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.kernel.model.LayoutSet addLayoutSet(
036                    long groupId, 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.kernel.model.LayoutSet addLayoutSet(
049                    com.liferay.portal.kernel.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.kernel.model.LayoutSet createLayoutSet(
061                    long layoutSetId) {
062                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
063            }
064    
065            @Override
066            public void deleteLayoutSet(long groupId, boolean privateLayout,
067                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
070                            serviceContext);
071            }
072    
073            /**
074            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
075            *
076            * @param layoutSet the layout set
077            * @return the layout set that was removed
078            */
079            @Override
080            public com.liferay.portal.kernel.model.LayoutSet deleteLayoutSet(
081                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
082                    return _layoutSetLocalService.deleteLayoutSet(layoutSet);
083            }
084    
085            /**
086            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
087            *
088            * @param layoutSetId the primary key of the layout set
089            * @return the layout set that was removed
090            * @throws PortalException if a layout set with the primary key could not be found
091            */
092            @Override
093            public com.liferay.portal.kernel.model.LayoutSet deleteLayoutSet(
094                    long layoutSetId)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return _layoutSetLocalService.deleteLayoutSet(layoutSetId);
097            }
098    
099            /**
100            * @throws PortalException
101            */
102            @Override
103            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
104                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _layoutSetLocalService.deletePersistedModel(persistedModel);
107            }
108    
109            @Override
110            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
111                    return _layoutSetLocalService.dynamicQuery();
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns the matching rows.
116            *
117            * @param dynamicQuery the dynamic query
118            * @return the matching rows
119            */
120            @Override
121            public <T> java.util.List<T> dynamicQuery(
122                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
123                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns a range of the matching rows.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @return the range of matching rows
137            */
138            @Override
139            public <T> java.util.List<T> dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end) {
142                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
143            }
144    
145            /**
146            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
147            *
148            * <p>
149            * 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.
150            * </p>
151            *
152            * @param dynamicQuery the dynamic query
153            * @param start the lower bound of the range of model instances
154            * @param end the upper bound of the range of model instances (not inclusive)
155            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
156            * @return the ordered range of matching rows
157            */
158            @Override
159            public <T> java.util.List<T> dynamicQuery(
160                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161                    int end,
162                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
163                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
164                            orderByComparator);
165            }
166    
167            /**
168            * Returns the number of rows matching the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @return the number of rows matching the dynamic query
172            */
173            @Override
174            public long dynamicQueryCount(
175                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
176                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
177            }
178    
179            /**
180            * Returns the number of rows matching the dynamic query.
181            *
182            * @param dynamicQuery the dynamic query
183            * @param projection the projection to apply to the query
184            * @return the number of rows matching the dynamic query
185            */
186            @Override
187            public long dynamicQueryCount(
188                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
189                    com.liferay.portal.kernel.dao.orm.Projection projection) {
190                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery, projection);
191            }
192    
193            @Override
194            public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(
195                    long layoutSetId) {
196                    return _layoutSetLocalService.fetchLayoutSet(layoutSetId);
197            }
198    
199            @Override
200            public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(
201                    java.lang.String virtualHostname) {
202                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
203            }
204    
205            @Override
206            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
207                    return _layoutSetLocalService.getActionableDynamicQuery();
208            }
209    
210            @Override
211            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
212                    return _layoutSetLocalService.getIndexableActionableDynamicQuery();
213            }
214    
215            @Override
216            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
217                    long groupId, boolean privateLayout)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
220            }
221    
222            /**
223            * Returns the layout set with the primary key.
224            *
225            * @param layoutSetId the primary key of the layout set
226            * @return the layout set
227            * @throws PortalException if a layout set with the primary key could not be found
228            */
229            @Override
230            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
231                    long layoutSetId)
232                    throws com.liferay.portal.kernel.exception.PortalException {
233                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
234            }
235    
236            @Override
237            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
238                    java.lang.String virtualHostname)
239                    throws com.liferay.portal.kernel.exception.PortalException {
240                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
241            }
242    
243            /**
244            * Returns a range of all the layout sets.
245            *
246            * <p>
247            * 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.
248            * </p>
249            *
250            * @param start the lower bound of the range of layout sets
251            * @param end the upper bound of the range of layout sets (not inclusive)
252            * @return the range of layout sets
253            */
254            @Override
255            public java.util.List<com.liferay.portal.kernel.model.LayoutSet> getLayoutSets(
256                    int start, int end) {
257                    return _layoutSetLocalService.getLayoutSets(start, end);
258            }
259    
260            @Override
261            public java.util.List<com.liferay.portal.kernel.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
262                    java.lang.String layoutSetPrototypeUuid) {
263                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
264            }
265    
266            /**
267            * Returns the number of layout sets.
268            *
269            * @return the number of layout sets
270            */
271            @Override
272            public int getLayoutSetsCount() {
273                    return _layoutSetLocalService.getLayoutSetsCount();
274            }
275    
276            /**
277            * Returns the OSGi service identifier.
278            *
279            * @return the OSGi service identifier
280            */
281            @Override
282            public java.lang.String getOSGiServiceIdentifier() {
283                    return _layoutSetLocalService.getOSGiServiceIdentifier();
284            }
285    
286            @Override
287            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
288                    java.io.Serializable primaryKeyObj)
289                    throws com.liferay.portal.kernel.exception.PortalException {
290                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
291            }
292    
293            /**
294            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
295            *
296            * @param layoutSet the layout set
297            * @return the layout set that was updated
298            */
299            @Override
300            public com.liferay.portal.kernel.model.LayoutSet updateLayoutSet(
301                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
302                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
303            }
304    
305            /**
306            * Updates the state of the layout set prototype link.
307            *
308            * @param groupId the primary key of the group
309            * @param privateLayout whether the layout set is private to the group
310            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
311            link enabled
312            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
313            link with
314            */
315            @Override
316            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
317                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
318                    java.lang.String layoutSetPrototypeUuid)
319                    throws com.liferay.portal.kernel.exception.PortalException {
320                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
321                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
322            }
323    
324            @Override
325            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
326                    boolean privateLayout, boolean logo, byte[] bytes)
327                    throws com.liferay.portal.kernel.exception.PortalException {
328                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
329                            bytes);
330            }
331    
332            @Override
333            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
334                    boolean privateLayout, boolean logo, java.io.File file)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
337                            file);
338            }
339    
340            @Override
341            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
342                    boolean privateLayout, boolean logo, java.io.InputStream is)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
345                            is);
346            }
347    
348            @Override
349            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
350                    boolean privateLayout, boolean logo, java.io.InputStream is,
351                    boolean cleanUpStream)
352                    throws com.liferay.portal.kernel.exception.PortalException {
353                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
354                            is, cleanUpStream);
355            }
356    
357            @Override
358            public com.liferay.portal.kernel.model.LayoutSet updateLookAndFeel(
359                    long groupId, boolean privateLayout, java.lang.String themeId,
360                    java.lang.String colorSchemeId, java.lang.String css)
361                    throws com.liferay.portal.kernel.exception.PortalException {
362                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
363                            themeId, colorSchemeId, css);
364            }
365    
366            @Override
367            public void updateLookAndFeel(long groupId, java.lang.String themeId,
368                    java.lang.String colorSchemeId, java.lang.String css)
369                    throws com.liferay.portal.kernel.exception.PortalException {
370                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
371                            colorSchemeId, css);
372            }
373    
374            @Override
375            public com.liferay.portal.kernel.model.LayoutSet updatePageCount(
376                    long groupId, boolean privateLayout)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
379            }
380    
381            @Override
382            public com.liferay.portal.kernel.model.LayoutSet updateSettings(
383                    long groupId, boolean privateLayout, java.lang.String settings)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
386                            settings);
387            }
388    
389            @Override
390            public com.liferay.portal.kernel.model.LayoutSet updateVirtualHost(
391                    long groupId, boolean privateLayout, java.lang.String virtualHostname)
392                    throws com.liferay.portal.kernel.exception.PortalException {
393                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
394                            virtualHostname);
395            }
396    
397            @Override
398            public LayoutSetLocalService getWrappedService() {
399                    return _layoutSetLocalService;
400            }
401    
402            @Override
403            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
404                    _layoutSetLocalService = layoutSetLocalService;
405            }
406    
407            private LayoutSetLocalService _layoutSetLocalService;
408    }