All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.commerce.term.service.http.CommerceTermEntryServiceHttp Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.commerce.term.service.http;

import com.liferay.commerce.term.service.CommerceTermEntryServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

/**
 * Provides the HTTP utility for the
 * CommerceTermEntryServiceUtil 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 Luca Pellizzon * @generated */ public class CommerceTermEntryServiceHttp { public static com.liferay.commerce.term.model.CommerceTermEntry addCommerceTermEntry( HttpPrincipal httpPrincipal, String externalReferenceCode, boolean active, java.util.Map descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.Map labelMap, String name, double priority, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "addCommerceTermEntry", _addCommerceTermEntryParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, active, descriptionMap, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, labelMap, name, priority, type, typeSettings, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry deleteCommerceTermEntry( HttpPrincipal httpPrincipal, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "deleteCommerceTermEntry", _deleteCommerceTermEntryParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, commerceTermEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry fetchCommerceTermEntry( HttpPrincipal httpPrincipal, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "fetchCommerceTermEntry", _fetchCommerceTermEntryParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, commerceTermEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry fetchCommerceTermEntryByExternalReferenceCode( HttpPrincipal httpPrincipal, long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "fetchCommerceTermEntryByExternalReferenceCode", _fetchCommerceTermEntryByExternalReferenceCodeParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, externalReferenceCode); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getCommerceTermEntries( HttpPrincipal httpPrincipal, long groupId, long companyId, String type) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "getCommerceTermEntries", _getCommerceTermEntriesParameterTypes4); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, companyId, type); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry getCommerceTermEntry( HttpPrincipal httpPrincipal, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "getCommerceTermEntry", _getCommerceTermEntryParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, commerceTermEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getPaymentCommerceTermEntries( HttpPrincipal httpPrincipal, long groupId, long companyId, long commerceOrderTypeId, long commercePaymentMethodGroupRelId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "getPaymentCommerceTermEntries", _getPaymentCommerceTermEntriesParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, companyId, commerceOrderTypeId, commercePaymentMethodGroupRelId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry updateCommerceTermEntry( HttpPrincipal httpPrincipal, long commerceTermEntryId, boolean active, java.util.Map descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.Map labelMap, String name, double priority, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "updateCommerceTermEntry", _updateCommerceTermEntryParameterTypes7); MethodHandler methodHandler = new MethodHandler( methodKey, commerceTermEntryId, active, descriptionMap, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, labelMap, name, priority, typeSettings, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.term.model.CommerceTermEntry updateCommerceTermEntryExternalReferenceCode( HttpPrincipal httpPrincipal, String externalReferenceCode, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceTermEntryServiceUtil.class, "updateCommerceTermEntryExternalReferenceCode", _updateCommerceTermEntryExternalReferenceCodeParameterTypes8); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, commerceTermEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException) exception; } throw new com.liferay.portal.kernel.exception.SystemException( exception); } return (com.liferay.commerce.term.model.CommerceTermEntry)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( CommerceTermEntryServiceHttp.class); private static final Class[] _addCommerceTermEntryParameterTypes0 = new Class[] { String.class, boolean.class, java.util.Map.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, boolean.class, java.util.Map.class, String.class, double.class, String.class, String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteCommerceTermEntryParameterTypes1 = new Class[] {long.class}; private static final Class[] _fetchCommerceTermEntryParameterTypes2 = new Class[] {long.class}; private static final Class[] _fetchCommerceTermEntryByExternalReferenceCodeParameterTypes3 = new Class[] {long.class, String.class}; private static final Class[] _getCommerceTermEntriesParameterTypes4 = new Class[] {long.class, long.class, String.class}; private static final Class[] _getCommerceTermEntryParameterTypes5 = new Class[] {long.class}; private static final Class[] _getPaymentCommerceTermEntriesParameterTypes6 = new Class[] { long.class, long.class, long.class, long.class }; private static final Class[] _updateCommerceTermEntryParameterTypes7 = new Class[] { long.class, boolean.class, java.util.Map.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, boolean.class, java.util.Map.class, String.class, double.class, String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateCommerceTermEntryExternalReferenceCodeParameterTypes8 = new Class[] {String.class, long.class}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy