001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
101            * @param start the lower bound of the range of model instances
102            * @param end the upper bound of the range of model instances (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
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query
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            * Returns the layout set with the primary key.
152            *
153            * @param layoutSetId the primary key of the layout set
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
165                    java.io.Serializable primaryKeyObj)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
169            }
170    
171            /**
172            * Returns a range of all the layout sets.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param start the lower bound of the range of layout sets
179            * @param end the upper bound of the range of layout sets (not inclusive)
180            * @return the range of layout sets
181            * @throws SystemException if a system exception occurred
182            */
183            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
184                    int start, int end)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _layoutSetLocalService.getLayoutSets(start, end);
187            }
188    
189            /**
190            * Returns the number of layout sets.
191            *
192            * @return the number of layout sets
193            * @throws SystemException if a system exception occurred
194            */
195            public int getLayoutSetsCount()
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _layoutSetLocalService.getLayoutSetsCount();
198            }
199    
200            /**
201            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
202            *
203            * @param layoutSet the layout set
204            * @return the layout set that was updated
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portal.model.LayoutSet updateLayoutSet(
208                    com.liferay.portal.model.LayoutSet layoutSet)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
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            * @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.
218            * @return the layout set that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portal.model.LayoutSet updateLayoutSet(
222                    com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _layoutSetLocalService.updateLayoutSet(layoutSet, merge);
225            }
226    
227            /**
228            * Returns the Spring bean ID for this bean.
229            *
230            * @return the Spring bean ID for this bean
231            */
232            public java.lang.String getBeanIdentifier() {
233                    return _layoutSetLocalService.getBeanIdentifier();
234            }
235    
236            /**
237            * Sets the Spring bean ID for this bean.
238            *
239            * @param beanIdentifier the Spring bean ID for this bean
240            */
241            public void setBeanIdentifier(java.lang.String beanIdentifier) {
242                    _layoutSetLocalService.setBeanIdentifier(beanIdentifier);
243            }
244    
245            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
246                    boolean privateLayout)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
250            }
251    
252            public void deleteLayoutSet(long groupId, boolean privateLayout,
253                    com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
257                            serviceContext);
258            }
259    
260            public com.liferay.portal.model.LayoutSet fetchLayoutSet(
261                    java.lang.String virtualHostname)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
264            }
265    
266            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
267                    boolean privateLayout)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
271            }
272    
273            public com.liferay.portal.model.LayoutSet getLayoutSet(
274                    java.lang.String virtualHostname)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
278            }
279    
280            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
281                    java.lang.String layoutSetPrototypeUuid)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
284            }
285    
286            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
287                    java.io.File file)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, file);
291            }
292    
293            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
294                    java.io.InputStream is)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, is);
298            }
299    
300            public void updateLookAndFeel(long groupId, java.lang.String themeId,
301                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
305                            colorSchemeId, css, wapTheme);
306            }
307    
308            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
309                    boolean privateLayout, java.lang.String themeId,
310                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
314                            themeId, colorSchemeId, css, wapTheme);
315            }
316    
317            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
318                    boolean privateLayout)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
322            }
323    
324            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
325                    boolean privateLayout, java.lang.String settings)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
329                            settings);
330            }
331    
332            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
333                    boolean privateLayout, java.lang.String virtualHostname)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
337                            virtualHostname);
338            }
339    
340            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
341                    return _layoutSetLocalService;
342            }
343    
344            public void setWrappedLayoutSetLocalService(
345                    LayoutSetLocalService layoutSetLocalService) {
346                    _layoutSetLocalService = layoutSetLocalService;
347            }
348    
349            private LayoutSetLocalService _layoutSetLocalService;
350    }