Interface CPMeasurementUnitService

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

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

    • addCPMeasurementUnit

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPMeasurementUnit

      void deleteCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnit

      @Transactional(propagation=SUPPORTS, readOnly=true) CPMeasurementUnit fetchCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnitByExternalReferenceCode

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

      @Transactional(propagation=SUPPORTS, readOnly=true) CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchPrimaryCPMeasurementUnit

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

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

      @Transactional(propagation=SUPPORTS, readOnly=true) CPMeasurementUnit getCPMeasurementUnit(long cpMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitByKey

      @Transactional(propagation=SUPPORTS, readOnly=true) CPMeasurementUnit getCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CPMeasurementUnit> getCPMeasurementUnits(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      @Transactional(propagation=SUPPORTS, readOnly=true) 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
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsByType

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsByType

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsCount

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

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCPMeasurementUnitsCount(long companyId, int type) 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
    • setPrimary

      CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPMeasurementUnit

      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
      Throws:
      com.liferay.portal.kernel.exception.PortalException