001
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.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.service.BaseService;
026
027 import com.liferay.portlet.exportimport.lar.MissingReferences;
028 import com.liferay.portlet.exportimport.model.ExportImportConfiguration;
029
030 import java.io.File;
031 import java.io.InputStream;
032
033
044 @AccessControlled
045 @JSONWebService
046 @ProviderType
047 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
048 PortalException.class, SystemException.class})
049 public interface ExportImportService extends BaseService {
050
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
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 }