public class BoxFolder extends BoxItem
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxFolder.Permission
Enumerates the possible permissions that a user can have on a folder.
|
static class |
BoxFolder.SyncState
Enumerates the possible sync states that a folder can have.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
static java.lang.String |
FIELD_ALLOWED_INVITEE_ROLES |
static java.lang.String |
FIELD_CAN_NON_OWNERS_INVITE |
static java.lang.String |
FIELD_CONTENT_CREATED_AT |
static java.lang.String |
FIELD_CONTENT_MODIFIED_AT |
static java.lang.String |
FIELD_FOLDER_UPLOAD_EMAIL |
static java.lang.String |
FIELD_HAS_COLLABORATIONS |
static java.lang.String |
FIELD_IS_EXTERNALLY_OWNED |
static java.lang.String |
FIELD_ITEM_COLLECTION |
static java.lang.String |
FIELD_SIZE |
static java.lang.String |
FIELD_SYNC_STATE |
static java.lang.String |
TYPE |
FIELD_ALLOWED_SHARED_LINK_ACCESS_LEVELS, 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_ATFIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPEmProperties| Constructor and Description |
|---|
BoxFolder()
Constructs an empty BoxFolder object.
|
BoxFolder(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxFolder with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxFolder |
createFromId(java.lang.String folderId)
A convenience method to create an empty folder with just the id and type fields set.
|
java.util.ArrayList<BoxCollaboration.Role> |
getAllowedInviteeRoles()
Folder collaboration settings allowed by the enterprise administrator.
|
java.util.ArrayList<BoxSharedLink.Access> |
getAllowedSharedLinkAccessLevels()
Access level settings for shared links set by administrator.
|
java.lang.Boolean |
getCanNonOwnersInvite()
Gets whether or not the non-owners can invite collaborators to the folder.
|
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.Boolean |
getHasCollaborations()
Gets whether or not the folder has any collaborations.
|
java.lang.Boolean |
getIsExternallyOwned()
Gets whether this folder is owned by a user outside of the enterprise.
|
BoxListItems |
getItemCollection()
Gets collection of mini file, folder, and bookmark objects contained in this folder.
|
java.util.EnumSet<BoxFolder.Permission> |
getPermissions()
Gets the permissions that the current user has on the folder.
|
java.lang.Long |
getSize()
Gets the size of the item in bytes.
|
BoxFolder.SyncState |
getSyncState()
Gets the sync state of the folder.
|
BoxUploadEmail |
getUploadEmail()
Gets the upload email for the folder.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
createBoxItemFromJson, createBoxItemFromJson, getCommentCount, getCreatedAt, getCreatedBy, getDescription, getEtag, getIsSynced, getItemStatus, getModifiedAt, getModifiedBy, getName, getOwnedBy, getParent, getPathCollection, getPurgedAt, getSequenceID, getSharedLink, getTrashedAt, parseJsonObjectcreateEntityFromJson, createEntityFromJson, getId, getTypecreateFromJson, createFromJson, getPropertiesAsHashMap, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String TYPE
public static final java.lang.String FIELD_FOLDER_UPLOAD_EMAIL
public static final java.lang.String FIELD_HAS_COLLABORATIONS
public static final java.lang.String FIELD_SYNC_STATE
public static final java.lang.String FIELD_CAN_NON_OWNERS_INVITE
public static final java.lang.String FIELD_ITEM_COLLECTION
public static final java.lang.String FIELD_IS_EXTERNALLY_OWNED
public static final java.lang.String FIELD_ALLOWED_INVITEE_ROLES
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[] ALL_FIELDS
public BoxFolder()
public BoxFolder(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the object.public static BoxFolder createFromId(java.lang.String folderId)
folderId - the id of folder to createpublic BoxUploadEmail getUploadEmail()
public java.lang.Boolean getHasCollaborations()
public BoxFolder.SyncState getSyncState()
public java.util.EnumSet<BoxFolder.Permission> getPermissions()
public java.lang.Boolean getCanNonOwnersInvite()
public BoxListItems getItemCollection()
public java.lang.Boolean getIsExternallyOwned()
public java.util.ArrayList<BoxSharedLink.Access> getAllowedSharedLinkAccessLevels()
getAllowedSharedLinkAccessLevels in class BoxItempublic java.util.ArrayList<BoxCollaboration.Role> getAllowedInviteeRoles()
public java.util.Date getContentCreatedAt()
BoxItemgetContentCreatedAt in class BoxItempublic java.lang.Long getSize()
BoxItempublic java.util.Date getContentModifiedAt()
BoxItemgetContentModifiedAt in class BoxItemprotected 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 BoxItemmember - the JSON member to be parsed.