001
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
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 MissingReferences validateImportLayoutsFile(
056 ExportImportConfiguration exportImportConfiguration, File file)
057 throws PortalException;
058
059 public MissingReferences validateImportLayoutsFile(
060 ExportImportConfiguration exportImportConfiguration,
061 InputStream inputStream) throws PortalException;
062
063 public MissingReferences validateImportPortletInfo(
064 ExportImportConfiguration exportImportConfiguration, File file)
065 throws PortalException;
066
067 public MissingReferences validateImportPortletInfo(
068 ExportImportConfiguration exportImportConfiguration,
069 InputStream inputStream) throws PortalException;
070
071 public File exportLayoutsAsFile(
072 ExportImportConfiguration exportImportConfiguration)
073 throws PortalException;
074
075 public File exportPortletInfoAsFile(
076 ExportImportConfiguration exportImportConfiguration)
077 throws PortalException;
078
079
084 public java.lang.String getOSGiServiceIdentifier();
085
086 public long exportLayoutsAsFileInBackground(
087 ExportImportConfiguration exportImportConfiguration)
088 throws PortalException;
089
090 public long exportLayoutsAsFileInBackground(
091 long exportImportConfigurationId) throws PortalException;
092
093 public long exportPortletInfoAsFileInBackground(
094 ExportImportConfiguration exportImportConfiguration)
095 throws PortalException;
096
097 public long importLayoutsInBackground(
098 ExportImportConfiguration exportImportConfiguration, File file)
099 throws PortalException;
100
101 public long importLayoutsInBackground(
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 void importLayouts(
114 ExportImportConfiguration exportImportConfiguration, File file)
115 throws PortalException;
116
117 public void importLayouts(
118 ExportImportConfiguration exportImportConfiguration,
119 InputStream inputStream) throws PortalException;
120
121 public void importPortletInfo(
122 ExportImportConfiguration exportImportConfiguration, File file)
123 throws PortalException;
124
125 public void importPortletInfo(
126 ExportImportConfiguration exportImportConfiguration,
127 InputStream inputStream) throws PortalException;
128 }