Class IllustrativeAttachment

java.lang.Object
org.exoplatform.processes.model.IllustrativeAttachment

public class IllustrativeAttachment extends Object
  • Constructor Details

    • IllustrativeAttachment

      public IllustrativeAttachment(Long id)
    • IllustrativeAttachment

      public IllustrativeAttachment(Long id, String fileName, String mimeType, Long fileSize, Long lastUpdated)
    • IllustrativeAttachment

      public IllustrativeAttachment(Long id, String fileName, InputStream inputStream, String mimeType, Long fileSize, Long lastUpdated)
  • Method Details

    • isImageType

      public static boolean isImageType(String mimeType)
      Whether an illustration of this type may be stored and served as an image: one of the types the process form accepts, PNG, JPEG, GIF, WEBP or BMP, whatever its case or surrounding blanks.
      Parameters:
      mimeType - the illustration's type
      Returns:
      true for an image type the browser renders as an image only