Class CPMeasurementUnitServiceWrapper

java.lang.Object
com.liferay.commerce.product.service.CPMeasurementUnitServiceWrapper
All Implemented Interfaces:
CPMeasurementUnitService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>

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

    • CPMeasurementUnitServiceWrapper

      public CPMeasurementUnitServiceWrapper()
    • CPMeasurementUnitServiceWrapper

      public CPMeasurementUnitServiceWrapper(CPMeasurementUnitService cpMeasurementUnitService)
  • Method Details

    • addCPMeasurementUnit

      public CPMeasurementUnit addCPMeasurementUnit(String externalReferenceCode, Map<Locale,String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPMeasurementUnit

      public void deleteCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnit

      public CPMeasurementUnit fetchCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnit

      public CPMeasurementUnit fetchCPMeasurementUnit(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnitByExternalReferenceCode

      public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchCPMeasurementUnitByExternalReferenceCode in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPrimaryCPMeasurementUnit

      public CPMeasurementUnit fetchPrimaryCPMeasurementUnit(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchPrimaryCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnit

      public CPMeasurementUnit getCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsCount

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

      public int getCPMeasurementUnitsCount(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnitsCount in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CPMeasurementUnitService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.service.ServiceWrapper<CPMeasurementUnitService>
      Returns:
      the OSGi service identifier
    • setPrimary

      public CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setPrimary in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPMeasurementUnit

      public CPMeasurementUnit updateCPMeasurementUnit(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale,String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPMeasurementUnit in interface CPMeasurementUnitService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWrappedService

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

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