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.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
036                    return _layoutSetLocalService.getActionableDynamicQuery();
037            }
038    
039            @Override
040            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
041                    return _layoutSetLocalService.dynamicQuery();
042            }
043    
044            @Override
045            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
046                    return _layoutSetLocalService.getIndexableActionableDynamicQuery();
047            }
048    
049            /**
050            * Adds the layout set to the database. Also notifies the appropriate model listeners.
051            *
052            * @param layoutSet the layout set
053            * @return the layout set that was added
054            */
055            @Override
056            public com.liferay.portal.kernel.model.LayoutSet addLayoutSet(
057                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
058                    return _layoutSetLocalService.addLayoutSet(layoutSet);
059            }
060    
061            @Override
062            public com.liferay.portal.kernel.model.LayoutSet addLayoutSet(
063                    long groupId, boolean privateLayout)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
066            }
067    
068            /**
069            * Creates a new layout set with the primary key. Does not add the layout set to the database.
070            *
071            * @param layoutSetId the primary key for the new layout set
072            * @return the new layout set
073            */
074            @Override
075            public com.liferay.portal.kernel.model.LayoutSet createLayoutSet(
076                    long layoutSetId) {
077                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
078            }
079    
080            /**
081            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
082            *
083            * @param layoutSet the layout set
084            * @return the layout set that was removed
085            */
086            @Override
087            public com.liferay.portal.kernel.model.LayoutSet deleteLayoutSet(
088                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
089                    return _layoutSetLocalService.deleteLayoutSet(layoutSet);
090            }
091    
092            /**
093            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
094            *
095            * @param layoutSetId the primary key of the layout set
096            * @return the layout set that was removed
097            * @throws PortalException if a layout set with the primary key could not be found
098            */
099            @Override
100            public com.liferay.portal.kernel.model.LayoutSet deleteLayoutSet(
101                    long layoutSetId)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return _layoutSetLocalService.deleteLayoutSet(layoutSetId);
104            }
105    
106            @Override
107            public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(
108                    java.lang.String virtualHostname) {
109                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
110            }
111    
112            @Override
113            public com.liferay.portal.kernel.model.LayoutSet fetchLayoutSet(
114                    long layoutSetId) {
115                    return _layoutSetLocalService.fetchLayoutSet(layoutSetId);
116            }
117    
118            @Override
119            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
120                    java.lang.String virtualHostname)
121                    throws com.liferay.portal.kernel.exception.PortalException {
122                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
123            }
124    
125            @Override
126            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
127                    long groupId, boolean privateLayout)
128                    throws com.liferay.portal.kernel.exception.PortalException {
129                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
130            }
131    
132            /**
133            * Returns the layout set with the primary key.
134            *
135            * @param layoutSetId the primary key of the layout set
136            * @return the layout set
137            * @throws PortalException if a layout set with the primary key could not be found
138            */
139            @Override
140            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet(
141                    long layoutSetId)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
144            }
145    
146            /**
147            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
148            *
149            * @param layoutSet the layout set
150            * @return the layout set that was updated
151            */
152            @Override
153            public com.liferay.portal.kernel.model.LayoutSet updateLayoutSet(
154                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
155                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
156            }
157    
158            @Override
159            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
160                    boolean privateLayout, boolean logo, byte[] bytes)
161                    throws com.liferay.portal.kernel.exception.PortalException {
162                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
163                            bytes);
164            }
165    
166            @Override
167            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
168                    boolean privateLayout, boolean logo, java.io.File file)
169                    throws com.liferay.portal.kernel.exception.PortalException {
170                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
171                            file);
172            }
173    
174            @Override
175            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
176                    boolean privateLayout, boolean logo, java.io.InputStream is)
177                    throws com.liferay.portal.kernel.exception.PortalException {
178                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
179                            is);
180            }
181    
182            @Override
183            public com.liferay.portal.kernel.model.LayoutSet updateLogo(long groupId,
184                    boolean privateLayout, boolean logo, java.io.InputStream is,
185                    boolean cleanUpStream)
186                    throws com.liferay.portal.kernel.exception.PortalException {
187                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
188                            is, cleanUpStream);
189            }
190    
191            @Override
192            public com.liferay.portal.kernel.model.LayoutSet updateLookAndFeel(
193                    long groupId, boolean privateLayout, java.lang.String themeId,
194                    java.lang.String colorSchemeId, java.lang.String css)
195                    throws com.liferay.portal.kernel.exception.PortalException {
196                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
197                            themeId, colorSchemeId, css);
198            }
199    
200            @Override
201            public com.liferay.portal.kernel.model.LayoutSet updatePageCount(
202                    long groupId, boolean privateLayout)
203                    throws com.liferay.portal.kernel.exception.PortalException {
204                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
205            }
206    
207            @Override
208            public com.liferay.portal.kernel.model.LayoutSet updateSettings(
209                    long groupId, boolean privateLayout, java.lang.String settings)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
212                            settings);
213            }
214    
215            @Override
216            public com.liferay.portal.kernel.model.LayoutSet updateVirtualHost(
217                    long groupId, boolean privateLayout, java.lang.String virtualHostname)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
220                            virtualHostname);
221            }
222    
223            /**
224            * @throws PortalException
225            */
226            @Override
227            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
228                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
229                    throws com.liferay.portal.kernel.exception.PortalException {
230                    return _layoutSetLocalService.deletePersistedModel(persistedModel);
231            }
232    
233            @Override
234            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
235                    java.io.Serializable primaryKeyObj)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
238            }
239    
240            /**
241            * Returns the number of layout sets.
242            *
243            * @return the number of layout sets
244            */
245            @Override
246            public int getLayoutSetsCount() {
247                    return _layoutSetLocalService.getLayoutSetsCount();
248            }
249    
250            /**
251            * Returns the OSGi service identifier.
252            *
253            * @return the OSGi service identifier
254            */
255            @Override
256            public java.lang.String getOSGiServiceIdentifier() {
257                    return _layoutSetLocalService.getOSGiServiceIdentifier();
258            }
259    
260            /**
261            * Performs a dynamic query on the database and returns the matching rows.
262            *
263            * @param dynamicQuery the dynamic query
264            * @return the matching rows
265            */
266            @Override
267            public <T> java.util.List<T> dynamicQuery(
268                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
269                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
270            }
271    
272            /**
273            * Performs a dynamic query on the database and returns a range of the matching rows.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param dynamicQuery the dynamic query
280            * @param start the lower bound of the range of model instances
281            * @param end the upper bound of the range of model instances (not inclusive)
282            * @return the range of matching rows
283            */
284            @Override
285            public <T> java.util.List<T> dynamicQuery(
286                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
287                    int end) {
288                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
289            }
290    
291            /**
292            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param dynamicQuery the dynamic query
299            * @param start the lower bound of the range of model instances
300            * @param end the upper bound of the range of model instances (not inclusive)
301            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
302            * @return the ordered range of matching rows
303            */
304            @Override
305            public <T> java.util.List<T> dynamicQuery(
306                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
307                    int end,
308                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
309                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
310                            orderByComparator);
311            }
312    
313            /**
314            * Returns a range of all the layout sets.
315            *
316            * <p>
317            * 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.
318            * </p>
319            *
320            * @param start the lower bound of the range of layout sets
321            * @param end the upper bound of the range of layout sets (not inclusive)
322            * @return the range of layout sets
323            */
324            @Override
325            public java.util.List<com.liferay.portal.kernel.model.LayoutSet> getLayoutSets(
326                    int start, int end) {
327                    return _layoutSetLocalService.getLayoutSets(start, end);
328            }
329    
330            @Override
331            public java.util.List<com.liferay.portal.kernel.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
332                    java.lang.String layoutSetPrototypeUuid) {
333                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
334            }
335    
336            /**
337            * Returns the number of rows matching the dynamic query.
338            *
339            * @param dynamicQuery the dynamic query
340            * @return the number of rows matching the dynamic query
341            */
342            @Override
343            public long dynamicQueryCount(
344                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
345                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
346            }
347    
348            /**
349            * Returns the number of rows matching the dynamic query.
350            *
351            * @param dynamicQuery the dynamic query
352            * @param projection the projection to apply to the query
353            * @return the number of rows matching the dynamic query
354            */
355            @Override
356            public long dynamicQueryCount(
357                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
358                    com.liferay.portal.kernel.dao.orm.Projection projection) {
359                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery, projection);
360            }
361    
362            @Override
363            public void deleteLayoutSet(long groupId, boolean privateLayout,
364                    ServiceContext serviceContext)
365                    throws com.liferay.portal.kernel.exception.PortalException {
366                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
367                            serviceContext);
368            }
369    
370            /**
371            * Updates the state of the layout set prototype link.
372            *
373            * @param groupId the primary key of the group
374            * @param privateLayout whether the layout set is private to the group
375            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
376            link enabled
377            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
378            link with
379            */
380            @Override
381            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
382                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
383                    java.lang.String layoutSetPrototypeUuid)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
386                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
387            }
388    
389            @Override
390            public void updateLookAndFeel(long groupId, java.lang.String themeId,
391                    java.lang.String colorSchemeId, java.lang.String css)
392                    throws com.liferay.portal.kernel.exception.PortalException {
393                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
394                            colorSchemeId, css);
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    }