Class CommerceTierPriceEntryServiceUtil

java.lang.Object
com.liferay.commerce.price.list.service.CommerceTierPriceEntryServiceUtil

public class CommerceTierPriceEntryServiceUtil extends Object
Provides the remote service utility for CommerceTierPriceEntry. This utility wraps com.liferay.commerce.price.list.service.impl.CommerceTierPriceEntryServiceImpl 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 Details

    • CommerceTierPriceEntryServiceUtil

      public CommerceTierPriceEntryServiceUtil()
  • Method Details

    • addCommerceTierPriceEntry

      public static CommerceTierPriceEntry addCommerceTierPriceEntry(long commercePriceEntryId, BigDecimal price, BigDecimal promoPrice, BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceTierPriceEntry

      public static CommerceTierPriceEntry addCommerceTierPriceEntry(String externalReferenceCode, long commercePriceEntryId, BigDecimal price, BigDecimal promoPrice, BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceTierPriceEntry

      public static CommerceTierPriceEntry addCommerceTierPriceEntry(String externalReferenceCode, long commercePriceEntryId, BigDecimal price, BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommerceTierPriceEntry

      public static CommerceTierPriceEntry addOrUpdateCommerceTierPriceEntry(String externalReferenceCode, long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal price, BigDecimal promoPrice, BigDecimal minQuantity, String priceEntryExternalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommerceTierPriceEntry

      public static CommerceTierPriceEntry addOrUpdateCommerceTierPriceEntry(String externalReferenceCode, long commerceTierPriceEntryId, long commercePriceEntryId, BigDecimal price, BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, String priceEntryExternalReferenceCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceTierPriceEntry

      public static void deleteCommerceTierPriceEntry(long commerceTierPriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceTierPriceEntry

      public static CommerceTierPriceEntry fetchCommerceTierPriceEntry(long commerceTierPriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceTierPriceEntryByExternalReferenceCode

      public static CommerceTierPriceEntry fetchCommerceTierPriceEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTierPriceEntries

      public static List<CommerceTierPriceEntry> getCommerceTierPriceEntries(long commercePriceEntryId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTierPriceEntries

      public static List<CommerceTierPriceEntry> getCommerceTierPriceEntries(long commercePriceEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTierPriceEntry> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTierPriceEntriesCount

      public static int getCommerceTierPriceEntriesCount(long commercePriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTierPriceEntriesCountByCompanyId

      @Deprecated public static int getCommerceTierPriceEntriesCountByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTierPriceEntry

      public static CommerceTierPriceEntry getCommerceTierPriceEntry(long commerceTierPriceEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • searchCommerceTierPriceEntries

      public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTierPriceEntry> searchCommerceTierPriceEntries(long companyId, long commercePriceEntryId, String keywords, 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
    • searchCommerceTierPriceEntriesCount

      public static int searchCommerceTierPriceEntriesCount(long companyId, long commercePriceEntryId, String keywords) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceTierPriceEntry

      public static CommerceTierPriceEntry updateCommerceTierPriceEntry(long commerceTierPriceEntryId, BigDecimal price, BigDecimal promoPrice, BigDecimal minQuantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceTierPriceEntry

      public static CommerceTierPriceEntry updateCommerceTierPriceEntry(long commerceTierPriceEntryId, BigDecimal price, BigDecimal minQuantity, boolean bulkPricing, boolean discountDiscovery, BigDecimal discountLevel1, BigDecimal discountLevel2, BigDecimal discountLevel3, BigDecimal discountLevel4, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public static CommerceTierPriceEntry updateExternalReferenceCode(CommerceTierPriceEntry commerceTierPriceEntry, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CommerceTierPriceEntryService getService()