Class CommerceCurrencyServiceUtil
java.lang.Object
com.liferay.commerce.currency.service.CommerceCurrencyServiceUtil
Provides the remote service utility for CommerceCurrency. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommerceCurrencyaddCommerceCurrency(String externalReferenceCode, String code, Map<Locale, String> nameMap, String symbol, BigDecimal rate, Map<Locale, String> formatPatternMap, int maxFractionDigits, int minFractionDigits, String roundingMode, boolean primary, double priority, boolean active) static voiddeleteCommerceCurrency(long commerceCurrencyId) static CommerceCurrencyfetchCommerceCurrencyByExternalReferenceCode(String externalReferenceCode, long companyId) static CommerceCurrencyfetchPrimaryCommerceCurrency(long companyId) static List<CommerceCurrency>getCommerceCurrencies(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) static List<CommerceCurrency>getCommerceCurrencies(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) static intgetCommerceCurrenciesCount(long companyId) static intgetCommerceCurrenciesCount(long companyId, boolean active) static CommerceCurrencygetCommerceCurrency(long commerceCurrencyId) static CommerceCurrencygetCommerceCurrency(long companyId, String code) static StringReturns the OSGi service identifier.static CommerceCurrencyServicestatic com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceCurrency>searchCommerceCurrencies(long companyId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) static CommerceCurrencysetActive(long commerceCurrencyId, boolean active) static CommerceCurrencysetPrimary(long commerceCurrencyId, boolean primary) static CommerceCurrencyupdateCommerceCurrency(String externalReferenceCode, long commerceCurrencyId, Map<Locale, String> nameMap, String symbol, BigDecimal rate, Map<Locale, String> formatPatternMap, int maxFractionDigits, int minFractionDigits, String roundingMode, boolean primary, double priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidupdateExchangeRate(long commerceCurrencyId, String exchangeRateProviderKey) static void
-
Constructor Details
-
CommerceCurrencyServiceUtil
public CommerceCurrencyServiceUtil()
-
-
Method Details
-
addCommerceCurrency
public static CommerceCurrency addCommerceCurrency(String externalReferenceCode, String code, Map<Locale, String> nameMap, String symbol, BigDecimal rate, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> formatPatternMap, int maxFractionDigits, int minFractionDigits, String roundingMode, boolean primary, double priority, boolean active) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceCurrency
public static void deleteCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceCurrencyByExternalReferenceCode
public static CommerceCurrency fetchCommerceCurrencyByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchPrimaryCommerceCurrency
public static CommerceCurrency fetchPrimaryCommerceCurrency(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrencies
public static 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrencies
public static List<CommerceCurrency> getCommerceCurrencies(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrenciesCount
public static int getCommerceCurrenciesCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrenciesCount
public static int getCommerceCurrenciesCount(long companyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrency
public static CommerceCurrency getCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceCurrency
public static CommerceCurrency getCommerceCurrency(long companyId, String code) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
searchCommerceCurrencies
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceCurrency> searchCommerceCurrencies(long companyId, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
setActive
public static CommerceCurrency setActive(long commerceCurrencyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setPrimary
public static CommerceCurrency setPrimary(long commerceCurrencyId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceCurrency
public static CommerceCurrency updateCommerceCurrency(String externalReferenceCode, long commerceCurrencyId, Map<Locale, String> nameMap, String symbol, BigDecimal rate, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> formatPatternMap, int maxFractionDigits, int minFractionDigits, String roundingMode, boolean primary, double priority, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExchangeRate
public static void updateExchangeRate(long commerceCurrencyId, String exchangeRateProviderKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExchangeRates
public static void updateExchangeRates() throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-