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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      e.g.
      java.lang.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.
      long getSize()  
      java.lang.String getUID()
      The UID must contain only the following characters: [a-z][A-Z][0-9].-_ The maximum number of characters is 255.
      long lastModified()  
      • 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 Detail

      • getScheme

        java.lang.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

        java.lang.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