public class BoxExpiringEmbedLinkFile extends BoxFile
BoxItem.PermissionBoxEntity.BoxEntityCreatorBoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_EMBED_LINK |
protected static java.lang.String |
FIELD_EMBED_LINK_CREATION_TIME |
ALL_FIELDS, FIELD_COMMENT_COUNT, FIELD_CONTENT_CREATED_AT, FIELD_CONTENT_MODIFIED_AT, FIELD_EXTENSION, FIELD_FILE_VERSION, FIELD_IS_PACKAGE, FIELD_REPRESENTATIONS, FIELD_SHA1, FIELD_SIZE, FIELD_VERSION_NUMBER, TYPEFIELD_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 |
|---|
BoxExpiringEmbedLinkFile()
Constructs an empty BoxExpiringEmbedLinkFile object.
|
BoxExpiringEmbedLinkFile(com.eclipsesource.json.JsonObject object)
Constructs a BoxExpiringEmbedLinkFile with the provided map values
|
| Modifier and Type | Method and Description |
|---|---|
void |
createFromJson(java.lang.String json)
Serializes a json blob into a BoxJsonObject.
|
BoxEmbedLink |
getEmbedLink()
Gets the expiring embed link of the file.
|
java.lang.Long |
getUrlCreationTime()
This is the System.currentTimeMillis from the device when the server response was first parsed.
|
boolean |
isEmbedLinkUrlExpired()
Convenience method to check if 60 seconds has passed since the time this link was created.
|
boolean |
isPreviewSessionExpired()
Convenience method to check if 60 minutes has passed since the time this link was created.
|
createFromId, createFromIdAndName, getCommentCount, getContentCreatedAt, getContentModifiedAt, getExtension, getFileVersion, getIsPackage, getRepresentations, getSha1, getSize, getVersionNumbercreateBoxItemFromJson, 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, 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 FIELD_EMBED_LINK
protected static final java.lang.String FIELD_EMBED_LINK_CREATION_TIME
public BoxExpiringEmbedLinkFile()
public BoxExpiringEmbedLinkFile(com.eclipsesource.json.JsonObject object)
object - JsonObject representing this classpublic void createFromJson(java.lang.String json)
BoxJsonObjectcreateFromJson in class BoxJsonObjectjson - json blob to deserialize.public BoxEmbedLink getEmbedLink()
public java.lang.Long getUrlCreationTime()
public boolean isEmbedLinkUrlExpired()
public boolean isPreviewSessionExpired()