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

com.liferay.commerce.product.service.http.CPInstanceServiceHttp Maven / Gradle / Ivy

There is a newer version: 6.0.156
Show 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.product.service.http;

import com.liferay.commerce.product.service.CPInstanceServiceUtil;
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
 * CPInstanceServiceUtil 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 Marco Leo * @generated */ public class CPInstanceServiceHttp { public static com.liferay.commerce.product.model.CPInstance addCPInstance( HttpPrincipal httpPrincipal, String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, java.util.Map> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "addCPInstance", _addCPInstanceParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, cpDefinitionId, groupId, sku, gtin, manufacturerPartNumber, purchasable, cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, width, height, depth, weight, price, promoPrice, cost, published, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, overrideSubscriptionInfo, subscriptionEnabled, subscriptionLength, subscriptionType, subscriptionTypeSettingsUnicodeProperties, maxSubscriptionCycles, deliverySubscriptionEnabled, deliverySubscriptionLength, deliverySubscriptionType, deliverySubscriptionTypeSettingsUnicodeProperties, deliveryMaxSubscriptionCycles, unspsc, discontinued, replacementCPInstanceUuid, replacementCProductId, discontinuedDateMonth, discontinuedDateDay, discontinuedDateYear, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance addOrUpdateCPInstance( HttpPrincipal httpPrincipal, String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, String json, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "addOrUpdateCPInstance", _addOrUpdateCPInstanceParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, cpDefinitionId, groupId, sku, gtin, manufacturerPartNumber, purchasable, json, width, height, depth, weight, price, promoPrice, cost, published, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, overrideSubscriptionInfo, subscriptionEnabled, subscriptionLength, subscriptionType, subscriptionTypeSettingsUnicodeProperties, maxSubscriptionCycles, deliverySubscriptionEnabled, deliverySubscriptionLength, deliverySubscriptionType, deliverySubscriptionTypeSettingsUnicodeProperties, deliveryMaxSubscriptionCycles, unspsc, discontinued, replacementCPInstanceUuid, replacementCProductId, discontinuedDateMonth, discontinuedDateDay, discontinuedDateYear, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List buildCPInstances( HttpPrincipal httpPrincipal, long cpDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "buildCPInstances", _buildCPInstancesParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, cpDefinitionId, 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 (java.util.List )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void deleteCPInstance( HttpPrincipal httpPrincipal, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "deleteCPInstance", _deleteCPInstanceParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId); try { 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); } } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance fetchByExternalReferenceCode( HttpPrincipal httpPrincipal, String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "fetchByExternalReferenceCode", _fetchByExternalReferenceCodeParameterTypes4); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, companyId); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance fetchCPInstance( HttpPrincipal httpPrincipal, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "fetchCPInstance", _fetchCPInstanceParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance fetchCProductInstance( HttpPrincipal httpPrincipal, long cProductId, String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "fetchCProductInstance", _fetchCProductInstanceParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, cProductId, cpInstanceUuid); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getCPDefinitionInstances( HttpPrincipal httpPrincipal, long cpDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCPDefinitionInstances", _getCPDefinitionInstancesParameterTypes7); MethodHandler methodHandler = new MethodHandler( methodKey, cpDefinitionId, status, start, end, orderByComparator); 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 int getCPDefinitionInstancesCount( HttpPrincipal httpPrincipal, long cpDefinitionId, int status) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCPDefinitionInstancesCount", _getCPDefinitionInstancesCountParameterTypes8); MethodHandler methodHandler = new MethodHandler( methodKey, cpDefinitionId, status); 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 ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance getCPInstance( HttpPrincipal httpPrincipal, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCPInstance", _getCPInstanceParameterTypes9); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getCPInstances( HttpPrincipal httpPrincipal, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCPInstances", _getCPInstancesParameterTypes10); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, status, start, end, orderByComparator); 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 int getCPInstancesCount( HttpPrincipal httpPrincipal, long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCPInstancesCount", _getCPInstancesCountParameterTypes11); MethodHandler methodHandler = new MethodHandler( methodKey, groupId, status); 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 ((Integer)returnObj).intValue(); } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance getCProductInstance( HttpPrincipal httpPrincipal, long cProductId, String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "getCProductInstance", _getCProductInstanceParameterTypes12); MethodHandler methodHandler = new MethodHandler( methodKey, cProductId, cpInstanceUuid); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPDefinitionInstances( HttpPrincipal httpPrincipal, long companyId, long cpDefinitionId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "searchCPDefinitionInstances", _searchCPDefinitionInstancesParameterTypes13); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, cpDefinitionId, keywords, status, start, end, sort); 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.portal.kernel.search.BaseModelSearchResult )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPDefinitionInstances( HttpPrincipal httpPrincipal, long companyId, long cpDefinitionId, String keywords, int status, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "searchCPDefinitionInstances", _searchCPDefinitionInstancesParameterTypes14); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, cpDefinitionId, keywords, status, sort); 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.portal.kernel.search.BaseModelSearchResult )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPInstances( HttpPrincipal httpPrincipal, long companyId, long groupId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "searchCPInstances", _searchCPInstancesParameterTypes15); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, groupId, keywords, status, start, end, sort); 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.portal.kernel.search.BaseModelSearchResult )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPInstances( HttpPrincipal httpPrincipal, long companyId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "searchCPInstances", _searchCPInstancesParameterTypes16); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, keywords, status, start, end, sort); 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.portal.kernel.search.BaseModelSearchResult )returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance updateCPInstance( HttpPrincipal httpPrincipal, String externalReferenceCode, long cpInstanceId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "updateCPInstance", _updateCPInstanceParameterTypes17); MethodHandler methodHandler = new MethodHandler( methodKey, externalReferenceCode, cpInstanceId, sku, gtin, manufacturerPartNumber, purchasable, width, height, depth, weight, price, promoPrice, cost, published, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, overrideSubscriptionInfo, subscriptionEnabled, subscriptionLength, subscriptionType, subscriptionTypeSettingsUnicodeProperties, maxSubscriptionCycles, deliverySubscriptionEnabled, deliverySubscriptionLength, deliverySubscriptionType, deliverySubscriptionTypeSettingsUnicodeProperties, deliveryMaxSubscriptionCycles, unspsc, discontinued, replacementCPInstanceUuid, replacementCProductId, discontinuedDateMonth, discontinuedDateDay, discontinuedDateYear, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance updateExternalReferenceCode( HttpPrincipal httpPrincipal, long cpInstanceId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "updateExternalReferenceCode", _updateExternalReferenceCodeParameterTypes18); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance updatePricingInfo( HttpPrincipal httpPrincipal, long cpInstanceId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "updatePricingInfo", _updatePricingInfoParameterTypes19); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId, price, promoPrice, cost, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance updateShippingInfo( HttpPrincipal httpPrincipal, long cpInstanceId, double width, double height, double depth, double weight, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "updateShippingInfo", _updateShippingInfoParameterTypes20); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId, width, height, depth, weight, 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.product.model.CPInstance updateSubscriptionInfo( HttpPrincipal httpPrincipal, long cpInstanceId, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CPInstanceServiceUtil.class, "updateSubscriptionInfo", _updateSubscriptionInfoParameterTypes21); MethodHandler methodHandler = new MethodHandler( methodKey, cpInstanceId, overrideSubscriptionInfo, subscriptionEnabled, subscriptionLength, subscriptionType, subscriptionTypeSettingsUnicodeProperties, maxSubscriptionCycles, deliverySubscriptionEnabled, deliverySubscriptionLength, deliverySubscriptionType, deliverySubscriptionTypeSettingsUnicodeProperties, deliveryMaxSubscriptionCycles); 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.product.model.CPInstance)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( CPInstanceServiceHttp.class); private static final Class[] _addCPInstanceParameterTypes0 = new Class[] { String.class, long.class, long.class, String.class, String.class, String.class, boolean.class, java.util.Map.class, double.class, double.class, double.class, double.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, boolean.class, boolean.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, String.class, boolean.class, String.class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _addOrUpdateCPInstanceParameterTypes1 = new Class[] { String.class, long.class, long.class, String.class, String.class, String.class, boolean.class, String.class, double.class, double.class, double.class, double.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, boolean.class, boolean.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, String.class, boolean.class, String.class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _buildCPInstancesParameterTypes2 = new Class[] { long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteCPInstanceParameterTypes3 = new Class[] {long.class}; private static final Class[] _fetchByExternalReferenceCodeParameterTypes4 = new Class[] { String.class, long.class }; private static final Class[] _fetchCPInstanceParameterTypes5 = new Class[] {long.class}; private static final Class[] _fetchCProductInstanceParameterTypes6 = new Class[] {long.class, String.class}; private static final Class[] _getCPDefinitionInstancesParameterTypes7 = new Class[] { long.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getCPDefinitionInstancesCountParameterTypes8 = new Class[] { long.class, int.class }; private static final Class[] _getCPInstanceParameterTypes9 = new Class[] {long.class}; private static final Class[] _getCPInstancesParameterTypes10 = new Class[] { long.class, int.class, int.class, int.class, com.liferay.portal.kernel.util.OrderByComparator.class }; private static final Class[] _getCPInstancesCountParameterTypes11 = new Class[] {long.class, int.class}; private static final Class[] _getCProductInstanceParameterTypes12 = new Class[] {long.class, String.class}; private static final Class[] _searchCPDefinitionInstancesParameterTypes13 = new Class[] { long.class, long.class, String.class, int.class, int.class, int.class, com.liferay.portal.kernel.search.Sort.class }; private static final Class[] _searchCPDefinitionInstancesParameterTypes14 = new Class[] { long.class, long.class, String.class, int.class, com.liferay.portal.kernel.search.Sort.class }; private static final Class[] _searchCPInstancesParameterTypes15 = new Class[] { long.class, long.class, String.class, int.class, int.class, int.class, com.liferay.portal.kernel.search.Sort.class }; private static final Class[] _searchCPInstancesParameterTypes16 = new Class[] { long.class, String.class, int.class, int.class, int.class, com.liferay.portal.kernel.search.Sort.class }; private static final Class[] _updateCPInstanceParameterTypes17 = new Class[] { String.class, long.class, String.class, String.class, String.class, boolean.class, double.class, double.class, double.class, double.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, boolean.class, boolean.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, String.class, boolean.class, String.class, long.class, int.class, int.class, int.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateExternalReferenceCodeParameterTypes18 = new Class[] { long.class, String.class }; private static final Class[] _updatePricingInfoParameterTypes19 = new Class[] { long.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateShippingInfoParameterTypes20 = new Class[] { long.class, double.class, double.class, double.class, double.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateSubscriptionInfoParameterTypes21 = new Class[] { long.class, boolean.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class, boolean.class, int.class, String.class, com.liferay.portal.kernel.util.UnicodeProperties.class, long.class }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy