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

com.liferay.commerce.service.CPDefinitionInventoryServiceUtil Maven / Gradle / Ivy

There is a newer version: 91.0.0
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.service;

import com.liferay.commerce.model.CPDefinitionInventory;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.module.service.Snapshot;

/**
 * Provides the remote service utility for CPDefinitionInventory. This utility wraps
 * com.liferay.commerce.service.impl.CPDefinitionInventoryServiceImpl and is an
 * access point for service operations in application layer code running on a
 * remote server. Methods of this service are expected to have security checks
 * based on the propagated JAAS credentials because this service can be
 * accessed remotely.
 *
 * @author Alessio Antonio Rendina
 * @see CPDefinitionInventoryService
 * @generated
 */
public class CPDefinitionInventoryServiceUtil {

	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Add custom service methods to com.liferay.commerce.service.impl.CPDefinitionInventoryServiceImpl and rerun ServiceBuilder to regenerate this class.
	 */
	public static CPDefinitionInventory addCPDefinitionInventory(
			long cpDefinitionId, String cpDefinitionInventoryEngine,
			String lowStockActivity, boolean displayAvailability,
			boolean displayStockQuantity, java.math.BigDecimal minStockQuantity,
			boolean backOrders, java.math.BigDecimal minOrderQuantity,
			java.math.BigDecimal maxOrderQuantity,
			String allowedOrderQuantities,
			java.math.BigDecimal multipleOrderQuantity)
		throws PortalException {

		return getService().addCPDefinitionInventory(
			cpDefinitionId, cpDefinitionInventoryEngine, lowStockActivity,
			displayAvailability, displayStockQuantity, minStockQuantity,
			backOrders, minOrderQuantity, maxOrderQuantity,
			allowedOrderQuantities, multipleOrderQuantity);
	}

	public static void deleteCPDefinitionInventory(long cpDefinitionInventoryId)
		throws PortalException {

		getService().deleteCPDefinitionInventory(cpDefinitionInventoryId);
	}

	public static CPDefinitionInventory
			fetchCPDefinitionInventoryByCPDefinitionId(long cpDefinitionId)
		throws PortalException {

		return getService().fetchCPDefinitionInventoryByCPDefinitionId(
			cpDefinitionId);
	}

	/**
	 * Returns the OSGi service identifier.
	 *
	 * @return the OSGi service identifier
	 */
	public static String getOSGiServiceIdentifier() {
		return getService().getOSGiServiceIdentifier();
	}

	public static CPDefinitionInventory updateCPDefinitionInventory(
			long cpDefinitionInventoryId, String cpDefinitionInventoryEngine,
			String lowStockActivity, boolean displayAvailability,
			boolean displayStockQuantity, java.math.BigDecimal minStockQuantity,
			boolean backOrders, java.math.BigDecimal minOrderQuantity,
			java.math.BigDecimal maxOrderQuantity,
			String allowedOrderQuantities,
			java.math.BigDecimal multipleOrderQuantity)
		throws PortalException {

		return getService().updateCPDefinitionInventory(
			cpDefinitionInventoryId, cpDefinitionInventoryEngine,
			lowStockActivity, displayAvailability, displayStockQuantity,
			minStockQuantity, backOrders, minOrderQuantity, maxOrderQuantity,
			allowedOrderQuantities, multipleOrderQuantity);
	}

	public static CPDefinitionInventoryService getService() {
		return _serviceSnapshot.get();
	}

	private static final Snapshot
		_serviceSnapshot = new Snapshot<>(
			CPDefinitionInventoryServiceUtil.class,
			CPDefinitionInventoryService.class);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy