public class BoxFile extends BoxItem
BoxItem.PermissionBoxEntity.BoxEntityCreatorBoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
static java.lang.String |
FIELD_COMMENT_COUNT |
static java.lang.String |
FIELD_CONTENT_CREATED_AT |
static java.lang.String |
FIELD_CONTENT_MODIFIED_AT |
static java.lang.String |
FIELD_EXTENSION |
static java.lang.String |
FIELD_FILE_VERSION |
static java.lang.String |
FIELD_IS_PACKAGE |
static java.lang.String |
FIELD_REPRESENTATIONS |
static java.lang.String |
FIELD_SHA1 |
static java.lang.String |
FIELD_SIZE |
static java.lang.String |
FIELD_VERSION_NUMBER |
static java.lang.String |
TYPE |
FIELD_ALLOWED_SHARED_LINK_ACCESS_LEVELS, FIELD_COLLECTIONS, FIELD_CREATED_AT, FIELD_CREATED_BY, FIELD_DESCRIPTION, FIELD_ETAG, FIELD_ITEM_STATUS, FIELD_MODIFIED_AT, FIELD_MODIFIED_BY, FIELD_NAME, FIELD_OWNED_BY, FIELD_PARENT, FIELD_PATH_COLLECTION, FIELD_PERMISSIONS, FIELD_PURGED_AT, FIELD_SEQUENCE_ID, FIELD_SHARED_LINK, FIELD_SYNCED, FIELD_TAGS, FIELD_TRASHED_AT, mPermissionsFIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPE| Constructor and Description |
|---|
BoxFile()
Constructs an empty BoxFile object.
|
BoxFile(com.eclipsesource.json.JsonObject object)
Constructs a BoxFile with the provided map values
|
| Modifier and Type | Method and Description |
|---|---|
static BoxFile |
createFromId(java.lang.String fileId)
A convenience method to create an empty file with just the id and type fields set.
|
static BoxFile |
createFromIdAndName(java.lang.String fileId,
java.lang.String name)
A convenience method to create an empty file with just the id and type fields set.
|
java.lang.Long |
getCommentCount()
Gets the number of comments on the item.
|
java.util.Date |
getContentCreatedAt()
Gets the time that the item was created according to the uploader.
|
java.util.Date |
getContentModifiedAt()
Gets the time that the item was last modified according to the uploader.
|
java.lang.String |
getExtension()
Gets the extension suffix of the file, excluding the dot.
|
BoxFileVersion |
getFileVersion()
Gets the version information of the given file.
|
java.lang.Boolean |
getIsPackage()
Gets whether or not the file is an OSX package.
|
BoxIteratorRepresentations |
getRepresentations() |
java.lang.String |
getSha1()
Gets the SHA1 hash of the file.
|
java.lang.Long |
getSize()
Gets the size of the item in bytes.
|
java.lang.String |
getVersionNumber()
Gets the current version number of the file.
|
createBoxItemFromJson, createBoxItemFromJson, getAllowedSharedLinkAccessLevels, getCollections, getCreatedAt, getCreatedBy, getDescription, getEtag, getIsSynced, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPermissions, getPurgedAt, getSequenceID, getSharedLink, getTags, getTrashedAt, parsePermissionsaddEntityType, createEntityFromJson, createEntityFromJson, getBoxJsonObjectCreator, getId, getTypeaddInJsonArray, addInJsonArray, createFromJson, createFromJson, equals, getBoxJsonObjectCreator, getPropertiesKeySet, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsJsonArray, getPropertyAsJsonObject, getPropertyAsJsonObjectArray, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringHashSet, getPropertyValue, hashCode, parseJSONMember, remove, set, set, set, set, set, set, set, set, set, toJson, toJsonObjectpublic static final java.lang.String TYPE
public static final java.lang.String FIELD_SHA1
public static final java.lang.String FIELD_VERSION_NUMBER
public static final java.lang.String FIELD_EXTENSION
public static final java.lang.String FIELD_IS_PACKAGE
public static final java.lang.String FIELD_COMMENT_COUNT
public static final java.lang.String FIELD_SIZE
public static final java.lang.String FIELD_CONTENT_CREATED_AT
public static final java.lang.String FIELD_CONTENT_MODIFIED_AT
public static final java.lang.String FIELD_FILE_VERSION
public static final java.lang.String FIELD_REPRESENTATIONS
public static final java.lang.String[] ALL_FIELDS
public BoxFile()
public BoxFile(com.eclipsesource.json.JsonObject object)
object - JsonObject representing this classpublic static BoxFile createFromId(java.lang.String fileId)
fileId - the id of folder to createpublic static BoxFile createFromIdAndName(java.lang.String fileId, java.lang.String name)
fileId - the id of file to createname - the name of the file to createpublic BoxFileVersion getFileVersion()
public java.lang.String getSha1()
public java.lang.String getVersionNumber()
public java.lang.String getExtension()
public java.lang.Boolean getIsPackage()
public java.util.Date getContentCreatedAt()
BoxItemgetContentCreatedAt in class BoxItempublic java.lang.Long getSize()
BoxItempublic java.util.Date getContentModifiedAt()
BoxItemgetContentModifiedAt in class BoxItempublic java.lang.Long getCommentCount()
BoxItemgetCommentCount in class BoxItempublic BoxIteratorRepresentations getRepresentations()