Class ClientAttachment

java.lang.Object
org.gcube.portal.databook.shared.ClientAttachment

@JsType(isNative=true, namespace="<global>", name="Object") public class ClientAttachment extends Object
  • Field Details

    • id

      public String id
    • uri

      public String uri
    • name

      public String name
    • description

      public String description
    • thumbnailURL

      public String thumbnailURL
    • mimeType

      public String mimeType
  • Constructor Details

    • ClientAttachment

      public ClientAttachment()
  • Method Details

    • create

      @JsOverlay public static ClientAttachment create(String id, String uri, String name, String description, String thumbnailURL, String mimeType)
      Parameters:
      id - the id in the cassandra CF
      uri - where you can download the file from
      name - the name of the attached file
      description - the description of the attached file
      thumbnailURL - the URL of the image representing the attached file
      mimeType - the type of file