Package org.gcube.portal.databook.shared
Class Attachment
- java.lang.Object
-
- org.gcube.portal.databook.shared.Attachment
-
- All Implemented Interfaces:
Serializable
public class Attachment extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAttachment.AttachmentJsonizer
-
Constructor Summary
Constructors Constructor Description Attachment()Attachment(String id, String uri, String name, String description, String thumbnailURL, String mimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetId()StringgetMimeType()StringgetName()StringgetThumbnailURL()StringgetUri()voidsetDescription(String description)voidsetId(String id)voidsetMimeType(String mimeType)voidsetName(String name)voidsetThumbnailURL(String thumbnailURL)voidsetUri(String uri)StringtoString()
-
-
-
Constructor Detail
-
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 CFuri- where you can download the file fromname- the name of the attached filedescription- the description of the attached filethumbnailURL- the URL of the image representing the attached filemimeType- the type of file
-
-
Method Detail
-
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)
-
-