public class CommerceCurrencyServiceUtil
extends java.lang.Object
com.liferay.commerce.currency.service.impl.CommerceCurrencyServiceImpl
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.CommerceCurrencyService
Constructor and Description |
---|
CommerceCurrencyServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceCurrency |
addCommerceCurrency(java.lang.String code,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.lang.String symbol,
java.math.BigDecimal rate,
java.util.Map<java.util.Locale,java.lang.String> formatPatternMap,
int maxFractionDigits,
int minFractionDigits,
java.lang.String roundingMode,
boolean primary,
double priority,
boolean active) |
static void |
deleteCommerceCurrency(long commerceCurrencyId) |
static CommerceCurrency |
fetchPrimaryCommerceCurrency(long companyId) |
static java.util.List<CommerceCurrency> |
getCommerceCurrencies(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) |
static java.util.List<CommerceCurrency> |
getCommerceCurrencies(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) |
static int |
getCommerceCurrenciesCount(long companyId) |
static int |
getCommerceCurrenciesCount(long companyId,
boolean active) |
static CommerceCurrency |
getCommerceCurrency(long commerceCurrencyId) |
static CommerceCurrency |
getCommerceCurrency(long companyId,
java.lang.String code) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceCurrencyService |
getService() |
static CommerceCurrency |
setActive(long commerceCurrencyId,
boolean active) |
static CommerceCurrency |
setPrimary(long commerceCurrencyId,
boolean primary) |
static CommerceCurrency |
updateCommerceCurrency(long commerceCurrencyId,
java.lang.String code,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.lang.String symbol,
java.math.BigDecimal rate,
java.util.Map<java.util.Locale,java.lang.String> formatPatternMap,
int maxFractionDigits,
int minFractionDigits,
java.lang.String roundingMode,
boolean primary,
double priority,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
updateExchangeRate(long commerceCurrencyId,
java.lang.String exchangeRateProviderKey) |
static void |
updateExchangeRates() |
public static CommerceCurrency addCommerceCurrency(java.lang.String code, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String symbol, java.math.BigDecimal rate, java.util.Map<java.util.Locale,java.lang.String> formatPatternMap, int maxFractionDigits, int minFractionDigits, java.lang.String roundingMode, boolean primary, double priority, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrency fetchPrimaryCommerceCurrency(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceCurrency> getCommerceCurrencies(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceCurrency> getCommerceCurrencies(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceCurrenciesCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceCurrenciesCount(long companyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrency getCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrency getCommerceCurrency(long companyId, java.lang.String code) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static CommerceCurrency setActive(long commerceCurrencyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrency setPrimary(long commerceCurrencyId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrency updateCommerceCurrency(long commerceCurrencyId, java.lang.String code, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.lang.String symbol, java.math.BigDecimal rate, java.util.Map<java.util.Locale,java.lang.String> formatPatternMap, int maxFractionDigits, int minFractionDigits, java.lang.String roundingMode, boolean primary, double priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateExchangeRate(long commerceCurrencyId, java.lang.String exchangeRateProviderKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateExchangeRates() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceCurrencyService getService()