public abstract class BoxItem extends BoxEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxItem.Permission
Enumerates the possible permissions that a user can have on a file.
|
BoxEntity.BoxEntityCreatorBoxJsonObject.BoxJsonObjectCreator<E extends BoxJsonObject>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_ALLOWED_SHARED_LINK_ACCESS_LEVELS |
static java.lang.String |
FIELD_COLLECTIONS |
static java.lang.String |
FIELD_CREATED_AT |
static java.lang.String |
FIELD_CREATED_BY |
static java.lang.String |
FIELD_DESCRIPTION |
static java.lang.String |
FIELD_ETAG |
static java.lang.String |
FIELD_ITEM_STATUS |
static java.lang.String |
FIELD_MODIFIED_AT |
static java.lang.String |
FIELD_MODIFIED_BY |
static java.lang.String |
FIELD_NAME |
static java.lang.String |
FIELD_OWNED_BY |
static java.lang.String |
FIELD_PARENT |
static java.lang.String |
FIELD_PATH_COLLECTION |
static java.lang.String |
FIELD_PERMISSIONS |
static java.lang.String |
FIELD_PURGED_AT |
static java.lang.String |
FIELD_SEQUENCE_ID |
static java.lang.String |
FIELD_SHARED_LINK |
static java.lang.String |
FIELD_SYNCED |
static java.lang.String |
FIELD_TAGS |
static java.lang.String |
FIELD_TRASHED_AT |
protected java.util.EnumSet<BoxItem.Permission> |
mPermissions |
FIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPE| Constructor and Description |
|---|
BoxItem()
Constructs an empty BoxItem object.
|
BoxItem(com.eclipsesource.json.JsonObject object)
Constructs a BoxItem with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxItem |
createBoxItemFromJson(com.eclipsesource.json.JsonObject json)
Deprecated.
|
static BoxItem |
createBoxItemFromJson(java.lang.String json)
Deprecated.
|
java.util.ArrayList<BoxSharedLink.Access> |
getAllowedSharedLinkAccessLevels()
Access level settings for shared links set by administrator.
|
java.util.List<BoxCollection> |
getCollections()
Gets the collections that this item is a part of
|
protected java.lang.Long |
getCommentCount()
Gets the number of comments on the item.
|
protected java.util.Date |
getContentCreatedAt()
Gets the time that the item was created according to the uploader.
|
protected java.util.Date |
getContentModifiedAt()
Gets the time that the item was last modified according to the uploader.
|
java.util.Date |
getCreatedAt()
Gets the time the item was created.
|
BoxUser |
getCreatedBy()
Gets info about the user who created the item.
|
java.lang.String |
getDescription()
Gets the description of the item.
|
java.lang.String |
getEtag()
Gets a unique string identifying the version of the item.
|
java.lang.Boolean |
getIsSynced()
Gets whether or not this item is synced.
|
java.lang.String |
getItemStatus()
Gets the status of the item.
|
java.util.Date |
getModifiedAt()
Gets the time the item was last modified.
|
BoxUser |
getModifiedBy()
Gets info about the user who last modified the item.
|
java.lang.String |
getName()
Gets the name of the item.
|
BoxUser |
getOwnedBy()
Gets info about the user who owns the item.
|
BoxFolder |
getParent()
Gets info about the parent folder of the item.
|
BoxIterator<BoxFolder> |
getPathCollection()
Gets the path of folders to the item, starting at the root.
|
java.util.EnumSet<BoxItem.Permission> |
getPermissions()
Gets the permissions that the current user has on the bookmark.
|
java.util.Date |
getPurgedAt()
Gets the time that the item was purged from the trash.
|
java.lang.String |
getSequenceID()
Gets a unique ID for use with the EventStreams.
|
BoxSharedLink |
getSharedLink()
Gets the shared link for the item.
|
java.lang.Long |
getSize()
Gets the size of the item in bytes.
|
java.util.List<java.lang.String> |
getTags()
Gets the array of tags for this item
|
java.util.Date |
getTrashedAt()
Gets the time that the item was trashed.
|
protected java.util.EnumSet<BoxItem.Permission> |
parsePermissions() |
addEntityType, 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 FIELD_NAME
public static final java.lang.String FIELD_SEQUENCE_ID
public static final java.lang.String FIELD_ETAG
public static final java.lang.String FIELD_CREATED_AT
public static final java.lang.String FIELD_MODIFIED_AT
public static final java.lang.String FIELD_DESCRIPTION
public static final java.lang.String FIELD_PATH_COLLECTION
public static final java.lang.String FIELD_CREATED_BY
public static final java.lang.String FIELD_MODIFIED_BY
public static final java.lang.String FIELD_TRASHED_AT
public static final java.lang.String FIELD_PURGED_AT
public static final java.lang.String FIELD_OWNED_BY
public static final java.lang.String FIELD_SHARED_LINK
public static final java.lang.String FIELD_PARENT
public static final java.lang.String FIELD_ITEM_STATUS
public static final java.lang.String FIELD_PERMISSIONS
public static final java.lang.String FIELD_SYNCED
public static final java.lang.String FIELD_ALLOWED_SHARED_LINK_ACCESS_LEVELS
public static final java.lang.String FIELD_TAGS
public static final java.lang.String FIELD_COLLECTIONS
protected transient java.util.EnumSet<BoxItem.Permission> mPermissions
public BoxItem()
public BoxItem(com.eclipsesource.json.JsonObject object)
object - JsonObject representing this classpublic java.lang.String getEtag()
public java.lang.String getName()
public java.util.Date getCreatedAt()
public java.util.Date getModifiedAt()
public java.lang.String getDescription()
public java.lang.Long getSize()
public BoxIterator<BoxFolder> getPathCollection()
public BoxUser getCreatedBy()
public BoxUser getModifiedBy()
public java.util.Date getTrashedAt()
public java.util.Date getPurgedAt()
protected java.util.Date getContentCreatedAt()
protected java.util.Date getContentModifiedAt()
public BoxUser getOwnedBy()
public BoxSharedLink getSharedLink()
public java.lang.String getSequenceID()
public java.util.ArrayList<BoxSharedLink.Access> getAllowedSharedLinkAccessLevels()
public BoxFolder getParent()
public java.lang.String getItemStatus()
public java.lang.Boolean getIsSynced()
public java.util.List<java.lang.String> getTags()
public java.util.List<BoxCollection> getCollections()
protected java.lang.Long getCommentCount()
@Deprecated public static BoxItem createBoxItemFromJson(java.lang.String json)
json - JSON string to convert to a BoxItem.@Deprecated public static BoxItem createBoxItemFromJson(com.eclipsesource.json.JsonObject json)
json - JsonObject to convert to a BoxItem.public java.util.EnumSet<BoxItem.Permission> getPermissions()
protected java.util.EnumSet<BoxItem.Permission> parsePermissions()