...
Endpoint Prefix collaborations
The For more information on Box collaborations see https://developers.box.com/docs/#collaborations. The following endpoints can be invoked with the prefix collaborations
as follows:
...
Name | Type |
---|---|
collabId | String |
collabRequest | com.box.boxjavalibv2.requests.requestobjects.BoxCollabRequestObject |
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
folderId | String |
getAllCollabsRequest | com.box.boxjavalibv2.requests.requestobjects.BoxGetAllCollabsRequestObject |
Endpoint Prefix events
For more information on Box events see https://developers.box.com/docs/#events. Although this endpoint can be used by producers, Box events are better used as a consumer endpoint using the poll-events endpoint prefix. The following endpoints can be invoked with the prefix events
as follows:
...
Name | Type |
---|---|
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
eventRequest | com.box.boxjavalibv2.requests.requestobjects.BoxEventRequestObject |
Endpoint Prefix groups
boxjavalibv2.requests.requestobjects.BoxEventRequestObject |
Endpoint Prefix groups
For more information on Box groups see https://developers.box.com/docs/#groups. The following endpoints can be invoked with the prefix groups
as follows:
...
Name | Type |
---|---|
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
groupId | String |
groupMembershipRequest | com.box.boxjavalibv2.requests.requestobjects.BoxGroupMembershipRequestObject |
groupRequest | com.box.boxjavalibv2.requests.requestobjects.BoxGroupRequestObject |
membershipId | String |
name | String |
role | String |
userId | String |
Endpoint Prefix search
The For more information on Box search API see https://developers.box.com/docs/#search. The following endpoints can be invoked with the prefix search
as follows:
...
Endpoint Prefix comments and shared-commentsshared-comments
For more information on Box comments see https://developers.box.com/docs/#comments. The following endpoints can be invoked with the prefix comments or shared-comments
as follows. The shared-comments prefix requires sharedLink and sharedPassword properties.
...
Endpoint Prefix files and shared-files
For more information on Box files see https://developers.box.com/docs/#files. The following endpoints can be invoked with the prefix files
or shared-files
as follows. The shared-files
prefix requires sharedLink and sharedPassword properties.
...
Name | Type |
---|---|
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
destination | java.io.File |
extension | String |
fileId | String |
fileRequest | com.box.boxjavalibv2.requests.requestobjects.BoxFileRequestObject |
fileUploadRequest | com.box.restclientv2.requestsbase.BoxFileUploadRequestObject |
imageRequest | com.box.boxjavalibv2.requests.requestobjects.BoxImageRequestObject |
itemCopyRequest | com.box.boxjavalibv2.requests.requestobjects.BoxItemCopyRequestObject |
listener | com.box.boxjavalibv2.filetransfer.IFileTransferListener |
outputStreams | java.io.OutputStream[] |
sharedLinkRequest | com.box.boxjavalibv2.requests.requestobjects.BoxSharedLinkRequestObject |
Endpoint Prefix folders and shared-folders
.requestobjects.BoxSharedLinkRequestObject |
Endpoint Prefix folders and shared-folders
For more information on Box folders see https://developers.box.com/docs/#folders. The following endpoints can be invoked with the prefix folders
or shared-folders
as follows. The prefix shared-folders requires sharedLink and sharedPassword properties.
...
Endpoint Prefix shared-items
For more information on Box shared items see https://developers.box.com/docs/#shared-items. The following endpoints can be invoked with the prefix shared-items
as follows:
Code Block |
---|
box://shared-items/endpoint?[options] |
...
URI Options for shared-items
...
Name | Type |
---|---|
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
Endpoint Prefix users
.requestsbase.BoxDefaultRequestObject |
Endpoint Prefix users
For information on Box users see https://developers.box.com/docs/#users. The following endpoints can be invoked with the prefix users
as follows:
Code Block |
---|
box://users/endpoint?[options] |
Endpoint | Shorthand Alias | Options | Result Body Type |
---|---|---|---|
addEmailAlias | emailAliasRequest, userId | com.box.boxjavalibv2.dao.BoxEmailAlias | |
createEnterpriseUser | create | userRequest | com.box.boxjavalibv2.dao.BoxUser |
deleteEmailAlias | defaultRequest, emailId, userId | ||
deleteEnterpriseUser | userDeleteRequest, userId | ||
getAllEnterpriseUser | allEnterpriseUser | defaultRequest, filterTerm | java.util.List |
getCurrentUser | currentUser | defaultRequest | com.box.boxjavalibv2.dao.BoxUser |
getEmailAliases | emailAliases | defaultRequest, userId | java.util.List |
moveFolderToAnotherUser | folderId, simpleUserRequest, userId | com.box.boxjavalibv2.dao.BoxFolder | |
updateUserInformaiton | update | userId, userRequest | com.box.boxjavalibv2.dao.BoxUser |
updateUserPrimaryLogin | update | userId, userUpdateLoginRequest | com.box.boxjavalibv2.dao.BoxUser |
URI Options for users
Name | Type |
---|---|
defaultRequest | com.box.restclientv2.requestsbase.BoxDefaultRequestObject |
emailAliasRequest | com.box.boxjavalibv2.requests.requestobjects.BoxEmailAliasRequestObject |
emailId | String |
filterTerm | String |
folderId | String |
simpleUserRequest | com.box.boxjavalibv2.requests.requestobjects.BoxSimpleUserRequestObject |
userDeleteRequest | com.box.boxjavalibv2.requests.requestobjects.BoxUserDeleteRequestObject |
userId | String |
userRequest | com.box.boxjavalibv2.requests.requestobjects.BoxUserRequestObject |
userUpdateLoginRequest | com.box.boxjavalibv2.requests.requestobjects.BoxUserRequestObject |
userUpdateLoginRequest | com.box.boxjavalibv2.requests.requestobjects.BoxUserUpdateLoginRequestObject |
Consumer Endpoints:
.BoxUserUpdateLoginRequestObject |
Consumer Endpoints:
For more information on Box events see https://developers.box.com/docs/#events and for long polling see https://developers.box.com/docs/#events-long-polling. Consumer endpoints can only use the endpoint prefix poll-events as shown in the example next. By default the consumer will split the com.box.boxjavalibv2.dao.BoxEventCollection from every long poll and create an exchange for every com.box.boxjavalibv2.dao.BoxEvent. To make the consumer return the entire collection in a single exchange, use the URI option consumer.splitResult=false.
...
The Box component also provides a Camel type converter to convert GenericFile objects from File component to a com.box.restclientv2.requestsbase.BoxFileUploadRequestObject to upload a new file files to Box.com. The target folderId for the upload can be specified in the header property CamelBox.folderId. If the header is not specified the it value defaults to "0" for the root folder ID.
Use cases
The following route uploads new files to the user's root folder:
...
Code Block |
---|
from("box://poll-events/poll?streamPosition=-1&streamType=all&limit=100") .to("bean:blah"); |
...
The following route uses a producer with dynamic header options
...
.
...
The fileId header has the Box file id , so its assigned to the CamelBox.fileId header in the following routeas follows:
Code Block |
---|
from("direct:foo") .setHeader("CamelBox.fileId", header("fileId")) .to("box://files/download") .to("file://..."); |