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 local service utility for ExportImport. This utility wraps
024     * {@link com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see ExportImportLocalService
032     * @see com.liferay.portlet.exportimport.service.base.ExportImportLocalServiceBaseImpl
033     * @see com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class ExportImportLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl} 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(long userId,
050                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
051                    throws com.liferay.portal.kernel.exception.PortalException {
052                    return getService()
053                                       .exportLayoutsAsFileInBackground(userId,
054                            exportImportConfiguration);
055            }
056    
057            public static long exportLayoutsAsFileInBackground(long userId,
058                    long exportImportConfigurationId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    return getService()
061                                       .exportLayoutsAsFileInBackground(userId,
062                            exportImportConfigurationId);
063            }
064    
065            public static java.io.File exportPortletInfoAsFile(
066                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return getService().exportPortletInfoAsFile(exportImportConfiguration);
069            }
070    
071            public static long exportPortletInfoAsFileInBackground(long userId,
072                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    return getService()
075                                       .exportPortletInfoAsFileInBackground(userId,
076                            exportImportConfiguration);
077            }
078    
079            public static long exportPortletInfoAsFileInBackground(long userId,
080                    long exportImportConfigurationId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return getService()
083                                       .exportPortletInfoAsFileInBackground(userId,
084                            exportImportConfigurationId);
085            }
086    
087            /**
088            * Returns the OSGi service identifier.
089            *
090            * @return the OSGi service identifier
091            */
092            public static java.lang.String getOSGiServiceIdentifier() {
093                    return getService().getOSGiServiceIdentifier();
094            }
095    
096            public static void importLayouts(
097                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
098                    java.io.File file)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    getService().importLayouts(exportImportConfiguration, file);
101            }
102    
103            public static void importLayouts(
104                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
105                    java.io.InputStream inputStream)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    getService().importLayouts(exportImportConfiguration, inputStream);
108            }
109    
110            public static void importLayoutsDataDeletions(
111                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
112                    java.io.File file)
113                    throws com.liferay.portal.kernel.exception.PortalException {
114                    getService().importLayoutsDataDeletions(exportImportConfiguration, file);
115            }
116    
117            public static long importLayoutsInBackground(long userId,
118                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
119                    java.io.File file)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    return getService()
122                                       .importLayoutsInBackground(userId,
123                            exportImportConfiguration, file);
124            }
125    
126            public static long importLayoutsInBackground(long userId,
127                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
128                    java.io.InputStream inputStream)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return getService()
131                                       .importLayoutsInBackground(userId,
132                            exportImportConfiguration, inputStream);
133            }
134    
135            public static long importLayoutsInBackground(long userId,
136                    long exportImportConfigurationId, java.io.File file)
137                    throws com.liferay.portal.kernel.exception.PortalException {
138                    return getService()
139                                       .importLayoutsInBackground(userId,
140                            exportImportConfigurationId, file);
141            }
142    
143            public static long importLayoutsInBackground(long userId,
144                    long exportImportConfigurationId, java.io.InputStream inputStream)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    return getService()
147                                       .importLayoutsInBackground(userId,
148                            exportImportConfigurationId, inputStream);
149            }
150    
151            public static void importPortletDataDeletions(
152                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
153                    java.io.File file)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    getService().importPortletDataDeletions(exportImportConfiguration, file);
156            }
157    
158            public static void importPortletInfo(
159                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
160                    java.io.File file)
161                    throws com.liferay.portal.kernel.exception.PortalException {
162                    getService().importPortletInfo(exportImportConfiguration, file);
163            }
164    
165            public static void importPortletInfo(
166                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
167                    java.io.InputStream inputStream)
168                    throws com.liferay.portal.kernel.exception.PortalException {
169                    getService().importPortletInfo(exportImportConfiguration, inputStream);
170            }
171    
172            public static long importPortletInfoInBackground(long userId,
173                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
174                    java.io.File file)
175                    throws com.liferay.portal.kernel.exception.PortalException {
176                    return getService()
177                                       .importPortletInfoInBackground(userId,
178                            exportImportConfiguration, file);
179            }
180    
181            public static long importPortletInfoInBackground(long userId,
182                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
183                    java.io.InputStream inputStream)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return getService()
186                                       .importPortletInfoInBackground(userId,
187                            exportImportConfiguration, inputStream);
188            }
189    
190            public static long importPortletInfoInBackground(long userId,
191                    long exportImportConfigurationId, java.io.File file)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    return getService()
194                                       .importPortletInfoInBackground(userId,
195                            exportImportConfigurationId, file);
196            }
197    
198            public static long importPortletInfoInBackground(long userId,
199                    long exportImportConfigurationId, java.io.InputStream inputStream)
200                    throws com.liferay.portal.kernel.exception.PortalException {
201                    return getService()
202                                       .importPortletInfoInBackground(userId,
203                            exportImportConfigurationId, inputStream);
204            }
205    
206            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
207                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
208                    java.io.File file)
209                    throws com.liferay.portal.kernel.exception.PortalException {
210                    return getService()
211                                       .validateImportLayoutsFile(exportImportConfiguration, file);
212            }
213    
214            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
215                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
216                    java.io.InputStream inputStream)
217                    throws com.liferay.portal.kernel.exception.PortalException {
218                    return getService()
219                                       .validateImportLayoutsFile(exportImportConfiguration,
220                            inputStream);
221            }
222    
223            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
224                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
225                    java.io.File file)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    return getService()
228                                       .validateImportPortletInfo(exportImportConfiguration, file);
229            }
230    
231            public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
232                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
233                    java.io.InputStream inputStream)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return getService()
236                                       .validateImportPortletInfo(exportImportConfiguration,
237                            inputStream);
238            }
239    
240            public static ExportImportLocalService getService() {
241                    if (_service == null) {
242                            _service = (ExportImportLocalService)PortalBeanLocatorUtil.locate(ExportImportLocalService.class.getName());
243    
244                            ReferenceRegistry.registerReference(ExportImportLocalServiceUtil.class,
245                                    "_service");
246                    }
247    
248                    return _service;
249            }
250    
251            private static ExportImportLocalService _service;
252    }