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