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

com.liferay.commerce.discount.service.http.CommerceDiscountServiceHttp Maven / Gradle / Ivy

/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

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

import com.liferay.commerce.discount.service.CommerceDiscountServiceUtil;
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
 * CommerceDiscountServiceUtil 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 * @see CommerceDiscountServiceSoap * @generated */ public class CommerceDiscountServiceHttp { public static com.liferay.commerce.discount.model.CommerceDiscount addCommerceDiscount( HttpPrincipal httpPrincipal, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "addCommerceDiscount", _addCommerceDiscountParameterTypes0); MethodHandler methodHandler = new MethodHandler( methodKey, userId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level1, level2, level3, level4, limitationType, limitationTimes, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount addCommerceDiscount( HttpPrincipal httpPrincipal, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "addCommerceDiscount", _addCommerceDiscountParameterTypes1); MethodHandler methodHandler = new MethodHandler( methodKey, userId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount addCommerceDiscount( HttpPrincipal httpPrincipal, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "addCommerceDiscount", _addCommerceDiscountParameterTypes2); MethodHandler methodHandler = new MethodHandler( methodKey, userId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, limitationTimesPerAccount, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, externalReferenceCode, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static void deleteCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "deleteCommerceDiscount", _deleteCommerceDiscountParameterTypes3); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId); 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.discount.model.CommerceDiscount fetchByExternalReferenceCode( HttpPrincipal httpPrincipal, long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "fetchByExternalReferenceCode", _fetchByExternalReferenceCodeParameterTypes4); 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount fetchCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "fetchCommerceDiscount", _fetchCommerceDiscountParameterTypes5); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId); 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount getCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "getCommerceDiscount", _getCommerceDiscountParameterTypes6); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId); 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static java.util.List getCommerceDiscounts( HttpPrincipal httpPrincipal, long companyId, String couponCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "getCommerceDiscounts", _getCommerceDiscountsParameterTypes7); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, couponCode); 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 getCommerceDiscountsCount( HttpPrincipal httpPrincipal, long companyId, String couponCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "getCommerceDiscountsCount", _getCommerceDiscountsCountParameterTypes8); MethodHandler methodHandler = new MethodHandler( methodKey, companyId, couponCode); 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 int getCommerceDiscountsCountByPricingClassId( HttpPrincipal httpPrincipal, long commercePricingClassId, String title) throws com.liferay.portal.kernel.security.auth.PrincipalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "getCommerceDiscountsCountByPricingClassId", _getCommerceDiscountsCountByPricingClassIdParameterTypes9); MethodHandler methodHandler = new MethodHandler( methodKey, commercePricingClassId, title); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.security.auth. PrincipalException) { throw (com.liferay.portal.kernel.security.auth. PrincipalException)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 java.util.List searchByCommercePricingClassId( HttpPrincipal httpPrincipal, long commercePricingClassId, String title, int start, int end) throws com.liferay.portal.kernel.security.auth.PrincipalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "searchByCommercePricingClassId", _searchByCommercePricingClassIdParameterTypes10); MethodHandler methodHandler = new MethodHandler( methodKey, commercePricingClassId, title, start, end); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception exception) { if (exception instanceof com.liferay.portal.kernel.security.auth. PrincipalException) { throw (com.liferay.portal.kernel.security.auth. PrincipalException)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.portal.kernel.search.BaseModelSearchResult searchCommerceDiscounts( 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( CommerceDiscountServiceUtil.class, "searchCommerceDiscounts", _searchCommerceDiscountsParameterTypes11); 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.discount.model.CommerceDiscount updateCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "updateCommerceDiscount", _updateCommerceDiscountParameterTypes12); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level1, level2, level3, level4, limitationType, limitationTimes, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount updateCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "updateCommerceDiscount", _updateCommerceDiscountParameterTypes13); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount updateCommerceDiscount( HttpPrincipal httpPrincipal, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "updateCommerceDiscount", _updateCommerceDiscountParameterTypes14); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, limitationTimesPerAccount, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount updateCommerceDiscountExternalReferenceCode( HttpPrincipal httpPrincipal, long commerceDiscountId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "updateCommerceDiscountExternalReferenceCode", _updateCommerceDiscountExternalReferenceCodeParameterTypes15); MethodHandler methodHandler = new MethodHandler( methodKey, commerceDiscountId, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount upsertCommerceDiscount( HttpPrincipal httpPrincipal, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "upsertCommerceDiscount", _upsertCommerceDiscountParameterTypes16); MethodHandler methodHandler = new MethodHandler( methodKey, userId, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level1, level2, level3, level4, limitationType, limitationTimes, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, externalReferenceCode, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount upsertCommerceDiscount( HttpPrincipal httpPrincipal, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "upsertCommerceDiscount", _upsertCommerceDiscountParameterTypes17); MethodHandler methodHandler = new MethodHandler( methodKey, userId, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, externalReferenceCode, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } public static com.liferay.commerce.discount.model.CommerceDiscount upsertCommerceDiscount( HttpPrincipal httpPrincipal, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey( CommerceDiscountServiceUtil.class, "upsertCommerceDiscount", _upsertCommerceDiscountParameterTypes18); MethodHandler methodHandler = new MethodHandler( methodKey, userId, commerceDiscountId, title, target, useCouponCode, couponCode, usePercentage, maximumDiscountAmount, level, level1, level2, level3, level4, limitationType, limitationTimes, limitationTimesPerAccount, rulesConjunction, active, displayDateMonth, displayDateDay, displayDateYear, displayDateHour, displayDateMinute, expirationDateMonth, expirationDateDay, expirationDateYear, expirationDateHour, expirationDateMinute, externalReferenceCode, neverExpire, 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.discount.model.CommerceDiscount) returnObj; } catch (com.liferay.portal.kernel.exception.SystemException systemException) { _log.error(systemException, systemException); throw systemException; } } private static Log _log = LogFactoryUtil.getLog( CommerceDiscountServiceHttp.class); private static final Class[] _addCommerceDiscountParameterTypes0 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.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, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _addCommerceDiscountParameterTypes1 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, boolean.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, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _addCommerceDiscountParameterTypes2 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, int.class, boolean.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, String.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _deleteCommerceDiscountParameterTypes3 = new Class[] {long.class}; private static final Class[] _fetchByExternalReferenceCodeParameterTypes4 = new Class[] { long.class, String.class }; private static final Class[] _fetchCommerceDiscountParameterTypes5 = new Class[] {long.class}; private static final Class[] _getCommerceDiscountParameterTypes6 = new Class[] {long.class}; private static final Class[] _getCommerceDiscountsParameterTypes7 = new Class[] {long.class, String.class}; private static final Class[] _getCommerceDiscountsCountParameterTypes8 = new Class[] {long.class, String.class}; private static final Class[] _getCommerceDiscountsCountByPricingClassIdParameterTypes9 = new Class[] {long.class, String.class}; private static final Class[] _searchByCommercePricingClassIdParameterTypes10 = new Class[] { long.class, String.class, int.class, int.class }; private static final Class[] _searchCommerceDiscountsParameterTypes11 = new Class[] { long.class, String.class, int.class, int.class, int.class, com.liferay.portal.kernel.search.Sort.class }; private static final Class[] _updateCommerceDiscountParameterTypes12 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.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, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateCommerceDiscountParameterTypes13 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, boolean.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, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateCommerceDiscountParameterTypes14 = new Class[] { long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, int.class, boolean.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, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateCommerceDiscountExternalReferenceCodeParameterTypes15 = new Class[] {long.class, String.class}; private static final Class[] _upsertCommerceDiscountParameterTypes16 = new Class[] { long.class, long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, String.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _upsertCommerceDiscountParameterTypes17 = new Class[] { long.class, long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, boolean.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, String.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _upsertCommerceDiscountParameterTypes18 = new Class[] { long.class, long.class, String.class, String.class, boolean.class, String.class, boolean.class, java.math.BigDecimal.class, String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class, String.class, int.class, int.class, boolean.class, boolean.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, int.class, String.class, boolean.class, com.liferay.portal.kernel.service.ServiceContext.class }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy