Class CommerceOrderAttachmentServiceUtil

java.lang.Object
com.liferay.commerce.service.CommerceOrderAttachmentServiceUtil

public class CommerceOrderAttachmentServiceUtil extends Object
Provides the remote service utility for CommerceOrderAttachment. This utility wraps com.liferay.commerce.service.impl.CommerceOrderAttachmentServiceImpl 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

    • CommerceOrderAttachmentServiceUtil

      public CommerceOrderAttachmentServiceUtil()
  • Method Details

    • addCommerceOrderAttachment

      public static CommerceOrderAttachment addCommerceOrderAttachment(long commerceOrderId, double priority, boolean restricted, String title, String type, String fileName, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderAttachment

      public static void deleteCommerceOrderAttachment(long commerceOrderAttachmentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceOrderAttachment

      public static CommerceOrderAttachment fetchCommerceOrderAttachment(long commerceOrderAttachmentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceOrderAttachmentByExternalReferenceCode

      public static CommerceOrderAttachment fetchCommerceOrderAttachmentByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachment

      public static CommerceOrderAttachment getCommerceOrderAttachment(long commerceOrderAttachmentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachments

      public static List<CommerceOrderAttachment> getCommerceOrderAttachments(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachments

      public static List<CommerceOrderAttachment> getCommerceOrderAttachments(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachmentsCount

      public static int getCommerceOrderAttachmentsCount(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachmentsCount

      public static int getCommerceOrderAttachmentsCount(long commerceOrderId, boolean restricted) 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
    • updateCommerceOrderAttachment

      public static CommerceOrderAttachment updateCommerceOrderAttachment(long commerceOrderAttachmentId, double priority, boolean restricted, String title, String type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CommerceOrderAttachmentService getService()