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