
com.liferay.commerce.product.service.http.CPDefinitionServiceHttp 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.product.service.http;
import aQute.bnd.annotation.ProviderType;
import com.liferay.commerce.product.service.CPDefinitionServiceUtil;
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
* {@link CPDefinitionServiceUtil} 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
* {@link 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 CPDefinitionServiceSoap
* @see HttpPrincipal
* @see CPDefinitionServiceUtil
* @generated
*/
@ProviderType
public class CPDefinitionServiceHttp {
public static com.liferay.commerce.product.model.CPDefinition addCPDefinition(
HttpPrincipal httpPrincipal,
java.util.Map nameMap,
java.util.Map shortDescriptionMap,
java.util.Map descriptionMap,
java.util.Map urlTitleMap,
java.util.Map metaTitleMap,
java.util.Map metaDescriptionMap,
java.util.Map metaKeywordsMap,
String productTypeName, boolean ignoreSKUCombinations,
boolean shippable, boolean freeShipping, boolean shipSeparately,
double shippingExtraPrice, double width, double height, double depth,
double weight, long cpTaxCategoryId, boolean taxExempt,
boolean telcoOrElectronics, String ddmStructureKey, boolean published,
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(CPDefinitionServiceUtil.class,
"addCPDefinition", _addCPDefinitionParameterTypes0);
MethodHandler methodHandler = new MethodHandler(methodKey, nameMap,
shortDescriptionMap, descriptionMap, urlTitleMap,
metaTitleMap, metaDescriptionMap, metaKeywordsMap,
productTypeName, ignoreSKUCombinations, shippable,
freeShipping, shipSeparately, shippingExtraPrice, width,
height, depth, weight, cpTaxCategoryId, taxExempt,
telcoOrElectronics, ddmStructureKey, published,
displayDateMonth, displayDateDay, displayDateYear,
displayDateHour, displayDateMinute, expirationDateMonth,
expirationDateDay, expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition addCPDefinition(
HttpPrincipal httpPrincipal,
java.util.Map nameMap,
java.util.Map shortDescriptionMap,
java.util.Map descriptionMap,
java.util.Map urlTitleMap,
java.util.Map metaTitleMap,
java.util.Map metaDescriptionMap,
java.util.Map metaKeywordsMap,
String productTypeName, boolean ignoreSKUCombinations,
String ddmStructureKey, boolean published, 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(CPDefinitionServiceUtil.class,
"addCPDefinition", _addCPDefinitionParameterTypes1);
MethodHandler methodHandler = new MethodHandler(methodKey, nameMap,
shortDescriptionMap, descriptionMap, urlTitleMap,
metaTitleMap, metaDescriptionMap, metaKeywordsMap,
productTypeName, ignoreSKUCombinations, ddmStructureKey,
published, displayDateMonth, displayDateDay,
displayDateYear, displayDateHour, displayDateMinute,
expirationDateMonth, expirationDateDay, expirationDateYear,
expirationDateHour, expirationDateMinute, neverExpire,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void deleteAssetCategoryCPDefinition(
HttpPrincipal httpPrincipal, long cpDefinitionId, long categoryId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"deleteAssetCategoryCPDefinition",
_deleteAssetCategoryCPDefinitionParameterTypes2);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, categoryId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void deleteCPDefinition(HttpPrincipal httpPrincipal,
long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"deleteCPDefinition", _deleteCPDefinitionParameterTypes3);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition fetchCPDefinition(
HttpPrincipal httpPrincipal, long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"fetchCPDefinition", _fetchCPDefinitionParameterTypes4);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition getCPDefinition(
HttpPrincipal httpPrincipal, long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getCPDefinition", _getCPDefinitionParameterTypes5);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static java.util.List getCPDefinitions(
HttpPrincipal httpPrincipal, long groupId, String productTypeName,
String languageId, 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(CPDefinitionServiceUtil.class,
"getCPDefinitions", _getCPDefinitionsParameterTypes6);
MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
productTypeName, languageId, status, start, end,
orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (java.util.List)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static java.util.List getCPDefinitionsByCategoryId(
HttpPrincipal httpPrincipal, long categoryId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getCPDefinitionsByCategoryId",
_getCPDefinitionsByCategoryIdParameterTypes7);
MethodHandler methodHandler = new MethodHandler(methodKey,
categoryId, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (java.util.List)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static int getCPDefinitionsCount(HttpPrincipal httpPrincipal,
long groupId, String productTypeName, String languageId, int status)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getCPDefinitionsCount",
_getCPDefinitionsCountParameterTypes8);
MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
productTypeName, languageId, status);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static int getCPDefinitionsCountByCategoryId(
HttpPrincipal httpPrincipal, long categoryId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getCPDefinitionsCountByCategoryId",
_getCPDefinitionsCountByCategoryIdParameterTypes9);
MethodHandler methodHandler = new MethodHandler(methodKey,
categoryId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static String getLayoutUuid(HttpPrincipal httpPrincipal,
long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getLayoutUuid", _getLayoutUuidParameterTypes10);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (String)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static String getUrlTitleMapAsXML(HttpPrincipal httpPrincipal,
long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"getUrlTitleMapAsXML", _getUrlTitleMapAsXMLParameterTypes11);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (String)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition moveCPDefinitionToTrash(
HttpPrincipal httpPrincipal, long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"moveCPDefinitionToTrash",
_moveCPDefinitionToTrashParameterTypes12);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void restoreCPDefinitionFromTrash(
HttpPrincipal httpPrincipal, long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"restoreCPDefinitionFromTrash",
_restoreCPDefinitionFromTrashParameterTypes13);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPDefinitions(
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(CPDefinitionServiceUtil.class,
"searchCPDefinitions", _searchCPDefinitionsParameterTypes14);
MethodHandler methodHandler = new MethodHandler(methodKey,
companyId, groupId, keywords, status, start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.portal.kernel.search.BaseModelSearchResult)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.portal.kernel.search.BaseModelSearchResult searchCPDefinitions(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String keywords, String filterFields, String filterValues, int start,
int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"searchCPDefinitions", _searchCPDefinitionsParameterTypes15);
MethodHandler methodHandler = new MethodHandler(methodKey,
companyId, groupId, keywords, filterFields, filterValues,
start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.portal.kernel.search.BaseModelSearchResult)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition updateCPDefinition(
HttpPrincipal httpPrincipal, long cpDefinitionId,
java.util.Map nameMap,
java.util.Map shortDescriptionMap,
java.util.Map descriptionMap,
java.util.Map urlTitleMap,
java.util.Map metaTitleMap,
java.util.Map metaDescriptionMap,
java.util.Map metaKeywordsMap,
boolean ignoreSKUCombinations, String ddmStructureKey,
boolean published, 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(CPDefinitionServiceUtil.class,
"updateCPDefinition", _updateCPDefinitionParameterTypes16);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, nameMap, shortDescriptionMap,
descriptionMap, urlTitleMap, metaTitleMap,
metaDescriptionMap, metaKeywordsMap, ignoreSKUCombinations,
ddmStructureKey, published, displayDateMonth,
displayDateDay, displayDateYear, displayDateHour,
displayDateMinute, expirationDateMonth, expirationDateDay,
expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition updateCPDefinitionCategorization(
HttpPrincipal httpPrincipal, long cpDefinitionId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"updateCPDefinitionCategorization",
_updateCPDefinitionCategorizationParameterTypes17);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static void updateCPDisplayLayout(HttpPrincipal httpPrincipal,
long cpDefinitionId, String layoutUuid,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"updateCPDisplayLayout",
_updateCPDisplayLayoutParameterTypes18);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, layoutUuid, serviceContext);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition updateShippingInfo(
HttpPrincipal httpPrincipal, long cpDefinitionId, boolean shippable,
boolean freeShipping, boolean shipSeparately,
double shippingExtraPrice, 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(CPDefinitionServiceUtil.class,
"updateShippingInfo", _updateShippingInfoParameterTypes19);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, shippable, freeShipping, shipSeparately,
shippingExtraPrice, width, height, depth, weight,
serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition updateTaxCategoryInfo(
HttpPrincipal httpPrincipal, long cpDefinitionId, long cpTaxCategoryId,
boolean taxExempt, boolean telcoOrElectronics)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"updateTaxCategoryInfo",
_updateTaxCategoryInfoParameterTypes20);
MethodHandler methodHandler = new MethodHandler(methodKey,
cpDefinitionId, cpTaxCategoryId, taxExempt,
telcoOrElectronics);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
public static com.liferay.commerce.product.model.CPDefinition upsertCPDefinition(
HttpPrincipal httpPrincipal,
java.util.Map nameMap,
java.util.Map shortDescriptionMap,
java.util.Map descriptionMap,
java.util.Map urlTitleMap,
java.util.Map metaTitleMap,
java.util.Map metaDescriptionMap,
java.util.Map metaKeywordsMap,
String productTypeName, boolean ignoreSKUCombinations,
boolean shippable, boolean freeShipping, boolean shipSeparately,
double shippingExtraPrice, double width, double height, double depth,
double weight, long cpTaxCategoryId, boolean taxExempt,
boolean telcoOrElectronics, String ddmStructureKey, boolean published,
int displayDateMonth, int displayDateDay, int displayDateYear,
int displayDateHour, int displayDateMinute, int expirationDateMonth,
int expirationDateDay, int expirationDateYear, int expirationDateHour,
int expirationDateMinute, boolean neverExpire, String defaultSKU,
String externalReferenceCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(CPDefinitionServiceUtil.class,
"upsertCPDefinition", _upsertCPDefinitionParameterTypes21);
MethodHandler methodHandler = new MethodHandler(methodKey, nameMap,
shortDescriptionMap, descriptionMap, urlTitleMap,
metaTitleMap, metaDescriptionMap, metaKeywordsMap,
productTypeName, ignoreSKUCombinations, shippable,
freeShipping, shipSeparately, shippingExtraPrice, width,
height, depth, weight, cpTaxCategoryId, taxExempt,
telcoOrElectronics, ddmStructureKey, published,
displayDateMonth, displayDateDay, displayDateYear,
displayDateHour, displayDateMinute, expirationDateMonth,
expirationDateDay, expirationDateYear, expirationDateHour,
expirationDateMinute, neverExpire, defaultSKU,
externalReferenceCode, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception e) {
if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)e;
}
throw new com.liferay.portal.kernel.exception.SystemException(e);
}
return (com.liferay.commerce.product.model.CPDefinition)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException se) {
_log.error(se, se);
throw se;
}
}
private static Log _log = LogFactoryUtil.getLog(CPDefinitionServiceHttp.class);
private static final Class>[] _addCPDefinitionParameterTypes0 = new Class[] {
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, String.class, boolean.class, boolean.class,
boolean.class, boolean.class, double.class, double.class,
double.class, double.class, double.class, long.class, boolean.class,
boolean.class, String.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>[] _addCPDefinitionParameterTypes1 = new Class[] {
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, String.class, boolean.class, String.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>[] _deleteAssetCategoryCPDefinitionParameterTypes2 =
new Class[] { long.class, long.class };
private static final Class>[] _deleteCPDefinitionParameterTypes3 = new Class[] {
long.class
};
private static final Class>[] _fetchCPDefinitionParameterTypes4 = new Class[] {
long.class
};
private static final Class>[] _getCPDefinitionParameterTypes5 = new Class[] {
long.class
};
private static final Class>[] _getCPDefinitionsParameterTypes6 = new Class[] {
long.class, String.class, String.class, int.class, int.class,
int.class, com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCPDefinitionsByCategoryIdParameterTypes7 =
new Class[] { long.class, int.class, int.class };
private static final Class>[] _getCPDefinitionsCountParameterTypes8 = new Class[] {
long.class, String.class, String.class, int.class
};
private static final Class>[] _getCPDefinitionsCountByCategoryIdParameterTypes9 =
new Class[] { long.class };
private static final Class>[] _getLayoutUuidParameterTypes10 = new Class[] {
long.class
};
private static final Class>[] _getUrlTitleMapAsXMLParameterTypes11 = new Class[] {
long.class
};
private static final Class>[] _moveCPDefinitionToTrashParameterTypes12 = new Class[] {
long.class
};
private static final Class>[] _restoreCPDefinitionFromTrashParameterTypes13 =
new Class[] { long.class };
private static final Class>[] _searchCPDefinitionsParameterTypes14 = 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>[] _searchCPDefinitionsParameterTypes15 = new Class[] {
long.class, long.class, String.class, String.class, String.class,
int.class, int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[] _updateCPDefinitionParameterTypes16 = new Class[] {
long.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, java.util.Map.class, boolean.class,
String.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>[] _updateCPDefinitionCategorizationParameterTypes17 =
new Class[] {
long.class, com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateCPDisplayLayoutParameterTypes18 = new Class[] {
long.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateShippingInfoParameterTypes19 = new Class[] {
long.class, boolean.class, boolean.class, boolean.class,
double.class, double.class, double.class, double.class, double.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateTaxCategoryInfoParameterTypes20 = new Class[] {
long.class, long.class, boolean.class, boolean.class
};
private static final Class>[] _upsertCPDefinitionParameterTypes21 = new Class[] {
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, java.util.Map.class, java.util.Map.class,
java.util.Map.class, String.class, boolean.class, boolean.class,
boolean.class, boolean.class, double.class, double.class,
double.class, double.class, double.class, long.class, boolean.class,
boolean.class, String.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, String.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy