Package org.gcube.portal.databook.shared
Class ClientAttachment
java.lang.Object
org.gcube.portal.databook.shared.ClientAttachment
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class ClientAttachment
extends Object
Represents an attachment for use in GWT/JavaScript interop scenarios.
Used to transfer attachment data between Java and JavaScript (frontend).
Fields are public for direct JS access. Use
create(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) to instantiate.- Author:
- Massimiliano Assante, ISTI-CNR
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientAttachmentcreate(String id, String uri, String name, String description, String thumbnailURL, String mimeType) Creates a new instance ofClientAttachment.
-
Field Details
-
id
-
uri
-
name
-
description
-
thumbnailURL
-
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) Creates a new instance ofClientAttachment.- Parameters:
id- the id in the Cassandra CF.uri- the URI where the file can be downloaded 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 MIME type of the file.- Returns:
- a new
ClientAttachmentinstance.
-