public class BoxApiBookmark extends BoxApi
mBaseUploadUri, mBaseUri, mSession| Constructor and Description |
|---|
BoxApiBookmark(BoxSession session)
Constructs a BoxApiBookmark with the provided BoxSession
|
| Modifier and Type | Method and Description |
|---|---|
BoxRequestsBookmark.AddCommentToBookmark |
getAddCommentRequest(java.lang.String bookmarkId,
java.lang.String message)
Gets a request that adds a comment to a bookmark
|
BoxRequestsBookmark.AddBookmarkToCollection |
getAddToCollectionRequest(java.lang.String bookmarkId,
java.lang.String collectionId)
Gets a request that adds a bookmark to a collection
|
protected java.lang.String |
getBookmarkCommentsUrl(java.lang.String id)
Gets the URL for comments on a bookmark
|
protected java.lang.String |
getBookmarkCopyUrl(java.lang.String id)
Gets the URL for copying a bookmark
|
protected java.lang.String |
getBookmarkInfoUrl(java.lang.String id)
Gets the URL for bookmark information
|
protected java.lang.String |
getBookmarksUrl()
Gets the URL for bookmarks
|
BoxRequestsBookmark.GetBookmarkComments |
getCommentsRequest(java.lang.String id)
Gets a request that retrieves the comments on a bookmark
|
protected java.lang.String |
getCommentUrl()
Gets the URL for posting a comment on a bookmark
|
BoxRequestsBookmark.CopyBookmark |
getCopyRequest(java.lang.String id,
java.lang.String parentId)
Gets a request that copies a bookmark
|
BoxRequestsBookmark.CreateBookmark |
getCreateRequest(java.lang.String parentId,
java.lang.String url)
Gets a request that creates a bookmark in a parent bookmark
|
BoxRequestsBookmark.UpdateSharedBookmark |
getCreateSharedLinkRequest(java.lang.String id)
Gets a request that creates a shared link for a bookmark
|
BoxRequestsBookmark.DeleteBookmarkFromCollection |
getDeleteFromCollectionRequest(java.lang.String id)
Gets a request that removes a bookmark from a collection
|
BoxRequestsBookmark.DeleteBookmark |
getDeleteRequest(java.lang.String id)
Gets a request that deletes a bookmark
|
BoxRequestsBookmark.DeleteTrashedBookmark |
getDeleteTrashedBookmarkRequest(java.lang.String id)
Gets a request that permanently deletes a bookmark from the trash
|
BoxRequestsBookmark.UpdateBookmark |
getDisableSharedLinkRequest(java.lang.String id)
Gets a request that disables a shared link for a bookmark
|
BoxRequestsBookmark.GetBookmarkInfo |
getInfoRequest(java.lang.String id)
Gets a request that retrieves information on a bookmark
|
BoxRequestsBookmark.UpdateBookmark |
getMoveRequest(java.lang.String id,
java.lang.String parentId)
Gets a request that moves a bookmark to another folder
|
BoxRequestsBookmark.UpdateBookmark |
getRenameRequest(java.lang.String id,
java.lang.String newName)
Gets a request that renames a bookmark
|
BoxRequestsBookmark.RestoreTrashedBookmark |
getRestoreTrashedBookmarkRequest(java.lang.String id)
Gets a request that restores a trashed bookmark
|
BoxRequestsBookmark.GetTrashedBookmark |
getTrashedBookmarkRequest(java.lang.String id)
Gets a request that returns a bookmark in the trash
|
protected java.lang.String |
getTrashedBookmarkUrl(java.lang.String id)
Gets the URL for a trashed bookmark
|
BoxRequestsBookmark.UpdateBookmark |
getUpdateRequest(java.lang.String id)
Gets a request that updates a bookmark's information
|
getBaseUploadUri, getBaseUripublic BoxApiBookmark(BoxSession session)
session - authenticated session to use with the BoxApiBookmarkprotected java.lang.String getBookmarksUrl()
protected java.lang.String getBookmarkInfoUrl(java.lang.String id)
id - id of the bookmarkprotected java.lang.String getBookmarkCopyUrl(java.lang.String id)
id - id of the bookmarkprotected java.lang.String getTrashedBookmarkUrl(java.lang.String id)
id - id of the bookmarkprotected java.lang.String getBookmarkCommentsUrl(java.lang.String id)
id - id of the bookmarkprotected java.lang.String getCommentUrl()
public BoxRequestsBookmark.GetBookmarkInfo getInfoRequest(java.lang.String id)
id - id of bookmark to retrieve info onpublic BoxRequestsBookmark.CreateBookmark getCreateRequest(java.lang.String parentId, java.lang.String url)
parentId - id of the parent bookmark to create the bookmark inurl - URL of the new bookmarkpublic BoxRequestsBookmark.UpdateBookmark getUpdateRequest(java.lang.String id)
id - id of bookmark to update information onpublic BoxRequestsBookmark.CopyBookmark getCopyRequest(java.lang.String id, java.lang.String parentId)
id - id of the bookmark to copyparentId - id of the parent folder to copy the bookmark intopublic BoxRequestsBookmark.UpdateBookmark getRenameRequest(java.lang.String id, java.lang.String newName)
id - id of bookmark to renamenewName - id of bookmark to retrieve info onpublic BoxRequestsBookmark.UpdateBookmark getMoveRequest(java.lang.String id, java.lang.String parentId)
id - id of bookmark to moveparentId - id of parent folder to move bookmark intopublic BoxRequestsBookmark.DeleteBookmark getDeleteRequest(java.lang.String id)
id - id of bookmark to deletepublic BoxRequestsBookmark.UpdateSharedBookmark getCreateSharedLinkRequest(java.lang.String id)
id - id of bookmark to create shared link forpublic BoxRequestsBookmark.UpdateBookmark getDisableSharedLinkRequest(java.lang.String id)
id - id of bookmark to disable a shared link forpublic BoxRequestsBookmark.AddCommentToBookmark getAddCommentRequest(java.lang.String bookmarkId, java.lang.String message)
bookmarkId - id of the bookmark to add the comment tomessage - message for the comment that will be addedpublic BoxRequestsBookmark.GetTrashedBookmark getTrashedBookmarkRequest(java.lang.String id)
id - id of bookmark to get in the trashpublic BoxRequestsBookmark.DeleteTrashedBookmark getDeleteTrashedBookmarkRequest(java.lang.String id)
id - id of bookmark to delete from the trashpublic BoxRequestsBookmark.RestoreTrashedBookmark getRestoreTrashedBookmarkRequest(java.lang.String id)
id - id of bookmark to restorepublic BoxRequestsBookmark.GetBookmarkComments getCommentsRequest(java.lang.String id)
id - id of the bookmark to retrieve comments forpublic BoxRequestsBookmark.AddBookmarkToCollection getAddToCollectionRequest(java.lang.String bookmarkId, java.lang.String collectionId)
bookmarkId - id of bookmark to add to collectioncollectionId - id of collection to add the bookmark topublic BoxRequestsBookmark.DeleteBookmarkFromCollection getDeleteFromCollectionRequest(java.lang.String id)
id - id of bookmark to delete from the collection