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