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 ExportImportServiceUtil {
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(
099 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
100 throws com.liferay.portal.kernel.exception.PortalException {
101 return getService()
102 .exportLayoutsAsFileInBackground(exportImportConfiguration);
103 }
104
105 public static long exportLayoutsAsFileInBackground(
106 long exportImportConfigurationId)
107 throws com.liferay.portal.kernel.exception.PortalException {
108 return getService()
109 .exportLayoutsAsFileInBackground(exportImportConfigurationId);
110 }
111
112 public static long exportPortletInfoAsFileInBackground(
113 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration)
114 throws com.liferay.portal.kernel.exception.PortalException {
115 return getService()
116 .exportPortletInfoAsFileInBackground(exportImportConfiguration);
117 }
118
119 public static long importLayoutsInBackground(
120 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
121 java.io.File file)
122 throws com.liferay.portal.kernel.exception.PortalException {
123 return getService()
124 .importLayoutsInBackground(exportImportConfiguration, file);
125 }
126
127 public static long importLayoutsInBackground(
128 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
129 java.io.InputStream inputStream)
130 throws com.liferay.portal.kernel.exception.PortalException {
131 return getService()
132 .importLayoutsInBackground(exportImportConfiguration,
133 inputStream);
134 }
135
136 public static long importPortletInfoInBackground(
137 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
138 java.io.File file)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService()
141 .importPortletInfoInBackground(exportImportConfiguration,
142 file);
143 }
144
145 public static long importPortletInfoInBackground(
146 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
147 java.io.InputStream inputStream)
148 throws com.liferay.portal.kernel.exception.PortalException {
149 return getService()
150 .importPortletInfoInBackground(exportImportConfiguration,
151 inputStream);
152 }
153
154 public static void importLayouts(
155 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
156 java.io.File file)
157 throws com.liferay.portal.kernel.exception.PortalException {
158 getService().importLayouts(exportImportConfiguration, file);
159 }
160
161 public static void importLayouts(
162 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
163 java.io.InputStream inputStream)
164 throws com.liferay.portal.kernel.exception.PortalException {
165 getService().importLayouts(exportImportConfiguration, inputStream);
166 }
167
168 public static void importPortletInfo(
169 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
170 java.io.File file)
171 throws com.liferay.portal.kernel.exception.PortalException {
172 getService().importPortletInfo(exportImportConfiguration, file);
173 }
174
175 public static void importPortletInfo(
176 com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration,
177 java.io.InputStream inputStream)
178 throws com.liferay.portal.kernel.exception.PortalException {
179 getService().importPortletInfo(exportImportConfiguration, inputStream);
180 }
181
182 public static ExportImportService getService() {
183 if (_service == null) {
184 _service = (ExportImportService)PortalBeanLocatorUtil.locate(ExportImportService.class.getName());
185
186 ReferenceRegistry.registerReference(ExportImportServiceUtil.class,
187 "_service");
188 }
189
190 return _service;
191 }
192
193 private static ExportImportService _service;
194 }