001    /**
002     * Copyright (c) 2000-2010 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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link LayoutSetLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       LayoutSetLocalService
030     * @generated
031     */
032    public class LayoutSetLocalServiceUtil {
033            public static com.liferay.portal.model.LayoutSet addLayoutSet(
034                    com.liferay.portal.model.LayoutSet layoutSet)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addLayoutSet(layoutSet);
037            }
038    
039            public static com.liferay.portal.model.LayoutSet createLayoutSet(
040                    long layoutSetId) {
041                    return getService().createLayoutSet(layoutSetId);
042            }
043    
044            public static void deleteLayoutSet(long layoutSetId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteLayoutSet(layoutSetId);
048            }
049    
050            public static void deleteLayoutSet(
051                    com.liferay.portal.model.LayoutSet layoutSet)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteLayoutSet(layoutSet);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portal.model.LayoutSet getLayoutSet(
087                    long layoutSetId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getLayoutSet(layoutSetId);
091            }
092    
093            public static java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getLayoutSets(start, end);
097            }
098    
099            public static int getLayoutSetsCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getLayoutSetsCount();
102            }
103    
104            public static com.liferay.portal.model.LayoutSet updateLayoutSet(
105                    com.liferay.portal.model.LayoutSet layoutSet)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().updateLayoutSet(layoutSet);
108            }
109    
110            public static com.liferay.portal.model.LayoutSet updateLayoutSet(
111                    com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    return getService().updateLayoutSet(layoutSet, merge);
114            }
115    
116            public static com.liferay.portal.model.LayoutSet addLayoutSet(
117                    long groupId, boolean privateLayout)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException {
120                    return getService().addLayoutSet(groupId, privateLayout);
121            }
122    
123            public static void deleteLayoutSet(long groupId, boolean privateLayout)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    getService().deleteLayoutSet(groupId, privateLayout);
127            }
128    
129            public static com.liferay.portal.model.LayoutSet getLayoutSet(
130                    long groupId, boolean privateLayout)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return getService().getLayoutSet(groupId, privateLayout);
134            }
135    
136            public static com.liferay.portal.model.LayoutSet getLayoutSet(
137                    java.lang.String virtualHost)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    return getService().getLayoutSet(virtualHost);
141            }
142    
143            public static void updateLogo(long groupId, boolean privateLayout,
144                    boolean logo, java.io.File file)
145                    throws com.liferay.portal.kernel.exception.PortalException,
146                            com.liferay.portal.kernel.exception.SystemException {
147                    getService().updateLogo(groupId, privateLayout, logo, file);
148            }
149    
150            public static void updateLogo(long groupId, boolean privateLayout,
151                    boolean logo, java.io.InputStream is)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    getService().updateLogo(groupId, privateLayout, logo, is);
155            }
156    
157            public static void updateLookAndFeel(long groupId,
158                    java.lang.String themeId, java.lang.String colorSchemeId,
159                    java.lang.String css, boolean wapTheme)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    getService()
163                            .updateLookAndFeel(groupId, themeId, colorSchemeId, css, wapTheme);
164            }
165    
166            public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
167                    long groupId, boolean privateLayout, java.lang.String themeId,
168                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return getService()
172                                       .updateLookAndFeel(groupId, privateLayout, themeId,
173                            colorSchemeId, css, wapTheme);
174            }
175    
176            public static com.liferay.portal.model.LayoutSet updatePageCount(
177                    long groupId, boolean privateLayout)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().updatePageCount(groupId, privateLayout);
181            }
182    
183            public static com.liferay.portal.model.LayoutSet updateSettings(
184                    long groupId, boolean privateLayout, java.lang.String settings)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return getService().updateSettings(groupId, privateLayout, settings);
188            }
189    
190            public static com.liferay.portal.model.LayoutSet updateVirtualHost(
191                    long groupId, boolean privateLayout, java.lang.String virtualHost)
192                    throws com.liferay.portal.kernel.exception.PortalException,
193                            com.liferay.portal.kernel.exception.SystemException {
194                    return getService()
195                                       .updateVirtualHost(groupId, privateLayout, virtualHost);
196            }
197    
198            public static LayoutSetLocalService getService() {
199                    if (_service == null) {
200                            _service = (LayoutSetLocalService)PortalBeanLocatorUtil.locate(LayoutSetLocalService.class.getName());
201                    }
202    
203                    return _service;
204            }
205    
206            public void setService(LayoutSetLocalService service) {
207                    _service = service;
208            }
209    
210            private static LayoutSetLocalService _service;
211    }