Class Attachment

java.lang.Object
org.gcube.portal.databook.shared.Attachment
All Implemented Interfaces:
Serializable

public class Attachment extends Object implements Serializable
See Also:
  • Constructor Details

    • Attachment

      public Attachment()
    • Attachment

      public Attachment(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
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getThumbnailURL

      public String getThumbnailURL()
    • setThumbnailURL

      public void setThumbnailURL(String thumbnailURL)
    • getMimeType

      public String getMimeType()
    • setMimeType

      public void setMimeType(String mimeType)
    • toString

      public String toString()
      Overrides:
      toString in class Object