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.exportimport.kernel.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 com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(
044                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
045                    java.io.File file)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    return getService()
048                                       .validateImportLayoutsFile(exportImportConfiguration, file);
049            }
050    
051            public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(
052                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
053                    java.io.InputStream inputStream)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return getService()
056                                       .validateImportLayoutsFile(exportImportConfiguration,
057                            inputStream);
058            }
059    
060            public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(
061                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
062                    java.io.File file)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    return getService()
065                                       .validateImportPortletInfo(exportImportConfiguration, file);
066            }
067    
068            public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(
069                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
070                    java.io.InputStream inputStream)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return getService()
073                                       .validateImportPortletInfo(exportImportConfiguration,
074                            inputStream);
075            }
076    
077            public static java.io.File exportLayoutsAsFile(
078                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return getService().exportLayoutsAsFile(exportImportConfiguration);
081            }
082    
083            public static java.io.File exportPortletInfoAsFile(
084                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return getService().exportPortletInfoAsFile(exportImportConfiguration);
087            }
088    
089            /**
090            * Returns the OSGi service identifier.
091            *
092            * @return the OSGi service identifier
093            */
094            public static java.lang.String getOSGiServiceIdentifier() {
095                    return getService().getOSGiServiceIdentifier();
096            }
097    
098            public static long exportLayoutsAsFileInBackground(long userId,
099                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService()
102                                       .exportLayoutsAsFileInBackground(userId,
103                            exportImportConfiguration);
104            }
105    
106            public static long exportLayoutsAsFileInBackground(long userId,
107                    long exportImportConfigurationId)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return getService()
110                                       .exportLayoutsAsFileInBackground(userId,
111                            exportImportConfigurationId);
112            }
113    
114            public static long exportPortletInfoAsFileInBackground(long userId,
115                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
116                    throws com.liferay.portal.kernel.exception.PortalException {
117                    return getService()
118                                       .exportPortletInfoAsFileInBackground(userId,
119                            exportImportConfiguration);
120            }
121    
122            public static long exportPortletInfoAsFileInBackground(long userId,
123                    long exportImportConfigurationId)
124                    throws com.liferay.portal.kernel.exception.PortalException {
125                    return getService()
126                                       .exportPortletInfoAsFileInBackground(userId,
127                            exportImportConfigurationId);
128            }
129    
130            public static long importLayoutsInBackground(long userId,
131                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
132                    java.io.File file)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return getService()
135                                       .importLayoutsInBackground(userId,
136                            exportImportConfiguration, file);
137            }
138    
139            public static long importLayoutsInBackground(long userId,
140                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
141                    java.io.InputStream inputStream)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return getService()
144                                       .importLayoutsInBackground(userId,
145                            exportImportConfiguration, inputStream);
146            }
147    
148            public static long importLayoutsInBackground(long userId,
149                    long exportImportConfigurationId, java.io.File file)
150                    throws com.liferay.portal.kernel.exception.PortalException {
151                    return getService()
152                                       .importLayoutsInBackground(userId,
153                            exportImportConfigurationId, file);
154            }
155    
156            public static long importLayoutsInBackground(long userId,
157                    long exportImportConfigurationId, java.io.InputStream inputStream)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    return getService()
160                                       .importLayoutsInBackground(userId,
161                            exportImportConfigurationId, inputStream);
162            }
163    
164            public static long importPortletInfoInBackground(long userId,
165                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
166                    java.io.File file)
167                    throws com.liferay.portal.kernel.exception.PortalException {
168                    return getService()
169                                       .importPortletInfoInBackground(userId,
170                            exportImportConfiguration, file);
171            }
172    
173            public static long importPortletInfoInBackground(long userId,
174                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
175                    java.io.InputStream inputStream)
176                    throws com.liferay.portal.kernel.exception.PortalException {
177                    return getService()
178                                       .importPortletInfoInBackground(userId,
179                            exportImportConfiguration, inputStream);
180            }
181    
182            public static long importPortletInfoInBackground(long userId,
183                    long exportImportConfigurationId, java.io.File file)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return getService()
186                                       .importPortletInfoInBackground(userId,
187                            exportImportConfigurationId, file);
188            }
189    
190            public static long importPortletInfoInBackground(long userId,
191                    long exportImportConfigurationId, java.io.InputStream inputStream)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    return getService()
194                                       .importPortletInfoInBackground(userId,
195                            exportImportConfigurationId, inputStream);
196            }
197    
198            public static void importLayouts(
199                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
200                    java.io.File file)
201                    throws com.liferay.portal.kernel.exception.PortalException {
202                    getService().importLayouts(exportImportConfiguration, file);
203            }
204    
205            public static void importLayouts(
206                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
207                    java.io.InputStream inputStream)
208                    throws com.liferay.portal.kernel.exception.PortalException {
209                    getService().importLayouts(exportImportConfiguration, inputStream);
210            }
211    
212            public static void importLayoutsDataDeletions(
213                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
214                    java.io.File file)
215                    throws com.liferay.portal.kernel.exception.PortalException {
216                    getService().importLayoutsDataDeletions(exportImportConfiguration, file);
217            }
218    
219            public static void importPortletDataDeletions(
220                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
221                    java.io.File file)
222                    throws com.liferay.portal.kernel.exception.PortalException {
223                    getService().importPortletDataDeletions(exportImportConfiguration, file);
224            }
225    
226            public static void importPortletInfo(
227                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
228                    java.io.File file)
229                    throws com.liferay.portal.kernel.exception.PortalException {
230                    getService().importPortletInfo(exportImportConfiguration, file);
231            }
232    
233            public static void importPortletInfo(
234                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
235                    java.io.InputStream inputStream)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    getService().importPortletInfo(exportImportConfiguration, 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    }