public class

Item

extends Object
implements Serializable
java.lang.Object
   ↳ org.mule.modules.dropbox.model.Item

Class Overview

Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com The software in this package is published under the terms of the CPAL v1.0 license, a copy of which has been included with this distribution in the LICENSE.md file.

Summary

Constants
long serialVersionUID
Fields
private Long bytes The file size in bytes.
private String clientMtime For files, this is the modification time set by the desktop client when the file was added to Dropbox, in the standard date format.
private List<Item> contents If the requested Item is a folder in Dropbox, return the folder's content
private String hash A folder's hash is useful for indicating changes to the folder's contents in later calls to /metadata.
private String icon The name of the icon used to illustrate the file type in Dropbox's icon library.
private Boolean isDeleted Whether the given entry is deleted (only included if deleted files are being returned).
private Boolean isDir Whether the given entry is a folder or not.
private String mimeType The file's mime type
private String modified The last time the file was modified on Dropbox, in the standard date format (not included for the root folder).
private String path Returns the canonical path to the file or directory.
private String rev A unique identifier for the current revision of a file.
private Long revision A deprecated field that semi-uniquely identifies a file.
private String root The root or top-level folder depending on your access level.
private String size A human-readable description of the file size (translated by locale).
private Boolean thumbExists True if the file is an image that can be converted to a thumbnail via the /thumbnails call.
Public Constructors
Item()
Public Methods
Long getBytes()
String getClientMtime()
List<Item> getContents()
Boolean getDeleted()
Boolean getDir()
String getHash()
String getIcon()
String getMimeType()
String getModified()
String getPath()
String getRev()
Long getRevision()
String getRoot()
String getSize()
Boolean getThumbExists()
void setBytes(Long bytes)
void setClientMtime(String clientMtime)
void setContents(List<Item> contents)
void setDeleted(Boolean deleted)
void setDir(Boolean dir)
void setHash(String hash)
void setIcon(String icon)
void setMimeType(String mimeType)
void setModified(String modified)
void setPath(String path)
void setRev(String rev)
void setRevision(Long revision)
void setRoot(String root)
void setSize(String size)
void setThumbExists(Boolean thumbExists)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: -1 (0xffffffffffffffff)

Fields

private Long bytes

The file size in bytes.

private String clientMtime

For files, this is the modification time set by the desktop client when the file was added to Dropbox, in the standard date format. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.

private List<Item> contents

If the requested Item is a folder in Dropbox, return the folder's content

private String hash

A folder's hash is useful for indicating changes to the folder's contents in later calls to /metadata. This is roughly the folder equivalent to a file's rev.

private String icon

The name of the icon used to illustrate the file type in Dropbox's icon library.

private Boolean isDeleted

Whether the given entry is deleted (only included if deleted files are being returned).

private Boolean isDir

Whether the given entry is a folder or not.

private String mimeType

The file's mime type

private String modified

The last time the file was modified on Dropbox, in the standard date format (not included for the root folder).

private String path

Returns the canonical path to the file or directory.

private String rev

A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.

private Long revision

A deprecated field that semi-uniquely identifies a file. Use rev instead.

private String root

The root or top-level folder depending on your access level. All paths returned are relative to this root level. Permitted values are either dropbox or app_folder.

private String size

A human-readable description of the file size (translated by locale).

private Boolean thumbExists

True if the file is an image that can be converted to a thumbnail via the /thumbnails call.

Public Constructors

public Item ()

Public Methods

public Long getBytes ()

public String getClientMtime ()

public List<Item> getContents ()

public Boolean getDeleted ()

public Boolean getDir ()

public String getHash ()

public String getIcon ()

public String getMimeType ()

public String getModified ()

public String getPath ()

public String getRev ()

public Long getRevision ()

public String getRoot ()

public String getSize ()

public Boolean getThumbExists ()

public void setBytes (Long bytes)

Parameters
bytes

public void setClientMtime (String clientMtime)

Parameters
clientMtime

public void setContents (List<Item> contents)

Parameters
contents

public void setDeleted (Boolean deleted)

Parameters
deleted

public void setDir (Boolean dir)

Parameters
dir

public void setHash (String hash)

Parameters
hash

public void setIcon (String icon)

Parameters
icon

public void setMimeType (String mimeType)

Parameters
mimeType

public void setModified (String modified)

Parameters
modified

public void setPath (String path)

Parameters
path

public void setRev (String rev)

Parameters
rev

public void setRevision (Long revision)

Parameters
revision

public void setRoot (String root)

Parameters
root

public void setSize (String size)

Parameters
size

public void setThumbExists (Boolean thumbExists)

Parameters
thumbExists