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