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.exportimport.kernel.lar.MissingReferences;
020    import com.liferay.exportimport.kernel.model.ExportImportConfiguration;
021    
022    import com.liferay.portal.kernel.exception.PortalException;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
025    import com.liferay.portal.kernel.security.access.control.AccessControlled;
026    import com.liferay.portal.kernel.service.BaseService;
027    import com.liferay.portal.kernel.transaction.Isolation;
028    import com.liferay.portal.kernel.transaction.Transactional;
029    
030    import java.io.File;
031    import java.io.InputStream;
032    
033    /**
034     * Provides the remote service interface for ExportImport. Methods of this
035     * service are expected to have security checks based on the propagated JAAS
036     * credentials because this service can be accessed remotely.
037     *
038     * @author Brian Wing Shun Chan
039     * @see ExportImportServiceUtil
040     * @see com.liferay.portlet.exportimport.service.base.ExportImportServiceBaseImpl
041     * @see com.liferay.portlet.exportimport.service.impl.ExportImportServiceImpl
042     * @generated
043     */
044    @AccessControlled
045    @JSONWebService
046    @ProviderType
047    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
048            PortalException.class, SystemException.class})
049    public interface ExportImportService extends BaseService {
050            /*
051             * NOTE FOR DEVELOPERS:
052             *
053             * Never modify or reference this interface directly. Always use {@link ExportImportServiceUtil} to access the export import remote service. Add custom service methods to {@link com.liferay.portlet.exportimport.service.impl.ExportImportServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
054             */
055            public File exportLayoutsAsFile(
056                    ExportImportConfiguration exportImportConfiguration)
057                    throws PortalException;
058    
059            public long exportLayoutsAsFileInBackground(
060                    ExportImportConfiguration exportImportConfiguration)
061                    throws PortalException;
062    
063            public long exportLayoutsAsFileInBackground(
064                    long exportImportConfigurationId) throws PortalException;
065    
066            public File exportPortletInfoAsFile(
067                    ExportImportConfiguration exportImportConfiguration)
068                    throws PortalException;
069    
070            public long exportPortletInfoAsFileInBackground(
071                    ExportImportConfiguration exportImportConfiguration)
072                    throws PortalException;
073    
074            /**
075            * Returns the OSGi service identifier.
076            *
077            * @return the OSGi service identifier
078            */
079            public java.lang.String getOSGiServiceIdentifier();
080    
081            public void importLayouts(
082                    ExportImportConfiguration exportImportConfiguration, File file)
083                    throws PortalException;
084    
085            public void importLayouts(
086                    ExportImportConfiguration exportImportConfiguration,
087                    InputStream inputStream) throws PortalException;
088    
089            public long importLayoutsInBackground(
090                    ExportImportConfiguration exportImportConfiguration, File file)
091                    throws PortalException;
092    
093            public long importLayoutsInBackground(
094                    ExportImportConfiguration exportImportConfiguration,
095                    InputStream inputStream) throws PortalException;
096    
097            public void importPortletInfo(
098                    ExportImportConfiguration exportImportConfiguration, File file)
099                    throws PortalException;
100    
101            public void importPortletInfo(
102                    ExportImportConfiguration exportImportConfiguration,
103                    InputStream inputStream) throws PortalException;
104    
105            public long importPortletInfoInBackground(
106                    ExportImportConfiguration exportImportConfiguration, File file)
107                    throws PortalException;
108    
109            public long importPortletInfoInBackground(
110                    ExportImportConfiguration exportImportConfiguration,
111                    InputStream inputStream) throws PortalException;
112    
113            public MissingReferences validateImportLayoutsFile(
114                    ExportImportConfiguration exportImportConfiguration, File file)
115                    throws PortalException;
116    
117            public MissingReferences validateImportLayoutsFile(
118                    ExportImportConfiguration exportImportConfiguration,
119                    InputStream inputStream) throws PortalException;
120    
121            public MissingReferences validateImportPortletInfo(
122                    ExportImportConfiguration exportImportConfiguration, File file)
123                    throws PortalException;
124    
125            public MissingReferences validateImportPortletInfo(
126                    ExportImportConfiguration exportImportConfiguration,
127                    InputStream inputStream) throws PortalException;
128    }