001    /**
002     * Copyright (c) 2000-2013 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link LayoutSetLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutSetLocalService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutSetLocalServiceWrapper implements LayoutSetLocalService,
028            ServiceWrapper<LayoutSetLocalService> {
029            public LayoutSetLocalServiceWrapper(
030                    LayoutSetLocalService layoutSetLocalService) {
031                    _layoutSetLocalService = layoutSetLocalService;
032            }
033    
034            /**
035            * Adds the layout set to the database. Also notifies the appropriate model listeners.
036            *
037            * @param layoutSet the layout set
038            * @return the layout set that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portal.model.LayoutSet addLayoutSet(
043                    com.liferay.portal.model.LayoutSet layoutSet)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _layoutSetLocalService.addLayoutSet(layoutSet);
046            }
047    
048            /**
049            * Creates a new layout set with the primary key. Does not add the layout set to the database.
050            *
051            * @param layoutSetId the primary key for the new layout set
052            * @return the new layout set
053            */
054            @Override
055            public com.liferay.portal.model.LayoutSet createLayoutSet(long layoutSetId) {
056                    return _layoutSetLocalService.createLayoutSet(layoutSetId);
057            }
058    
059            /**
060            * Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param layoutSetId the primary key of the layout set
063            * @return the layout set that was removed
064            * @throws PortalException if a layout set with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            @Override
068            public com.liferay.portal.model.LayoutSet deleteLayoutSet(long layoutSetId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _layoutSetLocalService.deleteLayoutSet(layoutSetId);
072            }
073    
074            /**
075            * Deletes the layout set from the database. Also notifies the appropriate model listeners.
076            *
077            * @param layoutSet the layout set
078            * @return the layout set that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            @Override
082            public com.liferay.portal.model.LayoutSet deleteLayoutSet(
083                    com.liferay.portal.model.LayoutSet layoutSet)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _layoutSetLocalService.deleteLayoutSet(layoutSet);
086            }
087    
088            @Override
089            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
090                    return _layoutSetLocalService.dynamicQuery();
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns the matching rows.
095            *
096            * @param dynamicQuery the dynamic query
097            * @return the matching rows
098            * @throws SystemException if a system exception occurred
099            */
100            @Override
101            @SuppressWarnings("rawtypes")
102            public java.util.List dynamicQuery(
103                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _layoutSetLocalService.dynamicQuery(dynamicQuery);
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns a range of the matching rows.
110            *
111            * <p>
112            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
113            * </p>
114            *
115            * @param dynamicQuery the dynamic query
116            * @param start the lower bound of the range of model instances
117            * @param end the upper bound of the range of model instances (not inclusive)
118            * @return the range of matching rows
119            * @throws SystemException if a system exception occurred
120            */
121            @Override
122            @SuppressWarnings("rawtypes")
123            public java.util.List dynamicQuery(
124                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
125                    int end) throws com.liferay.portal.kernel.exception.SystemException {
126                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end);
127            }
128    
129            /**
130            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param dynamicQuery the dynamic query
137            * @param start the lower bound of the range of model instances
138            * @param end the upper bound of the range of model instances (not inclusive)
139            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
140            * @return the ordered range of matching rows
141            * @throws SystemException if a system exception occurred
142            */
143            @Override
144            @SuppressWarnings("rawtypes")
145            public java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _layoutSetLocalService.dynamicQuery(dynamicQuery, start, end,
151                            orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            @Override
162            public long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            @Override
177            public long dynamicQueryCount(
178                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
179                    com.liferay.portal.kernel.dao.orm.Projection projection)
180                    throws com.liferay.portal.kernel.exception.SystemException {
181                    return _layoutSetLocalService.dynamicQueryCount(dynamicQuery, projection);
182            }
183    
184            @Override
185            public com.liferay.portal.model.LayoutSet fetchLayoutSet(long layoutSetId)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _layoutSetLocalService.fetchLayoutSet(layoutSetId);
188            }
189    
190            /**
191            * Returns the layout set with the primary key.
192            *
193            * @param layoutSetId the primary key of the layout set
194            * @return the layout set
195            * @throws PortalException if a layout set with the primary key could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            @Override
199            public com.liferay.portal.model.LayoutSet getLayoutSet(long layoutSetId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return _layoutSetLocalService.getLayoutSet(layoutSetId);
203            }
204    
205            @Override
206            public com.liferay.portal.model.PersistedModel getPersistedModel(
207                    java.io.Serializable primaryKeyObj)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return _layoutSetLocalService.getPersistedModel(primaryKeyObj);
211            }
212    
213            /**
214            * Returns a range of all the layout sets.
215            *
216            * <p>
217            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutSetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
218            * </p>
219            *
220            * @param start the lower bound of the range of layout sets
221            * @param end the upper bound of the range of layout sets (not inclusive)
222            * @return the range of layout sets
223            * @throws SystemException if a system exception occurred
224            */
225            @Override
226            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
227                    int start, int end)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _layoutSetLocalService.getLayoutSets(start, end);
230            }
231    
232            /**
233            * Returns the number of layout sets.
234            *
235            * @return the number of layout sets
236            * @throws SystemException if a system exception occurred
237            */
238            @Override
239            public int getLayoutSetsCount()
240                    throws com.liferay.portal.kernel.exception.SystemException {
241                    return _layoutSetLocalService.getLayoutSetsCount();
242            }
243    
244            /**
245            * Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
246            *
247            * @param layoutSet the layout set
248            * @return the layout set that was updated
249            * @throws SystemException if a system exception occurred
250            */
251            @Override
252            public com.liferay.portal.model.LayoutSet updateLayoutSet(
253                    com.liferay.portal.model.LayoutSet layoutSet)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _layoutSetLocalService.updateLayoutSet(layoutSet);
256            }
257    
258            /**
259            * Returns the Spring bean ID for this bean.
260            *
261            * @return the Spring bean ID for this bean
262            */
263            @Override
264            public java.lang.String getBeanIdentifier() {
265                    return _layoutSetLocalService.getBeanIdentifier();
266            }
267    
268            /**
269            * Sets the Spring bean ID for this bean.
270            *
271            * @param beanIdentifier the Spring bean ID for this bean
272            */
273            @Override
274            public void setBeanIdentifier(java.lang.String beanIdentifier) {
275                    _layoutSetLocalService.setBeanIdentifier(beanIdentifier);
276            }
277    
278            @Override
279            public com.liferay.portal.model.LayoutSet addLayoutSet(long groupId,
280                    boolean privateLayout)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _layoutSetLocalService.addLayoutSet(groupId, privateLayout);
284            }
285    
286            @Override
287            public void deleteLayoutSet(long groupId, boolean privateLayout,
288                    com.liferay.portal.service.ServiceContext serviceContext)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    _layoutSetLocalService.deleteLayoutSet(groupId, privateLayout,
292                            serviceContext);
293            }
294    
295            @Override
296            public com.liferay.portal.model.LayoutSet fetchLayoutSet(
297                    java.lang.String virtualHostname)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return _layoutSetLocalService.fetchLayoutSet(virtualHostname);
300            }
301    
302            @Override
303            public com.liferay.portal.model.LayoutSet fetchLayoutSetByLogoId(
304                    boolean privateLayout, long logoId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _layoutSetLocalService.fetchLayoutSetByLogoId(privateLayout,
307                            logoId);
308            }
309    
310            @Override
311            public com.liferay.portal.model.LayoutSet getLayoutSet(long groupId,
312                    boolean privateLayout)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _layoutSetLocalService.getLayoutSet(groupId, privateLayout);
316            }
317    
318            @Override
319            public com.liferay.portal.model.LayoutSet getLayoutSet(
320                    java.lang.String virtualHostname)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _layoutSetLocalService.getLayoutSet(virtualHostname);
324            }
325    
326            @Override
327            public java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
328                    java.lang.String layoutSetPrototypeUuid)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _layoutSetLocalService.getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
331            }
332    
333            /**
334            * Updates the state of the layout set prototype link.
335            *
336            * <p>
337            * This method can disable the layout set prototype's link by setting
338            * <code>layoutSetPrototypeLinkEnabled</code> to <code>false</code>.
339            * However, this method can only enable the layout set prototype's link if
340            * the layout set prototype's current uuid is not <code>null</code>. Setting
341            * the <code>layoutSetPrototypeLinkEnabled</code> to <code>true</code> when
342            * the layout set prototype's current uuid is <code>null</code> will have no
343            * effect.
344            * </p>
345            *
346            * @param groupId the primary key of the group
347            * @param privateLayout whether the layout set is private to the group
348            * @param layoutSetPrototypeLinkEnabled whether the layout set
349            prototype is link enabled
350            * @throws PortalException if a portal exception occurred
351            * @throws SystemException if a system exception occurred
352            * @deprecated As of 6.1.0, replaced by {@link
353            #updateLayoutSetPrototypeLinkEnabled(long, boolean, boolean,
354            String)}
355            */
356            @Override
357            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
358                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
362                            privateLayout, layoutSetPrototypeLinkEnabled);
363            }
364    
365            /**
366            * Updates the state of the layout set prototype link.
367            *
368            * @param groupId the primary key of the group
369            * @param privateLayout whether the layout set is private to the group
370            * @param layoutSetPrototypeLinkEnabled whether the layout set prototype is
371            link enabled
372            * @param layoutSetPrototypeUuid the uuid of the layout set prototype to
373            link with
374            * @throws PortalException if a portal exception occurred
375            * @throws SystemException if a system exception occurred
376            */
377            @Override
378            public void updateLayoutSetPrototypeLinkEnabled(long groupId,
379                    boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
380                    java.lang.String layoutSetPrototypeUuid)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    _layoutSetLocalService.updateLayoutSetPrototypeLinkEnabled(groupId,
384                            privateLayout, layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
385            }
386    
387            @Override
388            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
389                    boolean privateLayout, boolean logo, byte[] bytes)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
393                            bytes);
394            }
395    
396            @Override
397            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
398                    boolean privateLayout, boolean logo, java.io.File file)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
402                            file);
403            }
404    
405            @Override
406            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
407                    boolean privateLayout, boolean logo, java.io.InputStream is)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
411                            is);
412            }
413    
414            @Override
415            public com.liferay.portal.model.LayoutSet updateLogo(long groupId,
416                    boolean privateLayout, boolean logo, java.io.InputStream is,
417                    boolean cleanUpStream)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    return _layoutSetLocalService.updateLogo(groupId, privateLayout, logo,
421                            is, cleanUpStream);
422            }
423    
424            @Override
425            public com.liferay.portal.model.LayoutSet updateLookAndFeel(long groupId,
426                    boolean privateLayout, java.lang.String themeId,
427                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException {
430                    return _layoutSetLocalService.updateLookAndFeel(groupId, privateLayout,
431                            themeId, colorSchemeId, css, wapTheme);
432            }
433    
434            @Override
435            public void updateLookAndFeel(long groupId, java.lang.String themeId,
436                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
437                    throws com.liferay.portal.kernel.exception.PortalException,
438                            com.liferay.portal.kernel.exception.SystemException {
439                    _layoutSetLocalService.updateLookAndFeel(groupId, themeId,
440                            colorSchemeId, css, wapTheme);
441            }
442    
443            @Override
444            public com.liferay.portal.model.LayoutSet updatePageCount(long groupId,
445                    boolean privateLayout)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return _layoutSetLocalService.updatePageCount(groupId, privateLayout);
449            }
450    
451            @Override
452            public com.liferay.portal.model.LayoutSet updateSettings(long groupId,
453                    boolean privateLayout, java.lang.String settings)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    return _layoutSetLocalService.updateSettings(groupId, privateLayout,
457                            settings);
458            }
459    
460            @Override
461            public com.liferay.portal.model.LayoutSet updateVirtualHost(long groupId,
462                    boolean privateLayout, java.lang.String virtualHostname)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException {
465                    return _layoutSetLocalService.updateVirtualHost(groupId, privateLayout,
466                            virtualHostname);
467            }
468    
469            /**
470             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
471             */
472            public LayoutSetLocalService getWrappedLayoutSetLocalService() {
473                    return _layoutSetLocalService;
474            }
475    
476            /**
477             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
478             */
479            public void setWrappedLayoutSetLocalService(
480                    LayoutSetLocalService layoutSetLocalService) {
481                    _layoutSetLocalService = layoutSetLocalService;
482            }
483    
484            @Override
485            public LayoutSetLocalService getWrappedService() {
486                    return _layoutSetLocalService;
487            }
488    
489            @Override
490            public void setWrappedService(LayoutSetLocalService layoutSetLocalService) {
491                    _layoutSetLocalService = layoutSetLocalService;
492            }
493    
494            private LayoutSetLocalService _layoutSetLocalService;
495    }