public class BoxFile.Info extends BoxItem.Info
| Constructor and Description | 
|---|
| Info()Constructs an empty Info object. | 
| Info(JsonObject jsonObject)Constructs an Info object using an already parsed JSON object. | 
| Info(String json)Constructs an Info object by parsing information from a JSON string. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<String> | getAllowedInviteeRoles()Returns the allowed invitee roles for this file item. | 
| BoxClassification | getClassification()Gets the metadata classification type of this file. | 
| long | getCommentCount()Gets the number of comments on the file. | 
| Date | getDispositionAt()Returns the retention expiration timestamp for the given file. | 
| String | getExtension()Gets the extension suffix of the file, excluding the dot. | 
| Boolean | getHasCollaborations()Returns the indicator for whether this file item has collaborations. | 
| boolean | getIsAccessibleViaSharedLink()Returns the flag indicating whether the file is accessible via a shared link. | 
| boolean | getIsExternallyOwned()Returns the field for indicating whether a file is owned by a user outside the enterprise. | 
| boolean | getIsPackage()Gets whether or not the file is an OSX package. | 
| boolean | getIsWatermarked()Gets flag indicating whether this file is Watermarked. | 
| BoxLock | getLock()Gets the lock of the file. | 
| Metadata | getMetadata(String templateName,
           String scope)Gets the metadata on this file associated with a specified scope and template. | 
| EnumSet<BoxFile.Permission> | getPermissions()Gets the permissions that the current user has on the file. | 
| URL | getPreviewLink()Gets the current expiring preview link. | 
| List<Representation> | getRepresentations()Get file's representations. | 
| BoxFile | getResource()Gets the resource associated with this Info. | 
| String | getSha1()Gets the SHA1 hash of the file. | 
| String | getUploaderDisplayName()Returns user's name at the time of upload. | 
| BoxFileVersion | getVersion()Gets the current version details of the file. | 
| String | getVersionNumber()Gets the current version number of the file. | 
| protected void | parseJSONMember(JsonObject.Member member)Invoked with a JSON member whenever this object is updated or created from a JSON object. | 
| void | setDispositionAt(Date dispositionAt)Modifies the retention expiration timestamp for the given file. | 
getCollections, getContentCreatedAt, getContentModifiedAt, getCreatedAt, getCreatedBy, getDescription, getDownloadUrl, getEtag, getExpiresAt, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getSize, getTags, getTrashedAt, getType, removeSharedLink, setCollections, setDescription, setName, setSharedLink, setTagsgetIDclearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObjectpublic Info()
public Info(String json)
json - the JSON string to parse.public Info(JsonObject jsonObject)
jsonObject - the parsed JSON object.public BoxFile getResource()
BoxResource.InfogetResource in class BoxResource.Infopublic String getVersionNumber()
public long getCommentCount()
public EnumSet<BoxFile.Permission> getPermissions()
public String getExtension()
public boolean getIsPackage()
public BoxFileVersion getVersion()
public URL getPreviewLink()
public boolean getIsWatermarked()
public List<String> getAllowedInviteeRoles()
public Boolean getHasCollaborations()
public Metadata getMetadata(String templateName, String scope)
templateName - the metadata template type name.scope - the scope of the template (usually "global" or "enterprise").public boolean getIsExternallyOwned()
public List<Representation> getRepresentations()
public String getUploaderDisplayName()
public BoxClassification getClassification()
public Date getDispositionAt()
public void setDispositionAt(Date dispositionAt)
dispositionAt - Date representing expiration timestamppublic boolean getIsAccessibleViaSharedLink()
protected void parseJSONMember(JsonObject.Member member)
BoxJSONObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxItem.Infomember - the JSON member to be parsed.