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 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
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 }