Class ExportImportServiceHttp
Object
com.liferay.portlet.exportimport.service.http.ExportImportServiceHttp
Provides the HTTP utility for the
ExportImportServiceUtil
service
utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
exportLayoutsAsFile
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static long
exportLayoutsAsFileInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long exportImportConfigurationId) static long
exportLayoutsAsFileInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static File
exportPortletInfoAsFile
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static long
exportPortletInfoAsFileInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static void
importLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static void
importLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static long
importLayoutsInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static long
importLayoutsInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static void
importPortletInfo
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static void
importPortletInfo
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static long
importPortletInfoInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static long
importPortletInfoInBackground
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static com.liferay.exportimport.kernel.lar.MissingReferences
validateImportLayoutsFile
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static com.liferay.exportimport.kernel.lar.MissingReferences
validateImportLayoutsFile
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static com.liferay.exportimport.kernel.lar.MissingReferences
validateImportPortletInfo
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static com.liferay.exportimport.kernel.lar.MissingReferences
validateImportPortletInfo
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream)
-
Constructor Details
-
ExportImportServiceHttp
public ExportImportServiceHttp()
-
-
Method Details
-
exportLayoutsAsFile
public static File exportLayoutsAsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
exportLayoutsAsFileInBackground
public static long exportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
exportLayoutsAsFileInBackground
public static long exportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long exportImportConfigurationId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
exportPortletInfoAsFile
public static File exportPortletInfoAsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
exportPortletInfoAsFileInBackground
public static long exportPortletInfoAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importLayouts
public static void importLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importLayouts
public static void importLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importLayoutsInBackground
public static long importLayoutsInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importLayoutsInBackground
public static long importLayoutsInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importPortletInfo
public static void importPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importPortletInfo
public static void importPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importPortletInfoInBackground
public static long importPortletInfoInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
importPortletInfoInBackground
public static long importPortletInfoInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateImportLayoutsFile
public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateImportLayoutsFile
public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportLayoutsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateImportPortletInfo
public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateImportPortletInfo
public static com.liferay.exportimport.kernel.lar.MissingReferences validateImportPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-