001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
293                    java.io.File file)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, file);
297            }
298    
299            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
300                    java.io.InputStream is)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, is);
304            }
305    
306            public void updateLogo(long groupId, boolean privateLayout, boolean logo,
307                    java.io.InputStream is, boolean cleanUpStream)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    _layoutSetLocalService.updateLogo(groupId, privateLayout, logo, is,
311                            cleanUpStream);
312            }
313    
314            public void updateLookAndFeel(long groupId, java.lang.String themeId,
315                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
319                            colorSchemeId, css, wapTheme);
320            }
321    
322            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
323                    boolean privateLayout, java.lang.String themeId,
324                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
328                            themeId, colorSchemeId, css, wapTheme);
329            }
330    
331            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
332                    boolean privateLayout)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
336            }
337    
338            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
339                    boolean privateLayout, java.lang.String settings)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
343                            settings);
344            }
345    
346            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
347                    boolean privateLayout, java.lang.String virtualHostname)
348                    throws com.liferay.portal.kernel.exception.PortalException,
349                            com.liferay.portal.kernel.exception.SystemException {
350                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
351                            virtualHostname);
352            }
353    
354            /**
355             * @deprecated Renamed to {@link #getWrappedService}
356             */
357            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
358                    return _layoutSetLocalService;
359            }
360    
361            /**
362             * @deprecated Renamed to {@link #setWrappedService}
363             */
364            public void setWrappedLayoutSetLocalService(
365                    LayoutSetLocalService layoutSetLocalService) {
366                    _layoutSetLocalService = layoutSetLocalService;
367            }
368    
369            public LayoutSetLocalService getWrappedService() {
370                    return _layoutSetLocalService;
371            }
372    
373            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
374                    _layoutSetLocalService = layoutSetLocalService;
375            }
376    
377            private LayoutSetLocalService _layoutSetLocalService;
378    }