001    /**
002     * Copyright (c) 2000-2010 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            public LayoutSetLocalServiceWrapper(
028                    LayoutSetLocalService layoutSetLocalService) {
029                    _layoutSetLocalService = layoutSetLocalService;
030            }
031    
032            /**
033            * Adds the layout set to the database. Also notifies the appropriate model listeners.
034            *
035            * @param layoutSet the layout set to add
036            * @return the layout set that was added
037            * @throws SystemException if a system exception occurred
038            */
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            public com.liferay.portal.model.LayoutSet createLayoutSet(long layoutSetId) {
052                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
053            }
054    
055            /**
056            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param layoutSetId the primary key of the layout set to delete
059            * @throws PortalException if a layout set with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteLayoutSet(long layoutSetId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _layoutSetLocalService.deleteLayoutSet(layoutSetId);
066            }
067    
068            /**
069            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
070            *
071            * @param layoutSet the layout set to delete
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteLayoutSet(com.liferay.portal.model.LayoutSet layoutSet)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    _layoutSetLocalService.deleteLayoutSet(layoutSet);
077            }
078    
079            /**
080            * Performs a dynamic query on the database and returns the matching rows.
081            *
082            * @param dynamicQuery the dynamic query to search with
083            * @return the matching rows
084            * @throws SystemException if a system exception occurred
085            */
086            @SuppressWarnings("rawtypes")
087            public java.util.List dynamicQuery(
088                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns a range of the matching rows.
095            *
096            * <p>
097            * 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.
098            * </p>
099            *
100            * @param dynamicQuery the dynamic query to search with
101            * @param start the lower bound of the range of model instances to return
102            * @param end the upper bound of the range of model instances to return (not inclusive)
103            * @return the range of matching rows
104            * @throws SystemException if a system exception occurred
105            */
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
109                    int end) throws com.liferay.portal.kernel.exception.SystemException {
110                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query to search with
121            * @param start the lower bound of the range of model instances to return
122            * @param end the upper bound of the range of model instances to return (not inclusive)
123            * @param orderByComparator the comparator to order the results by
124            * @return the ordered range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end,
131                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
134                            orderByComparator);
135            }
136    
137            /**
138            * Counts the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query to search with
141            * @return the number of rows that match the dynamic query
142            * @throws SystemException if a system exception occurred
143            */
144            public long dynamicQueryCount(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
148            }
149    
150            /**
151            * Gets the layout set with the primary key.
152            *
153            * @param layoutSetId the primary key of the layout set to get
154            * @return the layout set
155            * @throws PortalException if a layout set with the primary key could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
162            }
163    
164            /**
165            * Gets a range of all the layout sets.
166            *
167            * <p>
168            * 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.
169            * </p>
170            *
171            * @param start the lower bound of the range of layout sets to return
172            * @param end the upper bound of the range of layout sets to return (not inclusive)
173            * @return the range of layout sets
174            * @throws SystemException if a system exception occurred
175            */
176            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
177                    int start, int end)
178                    throws com.liferay.portal.kernel.exception.SystemException {
179                    return _layoutSetLocalService.getLayoutSets(start, end);
180            }
181    
182            /**
183            * Gets the number of layout sets.
184            *
185            * @return the number of layout sets
186            * @throws SystemException if a system exception occurred
187            */
188            public int getLayoutSetsCount()
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _layoutSetLocalService.getLayoutSetsCount();
191            }
192    
193            /**
194            * Updates the layout set in the database. Also notifies the appropriate model listeners.
195            *
196            * @param layoutSet the layout set to update
197            * @return the layout set that was updated
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portal.model.LayoutSet updateLayoutSet(
201                    com.liferay.portal.model.LayoutSet layoutSet)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
204            }
205    
206            /**
207            * Updates the layout set in the database. Also notifies the appropriate model listeners.
208            *
209            * @param layoutSet the layout set to update
210            * @param merge whether to merge the layout set with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
211            * @return the layout set that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.LayoutSet updateLayoutSet(
215                    com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _layoutSetLocalService.updateLayoutSet(layoutSet, merge);
218            }
219    
220            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
221                    boolean privateLayout)
222                    throws com.liferay.portal.kernel.exception.PortalException,
223                            com.liferay.portal.kernel.exception.SystemException {
224                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
225            }
226    
227            public void deleteLayoutSet(long groupId, boolean privateLayout)
228                    throws com.liferay.portal.kernel.exception.PortalException,
229                            com.liferay.portal.kernel.exception.SystemException {
230                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout);
231            }
232    
233            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
234                    boolean privateLayout)
235                    throws com.liferay.portal.kernel.exception.PortalException,
236                            com.liferay.portal.kernel.exception.SystemException {
237                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
238            }
239    
240            public com.liferay.portal.model.LayoutSet getLayoutSet(
241                    java.lang.String virtualHost)
242                    throws com.liferay.portal.kernel.exception.PortalException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return _layoutSetLocalService.getLayoutSet(virtualHost);
245            }
246    
247            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
248                    java.io.File file)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, file);
252            }
253    
254            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
255                    java.io.InputStream is)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, is);
259            }
260    
261            public void updateLookAndFeel(long groupId, java.lang.String themeId,
262                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
266                            colorSchemeId, css, wapTheme);
267            }
268    
269            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
270                    boolean privateLayout, java.lang.String themeId,
271                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
275                            themeId, colorSchemeId, css, wapTheme);
276            }
277    
278            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
279                    boolean privateLayout)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
283            }
284    
285            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
286                    boolean privateLayout, java.lang.String settings)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
290                            settings);
291            }
292    
293            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
294                    boolean privateLayout, java.lang.String virtualHost)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
298                            virtualHost);
299            }
300    
301            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
302                    return _layoutSetLocalService;
303            }
304    
305            private LayoutSetLocalService _layoutSetLocalService;
306    }