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