Class CommercePriceModifierServiceUtil

java.lang.Object
com.liferay.commerce.pricing.service.CommercePriceModifierServiceUtil

public class CommercePriceModifierServiceUtil extends Object
Provides the remote service utility for CommercePriceModifier. This utility wraps com.liferay.commerce.pricing.service.impl.CommercePriceModifierServiceImpl 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

    • CommercePriceModifierServiceUtil

      public CommercePriceModifierServiceUtil()
  • Method Details

    • addCommercePriceModifier

      public static CommercePriceModifier addCommercePriceModifier(long groupId, String title, String target, long commercePriceListId, String modifierType, BigDecimal modifierAmount, double priority, boolean active, 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
    • addOrUpdateCommercePriceModifier

      public static CommercePriceModifier addOrUpdateCommercePriceModifier(String externalReferenceCode, long commercePriceModifierId, long groupId, String title, String target, long commercePriceListId, String modifierType, BigDecimal modifierAmount, double priority, boolean active, 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
    • deleteCommercePriceModifier

      public static CommercePriceModifier deleteCommercePriceModifier(long commercePriceModifierId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommercePriceModifier

      public static CommercePriceModifier fetchCommercePriceModifier(long commercePriceModifierId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommercePriceModifierByExternalReferenceCode

      public static CommercePriceModifier fetchCommercePriceModifierByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceModifier

      public static CommercePriceModifier getCommercePriceModifier(long commercePriceModifierId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceModifiers

      public static List<CommercePriceModifier> getCommercePriceModifiers(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifier> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceModifiers

      @Deprecated public static List<CommercePriceModifier> getCommercePriceModifiers(long companyId, String target) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePriceModifiersCount

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

      public static int getCommercePriceModifiersCount(long commercePriceListId) 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
    • searchCommercePriceModifiers

      @Deprecated public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePriceModifier> searchCommercePriceModifiers(long companyId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePriceModifier

      public static CommercePriceModifier updateCommercePriceModifier(long commercePriceModifierId, long groupId, String title, String target, long commercePriceListId, String modifierType, BigDecimal modifierAmount, double priority, boolean active, 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
    • getService

      public static CommercePriceModifierService getService()