com.liferay.commerce.product.service.http.CPDefinitionOptionValueRelServiceHttp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.product.service
Show all versions of com.liferay.commerce.product.service
Liferay Commerce Product Service
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.product.service.http;
import com.liferay.commerce.product.service.CPDefinitionOptionValueRelServiceUtil;
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
* CPDefinitionOptionValueRelServiceUtil
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 CPDefinitionOptionValueRelServiceHttp {
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
addCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId,
long cpInstanceId, String key,
java.util.Map nameMap,
boolean preselected, java.math.BigDecimal deltaPrice,
double priority, java.math.BigDecimal quantity,
String unitOfMeasureKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"addCPDefinitionOptionValueRel",
_addCPDefinitionOptionValueRelParameterTypes0);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId, cpInstanceId, key, nameMap,
preselected, deltaPrice, priority, quantity, unitOfMeasureKey,
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
addCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId,
String key, java.util.Map nameMap,
double priority,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"addCPDefinitionOptionValueRel",
_addCPDefinitionOptionValueRelParameterTypes1);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId, key, nameMap, priority,
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
deleteCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"deleteCPDefinitionOptionValueRel",
_deleteCPDefinitionOptionValueRelParameterTypes2);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
fetchCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"fetchCPDefinitionOptionValueRel",
_fetchCPDefinitionOptionValueRelParameterTypes3);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
fetchCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId,
String key)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"fetchCPDefinitionOptionValueRel",
_fetchCPDefinitionOptionValueRelParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId, key);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
getCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"getCPDefinitionOptionValueRel",
_getCPDefinitionOptionValueRelParameterTypes5);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCPDefinitionOptionValueRels(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId,
int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"getCPDefinitionOptionValueRels",
_getCPDefinitionOptionValueRelsParameterTypes6);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId, start, end);
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 java.util.List
getCPDefinitionOptionValueRels(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"getCPDefinitionOptionValueRels",
_getCPDefinitionOptionValueRelsParameterTypes7);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId, 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 java.util.List
getCPDefinitionOptionValueRels(
HttpPrincipal httpPrincipal, long groupId, String key,
int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"getCPDefinitionOptionValueRels",
_getCPDefinitionOptionValueRelsParameterTypes8);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, key, start, end);
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 getCPDefinitionOptionValueRelsCount(
HttpPrincipal httpPrincipal, long cpDefinitionOptionRelId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"getCPDefinitionOptionValueRelsCount",
_getCPDefinitionOptionValueRelsCountParameterTypes9);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionRelId);
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.CPDefinitionOptionValueRel
resetCPInstanceCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"resetCPInstanceCPDefinitionOptionValueRel",
_resetCPInstanceCPDefinitionOptionValueRelParameterTypes10);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.portal.kernel.search.BaseModelSearchResult
searchCPDefinitionOptionValueRels(
HttpPrincipal httpPrincipal, long companyId, long groupId,
long cpDefinitionOptionRelId, String keywords, int start,
int end, com.liferay.portal.kernel.search.Sort[] sorts)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"searchCPDefinitionOptionValueRels",
_searchCPDefinitionOptionValueRelsParameterTypes11);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, cpDefinitionOptionRelId,
keywords, start, end, sorts);
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 int searchCPDefinitionOptionValueRelsCount(
HttpPrincipal httpPrincipal, long companyId, long groupId,
long cpDefinitionOptionRelId, String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"searchCPDefinitionOptionValueRelsCount",
_searchCPDefinitionOptionValueRelsCountParameterTypes12);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, cpDefinitionOptionRelId,
keywords);
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.CPDefinitionOptionValueRel
updateCPDefinitionOptionValueRel(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId,
long cpInstanceId, String key,
java.util.Map nameMap,
boolean preselected, java.math.BigDecimal price,
double priority, java.math.BigDecimal quantity,
String unitOfMeasureKey,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"updateCPDefinitionOptionValueRel",
_updateCPDefinitionOptionValueRelParameterTypes13);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId, cpInstanceId, key,
nameMap, preselected, price, priority, quantity,
unitOfMeasureKey, 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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.product.model.CPDefinitionOptionValueRel
updateCPDefinitionOptionValueRelPreselected(
HttpPrincipal httpPrincipal, long cpDefinitionOptionValueRelId,
boolean preselected)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CPDefinitionOptionValueRelServiceUtil.class,
"updateCPDefinitionOptionValueRelPreselected",
_updateCPDefinitionOptionValueRelPreselectedParameterTypes14);
MethodHandler methodHandler = new MethodHandler(
methodKey, cpDefinitionOptionValueRelId, preselected);
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.
CPDefinitionOptionValueRel)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
private static Log _log = LogFactoryUtil.getLog(
CPDefinitionOptionValueRelServiceHttp.class);
private static final Class>[]
_addCPDefinitionOptionValueRelParameterTypes0 = new Class[] {
long.class, long.class, String.class, java.util.Map.class,
boolean.class, java.math.BigDecimal.class, double.class,
java.math.BigDecimal.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[]
_addCPDefinitionOptionValueRelParameterTypes1 = new Class[] {
long.class, String.class, java.util.Map.class, double.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[]
_deleteCPDefinitionOptionValueRelParameterTypes2 = new Class[] {
long.class
};
private static final Class>[]
_fetchCPDefinitionOptionValueRelParameterTypes3 = new Class[] {
long.class
};
private static final Class>[]
_fetchCPDefinitionOptionValueRelParameterTypes4 = new Class[] {
long.class, String.class
};
private static final Class>[]
_getCPDefinitionOptionValueRelParameterTypes5 = new Class[] {
long.class
};
private static final Class>[]
_getCPDefinitionOptionValueRelsParameterTypes6 = new Class[] {
long.class, int.class, int.class
};
private static final Class>[]
_getCPDefinitionOptionValueRelsParameterTypes7 = new Class[] {
long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[]
_getCPDefinitionOptionValueRelsParameterTypes8 = new Class[] {
long.class, String.class, int.class, int.class
};
private static final Class>[]
_getCPDefinitionOptionValueRelsCountParameterTypes9 = new Class[] {
long.class
};
private static final Class>[]
_resetCPInstanceCPDefinitionOptionValueRelParameterTypes10 =
new Class[] {long.class};
private static final Class>[]
_searchCPDefinitionOptionValueRelsParameterTypes11 = new Class[] {
long.class, long.class, long.class, String.class, int.class,
int.class, com.liferay.portal.kernel.search.Sort[].class
};
private static final Class>[]
_searchCPDefinitionOptionValueRelsCountParameterTypes12 = new Class[] {
long.class, long.class, long.class, String.class
};
private static final Class>[]
_updateCPDefinitionOptionValueRelParameterTypes13 = new Class[] {
long.class, long.class, String.class, java.util.Map.class,
boolean.class, java.math.BigDecimal.class, double.class,
java.math.BigDecimal.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[]
_updateCPDefinitionOptionValueRelPreselectedParameterTypes14 =
new Class[] {long.class, boolean.class};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy