001    /**
002     * Copyright (c) 2000-2013 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            /**
035            * Adds the layout set to the database. Also notifies the appropriate model listeners.
036            *
037            * @param layoutSet the layout set
038            * @return the layout set that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portal.model.LayoutSet addLayoutSet(
043                    com.liferay.portal.model.LayoutSet layoutSet)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _layoutSetLocalService.addLayoutSet(layoutSet);
046            }
047    
048            /**
049            * Creates a new layout set with the primary key. Does not add the layout set to the database.
050            *
051            * @param layoutSetId the primary key for the new layout set
052            * @return the new layout set
053            */
054            @Override
055            public com.liferay.portal.model.LayoutSet createLayoutSet(long layoutSetId) {
056                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
057            }
058    
059            /**
060            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param layoutSetId the primary key of the layout set
063            * @return the layout set that was removed
064            * @throws PortalException if a layout set with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            @Override
068            public com.liferay.portal.model.LayoutSet deleteLayoutSet(long layoutSetId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _layoutSetLocalService.deleteLayoutSet(layoutSetId);
072            }
073    
074            /**
075            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
076            *
077            * @param layoutSet the layout set
078            * @return the layout set that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.LayoutSet deleteLayoutSet(
083                    com.liferay.portal.model.LayoutSet layoutSet)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _layoutSetLocalService.deleteLayoutSet(layoutSet);
086            }
087    
088            @Override
089            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
090                    return _layoutSetLocalService.dynamicQuery();
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns the matching rows.
095            *
096            * @param dynamicQuery the dynamic query
097            * @return the matching rows
098            * @throws SystemException if a system exception occurred
099            */
100            @Override
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @Override
122            @SuppressWarnings("rawtypes")
123            public java.util.List dynamicQuery(
124                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125                    int end) throws com.liferay.portal.kernel.exception.SystemException {
126                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
127            }
128    
129            /**
130            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param dynamicQuery the dynamic query
137            * @param start the lower bound of the range of model instances
138            * @param end the upper bound of the range of model instances (not inclusive)
139            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
140            * @return the ordered range of matching rows
141            * @throws SystemException if a system exception occurred
142            */
143            @Override
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
151                            orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            @Override
162            public long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            @Override
177            public long dynamicQueryCount(
178                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
179                    com.liferay.portal.kernel.dao.orm.Projection projection)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery, projection);
182            }
183    
184            @Override
185            public com.liferay.portal.model.LayoutSet fetchLayoutSet(long layoutSetId)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _layoutSetLocalService.fetchLayoutSet(layoutSetId);
188            }
189    
190            /**
191            * Returns the layout set with the primary key.
192            *
193            * @param layoutSetId the primary key of the layout set
194            * @return the layout set
195            * @throws PortalException if a layout set with the primary key could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            @Override
199            public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
203            }
204    
205            @Override
206            public com.liferay.portal.model.PersistedModel getPersistedModel(
207                    java.io.Serializable primaryKeyObj)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
211            }
212    
213            /**
214            * Returns a range of all the layout sets.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param start the lower bound of the range of layout sets
221            * @param end the upper bound of the range of layout sets (not inclusive)
222            * @return the range of layout sets
223            * @throws SystemException if a system exception occurred
224            */
225            @Override
226            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
227                    int start, int end)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _layoutSetLocalService.getLayoutSets(start, end);
230            }
231    
232            /**
233            * Returns the number of layout sets.
234            *
235            * @return the number of layout sets
236            * @throws SystemException if a system exception occurred
237            */
238            @Override
239            public int getLayoutSetsCount()
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    return _layoutSetLocalService.getLayoutSetsCount();
242            }
243    
244            /**
245            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
246            *
247            * @param layoutSet the layout set
248            * @return the layout set that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            @Override
252            public com.liferay.portal.model.LayoutSet updateLayoutSet(
253                    com.liferay.portal.model.LayoutSet layoutSet)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
256            }
257    
258            /**
259            * Returns the Spring bean ID for this bean.
260            *
261            * @return the Spring bean ID for this bean
262            */
263            @Override
264            public java.lang.String getBeanIdentifier() {
265                    return _layoutSetLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            @Override
274            public void setBeanIdentifier(java.lang.String beanIdentifier) {
275                    _layoutSetLocalService.setBeanIdentifier(beanIdentifier);
276            }
277    
278            @Override
279            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
280                    boolean privateLayout)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
284            }
285    
286            @Override
287            public void deleteLayoutSet(long groupId, boolean privateLayout,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
292                            serviceContext);
293            }
294    
295            @Override
296            public com.liferay.portal.model.LayoutSet fetchLayoutSet(
297                    java.lang.String virtualHostname)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
300            }
301    
302            @Override
303            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
304                    boolean privateLayout)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
308            }
309    
310            @Override
311            public com.liferay.portal.model.LayoutSet getLayoutSet(
312                    java.lang.String virtualHostname)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
316            }
317    
318            @Override
319            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
320                    java.lang.String layoutSetPrototypeUuid)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
323            }
324    
325            /**
326            * Updates the state of the layout set prototype link.
327            *
328            * <p>
329            * This method can disable the layout set prototype's link by setting
330            * <code>layoutSetPrototypeLinkEnabled</code> to <code>false</code>.
331            * However, this method can only enable the layout set prototype's link if
332            * the layout set prototype's current uuid is not <code>null</code>. Setting
333            * the <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> when
334            * the layout set prototype's current uuid is <code>null</code> will have no
335            * effect.
336            * </p>
337            *
338            * @param groupId the primary key of the group
339            * @param privateLayout whether the layout set is private to the group
340            * @param layoutSetPrototypeLinkEnabled whether the layout set
341            prototype is link enabled
342            * @throws PortalException if a portal exception occurred
343            * @throws SystemException if a system exception occurred
344            * @deprecated As of 6.1.0, replaced by {@link
345            #updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean,
346            String)}
347            */
348            @Override
349            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
350                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
354                            privateLayout, layoutSetPrototypeLinkEnabled);
355            }
356    
357            /**
358            * Updates the state of the layout set prototype link.
359            *
360            * @param groupId the primary key of the group
361            * @param privateLayout whether the layout set is private to the group
362            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
363            link enabled
364            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
365            link with
366            * @throws PortalException if a portal exception occurred
367            * @throws SystemException if a system exception occurred
368            */
369            @Override
370            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
371                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
372                    java.lang.String layoutSetPrototypeUuid)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
376                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
377            }
378    
379            @Override
380            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
381                    boolean privateLayout, boolean logo, byte[] bytes)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
385                            bytes);
386            }
387    
388            @Override
389            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
390                    boolean privateLayout, boolean logo, java.io.File file)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
394                            file);
395            }
396    
397            @Override
398            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
399                    boolean privateLayout, boolean logo, java.io.InputStream is)
400                    throws com.liferay.portal.kernel.exception.PortalException,
401                            com.liferay.portal.kernel.exception.SystemException {
402                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
403                            is);
404            }
405    
406            @Override
407            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
408                    boolean privateLayout, boolean logo, java.io.InputStream is,
409                    boolean cleanUpStream)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
413                            is, cleanUpStream);
414            }
415    
416            @Override
417            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
418                    boolean privateLayout, java.lang.String themeId,
419                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
420                    throws com.liferay.portal.kernel.exception.PortalException,
421                            com.liferay.portal.kernel.exception.SystemException {
422                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
423                            themeId, colorSchemeId, css, wapTheme);
424            }
425    
426            @Override
427            public void updateLookAndFeel(long groupId, java.lang.String themeId,
428                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
432                            colorSchemeId, css, wapTheme);
433            }
434    
435            @Override
436            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
437                    boolean privateLayout)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException {
440                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
441            }
442    
443            @Override
444            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
445                    boolean privateLayout, java.lang.String settings)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
449                            settings);
450            }
451    
452            @Override
453            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
454                    boolean privateLayout, java.lang.String virtualHostname)
455                    throws com.liferay.portal.kernel.exception.PortalException,
456                            com.liferay.portal.kernel.exception.SystemException {
457                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
458                            virtualHostname);
459            }
460    
461            /**
462             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
463             */
464            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
465                    return _layoutSetLocalService;
466            }
467    
468            /**
469             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
470             */
471            public void setWrappedLayoutSetLocalService(
472                    LayoutSetLocalService layoutSetLocalService) {
473                    _layoutSetLocalService = layoutSetLocalService;
474            }
475    
476            @Override
477            public LayoutSetLocalService getWrappedService() {
478                    return _layoutSetLocalService;
479            }
480    
481            @Override
482            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
483                    _layoutSetLocalService = layoutSetLocalService;
484            }
485    
486            private LayoutSetLocalService _layoutSetLocalService;
487    }