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