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.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
043 @ProviderType
044 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
045 PortalException.class, SystemException.class})
046 public interface ExportImportLocalService extends BaseLocalService {
047
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
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 }