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 ExportImportServiceUtil {
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(
050 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 return getService()
053 .exportLayoutsAsFileInBackground(exportImportConfiguration);
054 }
055
056 public static long exportLayoutsAsFileInBackground(
057 long exportImportConfigurationId)
058 throws com.liferay.portal.kernel.exception.PortalException {
059 return getService()
060 .exportLayoutsAsFileInBackground(exportImportConfigurationId);
061 }
062
063 public static java.io.File exportPortletInfoAsFile(
064 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 return getService().exportPortletInfoAsFile(exportImportConfiguration);
067 }
068
069 public static long exportPortletInfoAsFileInBackground(
070 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 return getService()
073 .exportPortletInfoAsFileInBackground(exportImportConfiguration);
074 }
075
076
081 public static java.lang.String getBeanIdentifier() {
082 return getService().getBeanIdentifier();
083 }
084
085 public static void importLayouts(
086 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
087 java.io.File file)
088 throws com.liferay.portal.kernel.exception.PortalException {
089 getService().importLayouts(exportImportConfiguration, file);
090 }
091
092 public static void importLayouts(
093 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
094 java.io.InputStream inputStream)
095 throws com.liferay.portal.kernel.exception.PortalException {
096 getService().importLayouts(exportImportConfiguration, inputStream);
097 }
098
099 public static long importLayoutsInBackground(
100 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
101 java.io.File file)
102 throws com.liferay.portal.kernel.exception.PortalException {
103 return getService()
104 .importLayoutsInBackground(exportImportConfiguration, file);
105 }
106
107 public static long importLayoutsInBackground(
108 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
109 java.io.InputStream inputStream)
110 throws com.liferay.portal.kernel.exception.PortalException {
111 return getService()
112 .importLayoutsInBackground(exportImportConfiguration,
113 inputStream);
114 }
115
116 public static void importPortletInfo(
117 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
118 java.io.File file)
119 throws com.liferay.portal.kernel.exception.PortalException {
120 getService().importPortletInfo(exportImportConfiguration, file);
121 }
122
123 public static void importPortletInfo(
124 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
125 java.io.InputStream inputStream)
126 throws com.liferay.portal.kernel.exception.PortalException {
127 getService().importPortletInfo(exportImportConfiguration, inputStream);
128 }
129
130 public static long importPortletInfoInBackground(
131 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
132 java.io.File file)
133 throws com.liferay.portal.kernel.exception.PortalException {
134 return getService()
135 .importPortletInfoInBackground(exportImportConfiguration,
136 file);
137 }
138
139 public static long importPortletInfoInBackground(
140 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
141 java.io.InputStream inputStream)
142 throws com.liferay.portal.kernel.exception.PortalException {
143 return getService()
144 .importPortletInfoInBackground(exportImportConfiguration,
145 inputStream);
146 }
147
148
153 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
154 getService().setBeanIdentifier(beanIdentifier);
155 }
156
157 public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
158 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
159 java.io.File file)
160 throws com.liferay.portal.kernel.exception.PortalException {
161 return getService()
162 .validateImportLayoutsFile(exportImportConfiguration, file);
163 }
164
165 public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
166 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
167 java.io.InputStream inputStream)
168 throws com.liferay.portal.kernel.exception.PortalException {
169 return getService()
170 .validateImportLayoutsFile(exportImportConfiguration,
171 inputStream);
172 }
173
174 public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
175 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
176 java.io.File file)
177 throws com.liferay.portal.kernel.exception.PortalException {
178 return getService()
179 .validateImportPortletInfo(exportImportConfiguration, file);
180 }
181
182 public static com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
183 com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
184 java.io.InputStream inputStream)
185 throws com.liferay.portal.kernel.exception.PortalException {
186 return getService()
187 .validateImportPortletInfo(exportImportConfiguration,
188 inputStream);
189 }
190
191 public static ExportImportService getService() {
192 if (_service == null) {
193 _service = (ExportImportService)PortalBeanLocatorUtil.locate(ExportImportService.class.getName());
194
195 ReferenceRegistry.registerReference(ExportImportServiceUtil.class,
196 "_service");
197 }
198
199 return _service;
200 }
201
202
205 @Deprecated
206 public void setService(ExportImportService service) {
207 }
208
209 private static ExportImportService _service;
210 }