| java.lang.Object | |
| ↳ | org.mule.modules.boxnet.BoxNetModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Box.net Cloud Connector Module.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiKey | The API key obtained when registering a project with the Box platform. | ||||||||||
| authCallback | |||||||||||
| callbackPath | The url where box.net will direct the authentication callback. | ||||||||||
| callbackPort | The port where the authentication callback will be listening on Defaults to 8080 | ||||||||||
| client | |||||||||||
| logger | |||||||||||
| muleContext | |||||||||||
| usesCallback | If true, an http inbound endpoint will be set in place to receive a callback from box.net with the authToken once the user has authenticated. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This processor adds file or folder to tags list.
| |||||||||||
After the user authenticates the ticket obtained with the get-ticket processor,
there're two ways to get the required auth token:
| |||||||||||
Create a new folder
| |||||||||||
Deletes a file or folder
| |||||||||||
Downloads a file an returns its contents as a byte[]
| |||||||||||
This processor returns all the user's tags.
| |||||||||||
Gets information about a file
| |||||||||||
Get and access ticket using the configured apiKey.
| |||||||||||
This processor is used to get a user's files and folders tree.
| |||||||||||
Logs out the user associated with the authorization token
| |||||||||||
This processor moves a file or folder to another folder.
| |||||||||||
This processor privately shares a file or folder with another user(s).
| |||||||||||
Makes a public share of a file or folder
| |||||||||||
This processor unshares a public shared file or folder
| |||||||||||
Create a new user in box.net
| |||||||||||
This processor renames a file or folder.
| |||||||||||
This processor sets a description to a file or folder.
| |||||||||||
Receives a comma separated list of paths and uploads the corresponding
files.
| |||||||||||
Receives an input stream and uploads its content as a file
| |||||||||||
This method is used to verify user registration email
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.mule.api.context.MuleContextAware
| |||||||||||
The API key obtained when registering a project with the Box platform. For more information about this field please refer to http://developers.box.net/
The url where box.net will direct the authentication callback. For more info look at http://developers.box.net/w/page/12923915/ApiAuthentication Defaults to box_auth_callback
The port where the authentication callback will be listening on Defaults to 8080
If true, an http inbound endpoint will be set in place to receive a callback from box.net with the authToken once the user has authenticated. If this callback is in place, there's no need for you to manually invoke the get-auth-token processor. For more info look at http://developers.box.net/w/page/12923915/ApiAuthentication Defaults to false
This processor adds file or folder to tags list.
| csvTags | Comma separated list of tags |
|---|---|
| target | Can be either 'file' or 'folder' depending on what do you want to add |
| targetId | The id of a file or folder to be added |
| IllegalArgumentException} if target is invalid or csvTags is empty |
After the user authenticates the ticket obtained with the get-ticket processor, there're two ways to get the required auth token:
| IllegalArgumentException | if the ticket does not match a logged user |
|---|---|
| IllegalStateException | if you use this processor before getting a ticket |
Create a new folder
| parentFolderId | The id of the parent folder |
|---|---|
| folderName | The name of the folder you want to create |
| share | Specifies if the folder is shared. This parameter is optional and defaults to false |
CreateFolderResponse with
data about the operation status and info about the newly created folder (if successful)
Deletes a file or folder
| target | The type of item to be shared. This can be set as 'file' or 'folder'. Any other value will throw a IllegalArgumentException |
|---|---|
| targetId | The id of the item you wish to delete. If the target is a folder, this will be the folder_id. If the target is a file, this will be the file_id. |
DeleteResponse with data about the operation status| IllegalArgumentException} if target is invalid |
Downloads a file an returns its contents as a byte[]
| fileId | The id of the file we want to download |
|---|
This processor returns all the user's tags.
On successful you will get an xml representing the tags that looks like this:
| encoding | Encoding to use when decoding from BASE64. Optional, defaults to UTF-8 |
|---|
Gets information about a file
| fileId | The id of the file you want info about |
|---|
GetFileInfoResponse
Get and access ticket using the configured apiKey.
With this ticket, the user needs to manually go to https://www.box.net/api/1.0/auth/
This processor is used to get a user's files and folders tree. 'folderId' param defines root folder from which the tree begins. 'csvParams' is comma separated list where you can set additional parameters, which are: onelevel - make a tree of one level depth, so you will get only files and folders stored in folder which folder_id you have provided. nofiles - include folders only in result tree, no files. nozip - do not zip tree xml. On successful result you will receive 'listing_ok' as status and the tree xml. if you haven't set 'nozip' as a parameter (it's set by default), then you have to unzip it. Then you will get xml like this: (note that updatedand createdare UNIX timestamps in PST).
| folderId | The ID of the root folder from which the tree begins. If this value is "0", the user's full account tree is returned. Defaults to zero |
|---|---|
| csvParams | Comma separated list of params. This is optional and defaults to 'nozip' |
| encoding | Optional parameter to specify the encoding to use when decoding BASE64. Defaults to UTF-8 |
GetAccountTreeResponse with
data about the operation status and info about the inspected folder (if successful)
Logs out the user associated with the authorization token
LogoutResponse with data about the operation status
This processor moves a file or folder to another folder. On a successful result, status will be 's_move_node'. If the result wasn't successful, status field can be: 'e_move_node', 'not_logged_in', 'application_restricted'.
| target | Can be either 'file' or 'folder' depending on what do you |
|---|---|
| targetId | Is the id of a file or folder to be moved |
| destinationId | Is the destination folder id. |
This processor privately shares a file or folder with another user(s). 'target' param, 'target_id' is . 'emails' params is an array of emails of users' to share files with. if 'notify' param is , 'message' param . Note: currently only files can be shared privately.
| target | Should be either 'file' or 'folder' |
|---|---|
| targetId | The id of the file or folder to be shared |
| csvMails | Comma separated list of email addresses of the users that will receive the share |
| notify | If true, then a notification email will be sent to users. Optional parameter, defaults to true |
| message | Is a message to be included in the notification email. Optional parameter, defaults to an empty string |
| IllegalArgumentException} if target is invalid or csvMails is null or empty |
Makes a public share of a file or folder
| target | The type of item to be shared. This can be set as 'file' or 'folder'. Any other value will throw a IllegalArgumentException |
|---|---|
| targetId | The id of the item you wish to share. If the target is a folder, this will be the folder_id. If the target is a file, this will be the file_id. |
| password | The password to protect the folder or file. |
| message | An message to be included in a notification email. |
PublicShareResponse with
data about the operation status and info about the shared folder (if successful)| IllegalArgumentException} if target is invalid |
This processor unshares a public shared file or folder
| target | Shoud be either 'file' or 'folder' |
|---|---|
| targetId | Is id of a file or folder to be unshared |
| IllegalArgumentException} if target is invalid |
Create a new user in box.net
| The user's email | |
| password | The user's password |
RegisterNewUserResponse with
data about the operation status and info about the newly created user (if successful)
This processor renames a file or folder.
| target | Can be either 'file' or 'folder' depending on what you want to rename |
|---|---|
| targetId | Is the id of a file or folder to be renamed |
| newName | Is the new name for a file or folder |
| apiKey |
|---|
| callbackPath |
|---|
| callbackPort |
|---|
This processor sets a description to a file or folder.
| target | Can be either 'file' or 'folder' |
|---|---|
| targetId | The id of the folder/file you want to modify |
| description | The description you want to set |
| context |
|---|
| usesCallback |
|---|
| MuleException |
|---|
| MuleException |
|---|
Receives a comma separated list of paths and uploads the corresponding files.
| paths | A List of Strings with the paths where the files are. Defaults to payload |
|---|---|
| folderId | The id of the parent folder. Defaults to 0 (the root folder) |
UploadResponse with
data about the operation status and info about the newly uploaded files (if successful)
Receives an input stream and uploads its content as a file
| folderId | The id of the parent folder. Defaults to 0 which is the root folder |
|---|---|
| filename | The name we want the file to have on box.net |
| input | InputStream with the contents of the file. It's taken from the message payload. |
UploadResponse with
data about the operation status and info about the newly uploaded file (if successful)
This method is used to verify user registration email
| loginName | The login username of the user for which you would like to verify registration. |
|---|