Class CommerceCurrencyServiceWrapper

java.lang.Object
com.liferay.commerce.currency.service.CommerceCurrencyServiceWrapper
All Implemented Interfaces:
CommerceCurrencyService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceCurrencyService>

public class CommerceCurrencyServiceWrapper extends Object implements CommerceCurrencyService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceCurrencyService>
Provides a wrapper for CommerceCurrencyService.
See Also:
Generated:
  • Constructor Details

    • CommerceCurrencyServiceWrapper

      public CommerceCurrencyServiceWrapper()
    • CommerceCurrencyServiceWrapper

      public CommerceCurrencyServiceWrapper(CommerceCurrencyService commerceCurrencyService)
  • Method Details

    • addCommerceCurrency

      public 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
      Specified by:
      addCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceCurrency

      public void deleteCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceCurrencyByExternalReferenceCode

      public CommerceCurrency fetchCommerceCurrencyByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchCommerceCurrencyByExternalReferenceCode in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPrimaryCommerceCurrency

      public CommerceCurrency fetchPrimaryCommerceCurrency(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchPrimaryCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrencies

      public 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
      Specified by:
      getCommerceCurrencies in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrencies

      public List<CommerceCurrency> getCommerceCurrencies(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceCurrency> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrencies in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrenciesCount

      public int getCommerceCurrenciesCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrenciesCount in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrenciesCount

      public int getCommerceCurrenciesCount(long companyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrenciesCount in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      public CommerceCurrency getCommerceCurrency(long commerceCurrencyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceCurrency

      public CommerceCurrency getCommerceCurrency(long companyId, String code) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceCurrencyService
      Returns:
      the OSGi service identifier
    • searchCommerceCurrencies

      public 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
      Specified by:
      searchCommerceCurrencies in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setActive

      public CommerceCurrency setActive(long commerceCurrencyId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setActive in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setPrimary

      public CommerceCurrency setPrimary(long commerceCurrencyId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setPrimary in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceCurrency

      public 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
      Specified by:
      updateCommerceCurrency in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExchangeRate

      public void updateExchangeRate(long commerceCurrencyId, String exchangeRateProviderKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExchangeRate in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExchangeRates

      public void updateExchangeRates() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateExchangeRates in interface CommerceCurrencyService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWrappedService

      public CommerceCurrencyService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceCurrencyService>
    • setWrappedService

      public void setWrappedService(CommerceCurrencyService commerceCurrencyService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceCurrencyService>