public class ExportImportServiceHttp
extends Object
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.
Constructor and Description |
---|
ExportImportServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static 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,
com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) |
static long |
exportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long exportImportConfigurationId) |
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) |
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
public static long exportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long exportImportConfigurationId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException
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
com.liferay.portal.kernel.exception.PortalException