Interface CommerceCurrencyService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseService
All Known Implementing Classes:
CommerceCurrencyServiceWrapper

@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface CommerceCurrencyService extends com.liferay.portal.kernel.service.BaseService
Provides the remote service interface for CommerceCurrency. 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:
  • Method Details

    • addCommerceCurrency

      CommerceCurrency addCommerceCurrency(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) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceCurrency

      void deleteCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceCurrencyByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceCurrency fetchCommerceCurrencyByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPrimaryCommerceCurrency

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceCurrency fetchPrimaryCommerceCurrency(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrencies

      @Transactional(propagation=SUPPORTS, readOnly=true) 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

      @Transactional(propagation=SUPPORTS, readOnly=true) 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

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceCurrenciesCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrenciesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceCurrenciesCount(long companyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceCurrency getCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceCurrency getCommerceCurrency(long companyId, String code) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • searchCommerceCurrencies

      @Transactional(propagation=SUPPORTS, readOnly=true) 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

      CommerceCurrency setActive(long commerceCurrencyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setPrimary

      CommerceCurrency setPrimary(long commerceCurrencyId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceCurrency

      CommerceCurrency updateCommerceCurrency(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) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExchangeRate

      void updateExchangeRate(long commerceCurrencyId, String exchangeRateProviderKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExchangeRates

      void updateExchangeRates() throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException