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 File exportLayoutsAsFile(
053                    ExportImportConfiguration exportImportConfiguration)
054                    throws PortalException;
055    
056            public long exportLayoutsAsFileInBackground(long userId,
057                    ExportImportConfiguration exportImportConfiguration)
058                    throws PortalException;
059    
060            public long exportLayoutsAsFileInBackground(long userId,
061                    long exportImportConfigurationId) throws PortalException;
062    
063            public File exportPortletInfoAsFile(
064                    ExportImportConfiguration exportImportConfiguration)
065                    throws PortalException;
066    
067            public long exportPortletInfoAsFileInBackground(long userId,
068                    ExportImportConfiguration exportImportConfiguration)
069                    throws PortalException;
070    
071            public long exportPortletInfoAsFileInBackground(long userId,
072                    long exportImportConfigurationId) 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 void importLayoutsDataDeletions(
090                    ExportImportConfiguration exportImportConfiguration, File file)
091                    throws PortalException;
092    
093            public long importLayoutsInBackground(long userId,
094                    ExportImportConfiguration exportImportConfiguration, File file)
095                    throws PortalException;
096    
097            public long importLayoutsInBackground(long userId,
098                    ExportImportConfiguration exportImportConfiguration,
099                    InputStream inputStream) throws PortalException;
100    
101            public long importLayoutsInBackground(long userId,
102                    long exportImportConfigurationId, File file) throws PortalException;
103    
104            public long importLayoutsInBackground(long userId,
105                    long exportImportConfigurationId, InputStream inputStream)
106                    throws PortalException;
107    
108            public void importPortletDataDeletions(
109                    ExportImportConfiguration exportImportConfiguration, File file)
110                    throws PortalException;
111    
112            public void importPortletInfo(
113                    ExportImportConfiguration exportImportConfiguration, File file)
114                    throws PortalException;
115    
116            public void importPortletInfo(
117                    ExportImportConfiguration exportImportConfiguration,
118                    InputStream inputStream) throws PortalException;
119    
120            public long importPortletInfoInBackground(long userId,
121                    ExportImportConfiguration exportImportConfiguration, File file)
122                    throws PortalException;
123    
124            public long importPortletInfoInBackground(long userId,
125                    ExportImportConfiguration exportImportConfiguration,
126                    InputStream inputStream) throws PortalException;
127    
128            public long importPortletInfoInBackground(long userId,
129                    long exportImportConfigurationId, File file) throws PortalException;
130    
131            public long importPortletInfoInBackground(long userId,
132                    long exportImportConfigurationId, InputStream inputStream)
133                    throws PortalException;
134    
135            public MissingReferences validateImportLayoutsFile(
136                    ExportImportConfiguration exportImportConfiguration, File file)
137                    throws PortalException;
138    
139            public MissingReferences validateImportLayoutsFile(
140                    ExportImportConfiguration exportImportConfiguration,
141                    InputStream inputStream) throws PortalException;
142    
143            public MissingReferences validateImportPortletInfo(
144                    ExportImportConfiguration exportImportConfiguration, File file)
145                    throws PortalException;
146    
147            public MissingReferences validateImportPortletInfo(
148                    ExportImportConfiguration exportImportConfiguration,
149                    InputStream inputStream) throws PortalException;
150    }