public class

FileMetaData

extends GenericJson
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ com.google.api.client.util.GenericData
       ↳ com.google.api.client.json.GenericJson
         ↳ com.kinvey.java.model.FileMetaData

Class Overview

This class maintains information about a file that has been stored with Kinvey. Every file has a unique ID, as well as other attributes including but not limited too: filename, size, mimetype, acl, and a public access flag. This object can also maintain any custom attributes, which can be set via accessor methods provided by GenericJson

Summary

Public Constructors
FileMetaData()
Create a new instance, without setting any fields If an ID is not set, it will be auto-generated by the service
FileMetaData(String id)
Create a new instance, and set the id of the file
Public Methods
KinveyMetaData.AccessControlList getAcl()
String getDownloadURL()
String getFileName()
String getId()
String getMimetype()
long getSize()
String getUploadUrl()
boolean isPublic()
void setAcl(KinveyMetaData.AccessControlList acl)
void setDownloadURL(String downloadURL)
void setFileName(String fileName)
void setId(String id)
void setMimetype(String mimetype)
void setPublic(boolean isPublic)
void setSize(long size)
void setUploadUrl(String uploadUrl)
[Expand]
Inherited Methods
From class com.google.api.client.json.GenericJson
From class com.google.api.client.util.GenericData
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Public Constructors

public FileMetaData ()

Create a new instance, without setting any fields If an ID is not set, it will be auto-generated by the service

public FileMetaData (String id)

Create a new instance, and set the id of the file

Parameters
id - the _id of the new file meta data

Public Methods

public String getDownloadURL ()

public String getFileName ()

public String getId ()

public String getMimetype ()

public long getSize ()

public String getUploadUrl ()

public boolean isPublic ()

public void setAcl (KinveyMetaData.AccessControlList acl)

public void setDownloadURL (String downloadURL)

public void setFileName (String fileName)

public void setId (String id)

public void setMimetype (String mimetype)

public void setPublic (boolean isPublic)

public void setSize (long size)

public void setUploadUrl (String uploadUrl)