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 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 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(
099                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
100                    throws com.liferay.portal.kernel.exception.PortalException {
101                    return getService()
102                                       .exportLayoutsAsFileInBackground(exportImportConfiguration);
103            }
104    
105            public static long exportLayoutsAsFileInBackground(
106                    long exportImportConfigurationId)
107                    throws com.liferay.portal.kernel.exception.PortalException {
108                    return getService()
109                                       .exportLayoutsAsFileInBackground(exportImportConfigurationId);
110            }
111    
112            public static long exportPortletInfoAsFileInBackground(
113                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    return getService()
116                                       .exportPortletInfoAsFileInBackground(exportImportConfiguration);
117            }
118    
119            public static long importLayoutsInBackground(
120                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
121                    java.io.File file)
122                    throws com.liferay.portal.kernel.exception.PortalException {
123                    return getService()
124                                       .importLayoutsInBackground(exportImportConfiguration, file);
125            }
126    
127            public static long importLayoutsInBackground(
128                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
129                    java.io.InputStream inputStream)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    return getService()
132                                       .importLayoutsInBackground(exportImportConfiguration,
133                            inputStream);
134            }
135    
136            public static long importPortletInfoInBackground(
137                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
138                    java.io.File file)
139                    throws com.liferay.portal.kernel.exception.PortalException {
140                    return getService()
141                                       .importPortletInfoInBackground(exportImportConfiguration,
142                            file);
143            }
144    
145            public static long importPortletInfoInBackground(
146                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
147                    java.io.InputStream inputStream)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    return getService()
150                                       .importPortletInfoInBackground(exportImportConfiguration,
151                            inputStream);
152            }
153    
154            public static void importLayouts(
155                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
156                    java.io.File file)
157                    throws com.liferay.portal.kernel.exception.PortalException {
158                    getService().importLayouts(exportImportConfiguration, file);
159            }
160    
161            public static void importLayouts(
162                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
163                    java.io.InputStream inputStream)
164                    throws com.liferay.portal.kernel.exception.PortalException {
165                    getService().importLayouts(exportImportConfiguration, inputStream);
166            }
167    
168            public static void importPortletInfo(
169                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
170                    java.io.File file)
171                    throws com.liferay.portal.kernel.exception.PortalException {
172                    getService().importPortletInfo(exportImportConfiguration, file);
173            }
174    
175            public static void importPortletInfo(
176                    com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
177                    java.io.InputStream inputStream)
178                    throws com.liferay.portal.kernel.exception.PortalException {
179                    getService().importPortletInfo(exportImportConfiguration, inputStream);
180            }
181    
182            public static ExportImportService getService() {
183                    if (_service == null) {
184                            _service = (ExportImportService)PortalBeanLocatorUtil.locate(ExportImportService.class.getName());
185    
186                            ReferenceRegistry.registerReference(ExportImportServiceUtil.class,
187                                    "_service");
188                    }
189    
190                    return _service;
191            }
192    
193            private static ExportImportService _service;
194    }