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.
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.
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.
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            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param layoutSet the layout set
230            * @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.
231            * @return the layout set that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.LayoutSet updateLayoutSet(
235                    com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _layoutSetLocalService.updateLayoutSet(layoutSet, merge);
238            }
239    
240            /**
241            * Returns the Spring bean ID for this bean.
242            *
243            * @return the Spring bean ID for this bean
244            */
245            public java.lang.String getBeanIdentifier() {
246                    return _layoutSetLocalService.getBeanIdentifier();
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    _layoutSetLocalService.setBeanIdentifier(beanIdentifier);
256            }
257    
258            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
259                    boolean privateLayout)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
263            }
264    
265            public void deleteLayoutSet(long groupId, boolean privateLayout,
266                    com.liferay.portal.service.ServiceContext serviceContext)
267                    throws com.liferay.portal.kernel.exception.PortalException,
268                            com.liferay.portal.kernel.exception.SystemException {
269                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
270                            serviceContext);
271            }
272    
273            public com.liferay.portal.model.LayoutSet fetchLayoutSet(
274                    java.lang.String virtualHostname)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
277            }
278    
279            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
280                    boolean privateLayout)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
284            }
285    
286            public com.liferay.portal.model.LayoutSet getLayoutSet(
287                    java.lang.String virtualHostname)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
291            }
292    
293            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
294                    java.lang.String layoutSetPrototypeUuid)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
297            }
298    
299            /**
300            * Updates the state of the layout set prototype link.
301            *
302            * <p>
303            * This method can disable the layout set prototype's link by setting
304            * <code>layoutSetPrototypeLinkEnabled</code> to <code>false</code>.
305            * However, this method can only enable the layout set prototype's link if
306            * the layout set prototype's current uuid is not <code>null</code>. Setting
307            * the <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> when
308            * the layout set prototype's current uuid is <code>null</code> will have no
309            * effect.
310            * </p>
311            *
312            * @param groupId the primary key of the group
313            * @param privateLayout whether the layout set is private to the group
314            * @param layoutSetPrototypeLinkEnabled whether the layout set
315            prototype is link enabled
316            * @throws PortalException if a portal exception occurred
317            * @throws SystemException if a system exception occurred
318            * @deprecated As of 6.1.0, replaced by {@link
319            #updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean,
320            String)}
321            */
322            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
323                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
327                            privateLayout, layoutSetPrototypeLinkEnabled);
328            }
329    
330            /**
331            * Updates the state of the layout set prototype link.
332            *
333            * @param groupId the primary key of the group
334            * @param privateLayout whether the layout set is private to the group
335            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
336            link enabled
337            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
338            link with
339            * @throws PortalException if a portal exception occurred
340            * @throws SystemException if a system exception occurred
341            */
342            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
343                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
344                    java.lang.String layoutSetPrototypeUuid)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
348                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
349            }
350    
351            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
352                    boolean privateLayout, boolean logo, java.io.File file)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
356                            file);
357            }
358    
359            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
360                    boolean privateLayout, boolean logo, java.io.InputStream is)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
364                            is);
365            }
366    
367            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
368                    boolean privateLayout, boolean logo, java.io.InputStream is,
369                    boolean cleanUpStream)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
373                            is, cleanUpStream);
374            }
375    
376            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
377                    boolean privateLayout, java.lang.String themeId,
378                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
382                            themeId, colorSchemeId, css, wapTheme);
383            }
384    
385            public void updateLookAndFeel(long groupId, java.lang.String themeId,
386                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
390                            colorSchemeId, css, wapTheme);
391            }
392    
393            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
394                    boolean privateLayout)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
398            }
399    
400            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
401                    boolean privateLayout, java.lang.String settings)
402                    throws com.liferay.portal.kernel.exception.PortalException,
403                            com.liferay.portal.kernel.exception.SystemException {
404                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
405                            settings);
406            }
407    
408            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
409                    boolean privateLayout, java.lang.String virtualHostname)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
413                            virtualHostname);
414            }
415    
416            /**
417             * @deprecated Renamed to {@link #getWrappedService}
418             */
419            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
420                    return _layoutSetLocalService;
421            }
422    
423            /**
424             * @deprecated Renamed to {@link #setWrappedService}
425             */
426            public void setWrappedLayoutSetLocalService(
427                    LayoutSetLocalService layoutSetLocalService) {
428                    _layoutSetLocalService = layoutSetLocalService;
429            }
430    
431            public LayoutSetLocalService getWrappedService() {
432                    return _layoutSetLocalService;
433            }
434    
435            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
436                    _layoutSetLocalService = layoutSetLocalService;
437            }
438    
439            private LayoutSetLocalService _layoutSetLocalService;
440    }