public class BoxBookmark extends BoxItem
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxBookmark.Permission
Enumerates the possible permissions that a user can have on a bookmark.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
static java.lang.String |
FIELD_COMMENT_COUNT |
static java.lang.String |
FIELD_URL |
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_TRASHED_ATFIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPEmProperties| Constructor and Description |
|---|
BoxBookmark()
Constructs an empty BoxBookmark object.
|
BoxBookmark(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxBookmark with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
static BoxBookmark |
createFromId(java.lang.String bookmarkId)
A convenience method to create an empty bookmark with just the id and type fields set.
|
java.lang.Long |
getCommentCount()
Gets the number of comments on the item.
|
java.util.EnumSet<BoxBookmark.Permission> |
getPermissions()
Gets the permissions that the current user has on the bookmark.
|
java.lang.Long |
getSize()
This always returns null as size doesn't make sense for bookmarks.
|
java.lang.String |
getUrl()
Gets the URL of the bookmark.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
createBoxItemFromJson, createBoxItemFromJson, getAllowedSharedLinkAccessLevels, getContentCreatedAt, getContentModifiedAt, 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_URL
public static final java.lang.String FIELD_COMMENT_COUNT
public static final java.lang.String[] ALL_FIELDS
public BoxBookmark()
public BoxBookmark(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the object.public static BoxBookmark createFromId(java.lang.String bookmarkId)
bookmarkId - the id of folder to createpublic java.lang.String getUrl()
public java.lang.Long getCommentCount()
BoxItemgetCommentCount in class BoxItempublic java.lang.Long getSize()
public java.util.EnumSet<BoxBookmark.Permission> getPermissions()
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 BoxItemmember - the JSON member to be parsed.