Interface Attachment

All Superinterfaces:
com.novomind.ecom.common.api.attribute.Described, com.novomind.ecom.common.api.attribute.DisplayNamed, com.novomind.ecom.common.api.attribute.Named

public interface Attachment extends com.novomind.ecom.common.api.attribute.DisplayNamed, com.novomind.ecom.common.api.attribute.Described
An Attachment is a common facade for all types of attachments.
Since:
10.0.38
  • Method Summary

    Modifier and Type
    Method
    Description
    e.g.
    The scheme is used to identify the AttachmentDataSourceProvider and must be equal to the scheme of the AttachmentDataSourceProvider that provides the InputStream for this Attachment.
    long
     
    The UID must contain only the following characters: [a-z][A-Z][0-9].-_ The maximum number of characters is 255.
    long
     

    Methods inherited from interface com.novomind.ecom.common.api.attribute.Described

    getDescription

    Methods inherited from interface com.novomind.ecom.common.api.attribute.DisplayNamed

    getDisplayName

    Methods inherited from interface com.novomind.ecom.common.api.attribute.Named

    getName
  • Method Details

    • getScheme

      String getScheme()
      The scheme is used to identify the AttachmentDataSourceProvider and must be equal to the scheme of the AttachmentDataSourceProvider that provides the InputStream for this Attachment. Please refer to AttachmentDataSourceProvider.getScheme()
      Returns:
      The attachment's scheme
      Since:
      10.0.38
    • getUID

      String getUID()
      The UID must contain only the following characters: [a-z][A-Z][0-9].-_ The maximum number of characters is 255.
      Returns:
      The unique id of the attachment for the attachment's Scheme The UID and the Scheme together have to be globally unique.
      Since:
      10.0.38
    • getSize

      long getSize()
      Returns:
      The file size of the attachment as number of bytes
      Since:
      10.0.38
    • lastModified

      long lastModified()
      Returns:
      The time of the last modification of the attachment represented as number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT
      Since:
      10.0.38
    • getContentType

      String getContentType()
      e.g. "image/png", "text/plain".
      Returns:
      The content type of the attachment
      Since:
      10.0.38
      See Also: