001
014
015 package com.liferay.exportimport.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ExportImportLocalServiceUtil {
038
043 public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(
044 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
045 java.io.File file)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService()
048 .validateImportLayoutsFile(exportImportConfiguration, file);
049 }
050
051 public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(
052 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
053 java.io.InputStream inputStream)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 return getService()
056 .validateImportLayoutsFile(exportImportConfiguration,
057 inputStream);
058 }
059
060 public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(
061 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
062 java.io.File file)
063 throws com.liferay.portal.kernel.exception.PortalException {
064 return getService()
065 .validateImportPortletInfo(exportImportConfiguration, file);
066 }
067
068 public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(
069 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
070 java.io.InputStream inputStream)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 return getService()
073 .validateImportPortletInfo(exportImportConfiguration,
074 inputStream);
075 }
076
077 public static java.io.File exportLayoutsAsFile(
078 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService().exportLayoutsAsFile(exportImportConfiguration);
081 }
082
083 public static java.io.File exportPortletInfoAsFile(
084 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
085 throws com.liferay.portal.kernel.exception.PortalException {
086 return getService().exportPortletInfoAsFile(exportImportConfiguration);
087 }
088
089
094 public static java.lang.String getOSGiServiceIdentifier() {
095 return getService().getOSGiServiceIdentifier();
096 }
097
098 public static long exportLayoutsAsFileInBackground(long userId,
099 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
100 throws com.liferay.portal.kernel.exception.PortalException {
101 return getService()
102 .exportLayoutsAsFileInBackground(userId,
103 exportImportConfiguration);
104 }
105
106 public static long exportLayoutsAsFileInBackground(long userId,
107 long exportImportConfigurationId)
108 throws com.liferay.portal.kernel.exception.PortalException {
109 return getService()
110 .exportLayoutsAsFileInBackground(userId,
111 exportImportConfigurationId);
112 }
113
114 public static long exportPortletInfoAsFileInBackground(long userId,
115 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService()
118 .exportPortletInfoAsFileInBackground(userId,
119 exportImportConfiguration);
120 }
121
122 public static long exportPortletInfoAsFileInBackground(long userId,
123 long exportImportConfigurationId)
124 throws com.liferay.portal.kernel.exception.PortalException {
125 return getService()
126 .exportPortletInfoAsFileInBackground(userId,
127 exportImportConfigurationId);
128 }
129
130 public static long importLayoutsInBackground(long userId,
131 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
132 java.io.File file)
133 throws com.liferay.portal.kernel.exception.PortalException {
134 return getService()
135 .importLayoutsInBackground(userId,
136 exportImportConfiguration, file);
137 }
138
139 public static long importLayoutsInBackground(long userId,
140 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
141 java.io.InputStream inputStream)
142 throws com.liferay.portal.kernel.exception.PortalException {
143 return getService()
144 .importLayoutsInBackground(userId,
145 exportImportConfiguration, inputStream);
146 }
147
148 public static long importLayoutsInBackground(long userId,
149 long exportImportConfigurationId, java.io.File file)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return getService()
152 .importLayoutsInBackground(userId,
153 exportImportConfigurationId, file);
154 }
155
156 public static long importLayoutsInBackground(long userId,
157 long exportImportConfigurationId, java.io.InputStream inputStream)
158 throws com.liferay.portal.kernel.exception.PortalException {
159 return getService()
160 .importLayoutsInBackground(userId,
161 exportImportConfigurationId, inputStream);
162 }
163
164 public static long importPortletInfoInBackground(long userId,
165 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
166 java.io.File file)
167 throws com.liferay.portal.kernel.exception.PortalException {
168 return getService()
169 .importPortletInfoInBackground(userId,
170 exportImportConfiguration, file);
171 }
172
173 public static long importPortletInfoInBackground(long userId,
174 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
175 java.io.InputStream inputStream)
176 throws com.liferay.portal.kernel.exception.PortalException {
177 return getService()
178 .importPortletInfoInBackground(userId,
179 exportImportConfiguration, inputStream);
180 }
181
182 public static long importPortletInfoInBackground(long userId,
183 long exportImportConfigurationId, java.io.File file)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 return getService()
186 .importPortletInfoInBackground(userId,
187 exportImportConfigurationId, file);
188 }
189
190 public static long importPortletInfoInBackground(long userId,
191 long exportImportConfigurationId, java.io.InputStream inputStream)
192 throws com.liferay.portal.kernel.exception.PortalException {
193 return getService()
194 .importPortletInfoInBackground(userId,
195 exportImportConfigurationId, inputStream);
196 }
197
198 public static void importLayouts(
199 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
200 java.io.File file)
201 throws com.liferay.portal.kernel.exception.PortalException {
202 getService().importLayouts(exportImportConfiguration, file);
203 }
204
205 public static void importLayouts(
206 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
207 java.io.InputStream inputStream)
208 throws com.liferay.portal.kernel.exception.PortalException {
209 getService().importLayouts(exportImportConfiguration, inputStream);
210 }
211
212 public static void importLayoutsDataDeletions(
213 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
214 java.io.File file)
215 throws com.liferay.portal.kernel.exception.PortalException {
216 getService().importLayoutsDataDeletions(exportImportConfiguration, file);
217 }
218
219 public static void importPortletDataDeletions(
220 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
221 java.io.File file)
222 throws com.liferay.portal.kernel.exception.PortalException {
223 getService().importPortletDataDeletions(exportImportConfiguration, file);
224 }
225
226 public static void importPortletInfo(
227 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
228 java.io.File file)
229 throws com.liferay.portal.kernel.exception.PortalException {
230 getService().importPortletInfo(exportImportConfiguration, file);
231 }
232
233 public static void importPortletInfo(
234 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
235 java.io.InputStream inputStream)
236 throws com.liferay.portal.kernel.exception.PortalException {
237 getService().importPortletInfo(exportImportConfiguration, inputStream);
238 }
239
240 public static ExportImportLocalService getService() {
241 if (_service == null) {
242 _service = (ExportImportLocalService)PortalBeanLocatorUtil.locate(ExportImportLocalService.class.getName());
243
244 ReferenceRegistry.registerReference(ExportImportLocalServiceUtil.class,
245 "_service");
246 }
247
248 return _service;
249 }
250
251 private static ExportImportLocalService _service;
252 }