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 FileexportLayoutsAsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static longexportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long exportImportConfigurationId) static longexportLayoutsAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static FileexportPortletInfoAsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static longexportPortletInfoAsFileInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration) static voidimportLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static voidimportLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static longimportLayoutsInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static longimportLayoutsInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static voidimportPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static voidimportPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static longimportPortletInfoInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static longimportPortletInfoInBackground(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static com.liferay.exportimport.kernel.lar.MissingReferencesvalidateImportLayoutsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static com.liferay.exportimport.kernel.lar.MissingReferencesvalidateImportLayoutsFile(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, InputStream inputStream) static com.liferay.exportimport.kernel.lar.MissingReferencesvalidateImportPortletInfo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, com.liferay.exportimport.kernel.model.ExportImportConfiguration exportImportConfiguration, File file) static com.liferay.exportimport.kernel.lar.MissingReferencesvalidateImportPortletInfo(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
-