001    /**
002     * Copyright (c) 2000-present 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.portlet.exportimport.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for ExportImport. This utility wraps
024     * {@link com.liferay.portlet.exportimport.service.impl.ExportImportServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExportImportService
032     * @see com.liferay.portlet.exportimport.service.base.ExportImportServiceBaseImpl
033     * @see com.liferay.portlet.exportimport.service.impl.ExportImportServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ExportImportServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.ExportImportServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static java.io.File exportLayoutsAsFile(
044                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return getService().exportLayoutsAsFile(exportImportConfiguration);
047            }
048    
049            public static long exportLayoutsAsFileInBackground(
050                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    return getService()
053                                       .exportLayoutsAsFileInBackground(exportImportConfiguration);
054            }
055    
056            public static long exportLayoutsAsFileInBackground(
057                    long exportImportConfigurationId)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return getService()
060                                       .exportLayoutsAsFileInBackground(exportImportConfigurationId);
061            }
062    
063            public static java.io.File exportPortletInfoAsFile(
064                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return getService().exportPortletInfoAsFile(exportImportConfiguration);
067            }
068    
069            public static long exportPortletInfoAsFileInBackground(
070                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return getService()
073                                       .exportPortletInfoAsFileInBackground(exportImportConfiguration);
074            }
075    
076            /**
077            * Returns the Spring bean ID for this bean.
078            *
079            * @return the Spring bean ID for this bean
080            */
081            public static java.lang.String getBeanIdentifier() {
082                    return getService().getBeanIdentifier();
083            }
084    
085            public static void importLayouts(
086                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
087                    java.io.File file)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    getService().importLayouts(exportImportConfiguration, file);
090            }
091    
092            public static void importLayouts(
093                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
094                    java.io.InputStream inputStream)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    getService().importLayouts(exportImportConfiguration, inputStream);
097            }
098    
099            public static long importLayoutsInBackground(
100                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
101                    java.io.File file)
102                    throws com.liferay.portal.kernel.exception.PortalException {
103                    return getService()
104                                       .importLayoutsInBackground(exportImportConfiguration, file);
105            }
106    
107            public static long importLayoutsInBackground(
108                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
109                    java.io.InputStream inputStream)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return getService()
112                                       .importLayoutsInBackground(exportImportConfiguration,
113                            inputStream);
114            }
115    
116            public static void importPortletInfo(
117                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
118                    java.io.File file)
119                    throws com.liferay.portal.kernel.exception.PortalException {
120                    getService().importPortletInfo(exportImportConfiguration, file);
121            }
122    
123            public static void importPortletInfo(
124                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
125                    java.io.InputStream inputStream)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    getService().importPortletInfo(exportImportConfiguration, inputStream);
128            }
129    
130            public static long importPortletInfoInBackground(
131                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
132                    java.io.File file)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return getService()
135                                       .importPortletInfoInBackground(exportImportConfiguration,
136                            file);
137            }
138    
139            public static long importPortletInfoInBackground(
140                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
141                    java.io.InputStream inputStream)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return getService()
144                                       .importPortletInfoInBackground(exportImportConfiguration,
145                            inputStream);
146            }
147    
148            /**
149            * Sets the Spring bean ID for this bean.
150            *
151            * @param beanIdentifier the Spring bean ID for this bean
152            */
153            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
154                    getService().setBeanIdentifier(beanIdentifier);
155            }
156    
157            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
158                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
159                    java.io.File file)
160                    throws com.liferay.portal.kernel.exception.PortalException {
161                    return getService()
162                                       .validateImportLayoutsFile(exportImportConfiguration, file);
163            }
164    
165            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
166                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
167                    java.io.InputStream inputStream)
168                    throws com.liferay.portal.kernel.exception.PortalException {
169                    return getService()
170                                       .validateImportLayoutsFile(exportImportConfiguration,
171                            inputStream);
172            }
173    
174            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
175                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
176                    java.io.File file)
177                    throws com.liferay.portal.kernel.exception.PortalException {
178                    return getService()
179                                       .validateImportPortletInfo(exportImportConfiguration, file);
180            }
181    
182            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
183                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
184                    java.io.InputStream inputStream)
185                    throws com.liferay.portal.kernel.exception.PortalException {
186                    return getService()
187                                       .validateImportPortletInfo(exportImportConfiguration,
188                            inputStream);
189            }
190    
191            public static ExportImportService getService() {
192                    if (_service == null) {
193                            _service = (ExportImportService)PortalBeanLocatorUtil.locate(ExportImportService.class.getName());
194    
195                            ReferenceRegistry.registerReference(ExportImportServiceUtil.class,
196                                    "_service");
197                    }
198    
199                    return _service;
200            }
201    
202            /**
203             * @deprecated As of 6.2.0
204             */
205            @Deprecated
206            public void setService(ExportImportService service) {
207            }
208    
209            private static ExportImportService _service;
210    }