@RequiresEnterpriseLicense(allowEval=true) @Connector(name="box", friendlyName="Box", minMuleVersion="3.6") @ReconnectOn(exceptions=org.mule.api.ConnectionException.class) public class BoxConnector extends Object
Constructor and Description |
---|
BoxConnector() |
Modifier and Type | Method and Description |
---|---|
Comment |
addCommentToFile(String fileId,
String message)
Used to add a comment by the user to a specific file.
|
Membership |
addGroupMembership(String groupId,
String userId,
MembershipRole membershipRole)
Adds a member to a Group.
|
Assignment |
addTaskAssignment(String taskId,
String assignTo)
Used to assign a task to a single user.
|
Task |
addTaskToFile(String fileId,
String message,
Date dueAt)
Used to create a single task for single user on a single file.
|
File |
copyFile(String fileId,
String folderId,
String newName)
Creates a copy of a file in another folder and rename it.
|
Folder |
copyFolder(String folderId,
String parentFolderId,
String newName)
Used to create a copy of a folder in another folder.
|
User |
createAppUser(String username)
Used to provision a new user in an enterprise.
|
Collaboration |
createCollaboration(String folderId,
String collaboratorId,
CollaborationRole collaborationRole)
Adds a collaboration for a single user or a single group to a folder.
|
Folder |
createFolder(String folderName,
String parentId)
Used to create a new empty folder.
|
Group |
createGroup(String groupName)
Used to create a group.
|
SharedLink |
createSharedLinkFile(String fileId,
SharedLinkAccess access,
Date unsharedAt,
SharedLinkPermissions permissions)
Createe a shared link for this particular file.
|
SharedLink |
createSharedLinkFolder(String folderId,
SharedLinkAccess access,
Date unsharedAt,
SharedLinkPermissions permissions)
Used to create a shared link for the particular folder.
|
void |
deleteCollaboration(String collaborationId)
Used to delete a single collaboration.
|
void |
deleteComment(String commentId)
Permanently deletes a comment.
|
void |
deleteFile(String fileId)
Discards a file to the trash.
|
void |
deleteFolder(String folderId,
boolean recursive)
Used to delete a folder.
|
void |
deleteGroup(String groupId)
Permanently deletes a specific group.
|
void |
deleteGroupMembership(String groupMemberShipId)
Deletes a specific group membership.
|
void |
deleteOldFileVersion(String fileId,
String versionId)
Discards a specific file version to the trash.
|
void |
deleteTask(String taskId)
Permanently deletes a specific task.
|
void |
deleteTaskAssignment(String assignmentId)
Deletes a specific task assignment.
|
void |
deleteUser(String userId,
boolean notifyUser,
boolean force)
Deletes a user in an enterprise account.
|
InputStream |
downloadFile(String fileId)
Retrieves the actual data of the file.
|
InputStream |
downloadFileVersion(String fileId,
String versionId)
Downloads previous versions of a file.
|
List<Item> |
fullSearch(SearchParams params)
The search endpoint provides a simple way of finding items that are accessible in a given user’s Box account.
|
org.mule.streaming.ProviderAwarePagingDelegate<Group,BoxConnector> |
getAllGroups(org.mule.streaming.PagingConfiguration pagingConfiguration)
Retrieves all of the groups that the current user is a member of.
|
AssignmentClient |
getAssignmentClient() |
Collaboration |
getCollaborationInfo(String collaborationId)
Retrieves information about a single collaboration.
|
Comment |
getCommentInfo(String commentId)
Used to retrieve the message and metadata about a specific comment.
|
AbstractConfig |
getConfig() |
User |
getCurrentUser(List<String> fields)
Retrieves information about the user who is currently logged in i.e.
|
String |
getDownloadURL(String fileId)
Retrieves the download URL of the file.
|
org.mule.streaming.ProviderAwarePagingDelegate<User,BoxConnector> |
getEnterpriseUsers(org.mule.streaming.PagingConfiguration pagingConfiguration)
Returns a list of all users for the Enterprise along with their user_id, public_name, and login.
|
List<Comment> |
getFileComments(String fileId)
Gets a list of any comments on this file.
|
File |
getFileInfo(String fileId,
List<String> fields)
Retrieves the metadata about a file.
|
URL |
getFilePreviewLink(String fileId)
Retrieves an expiring URL for creating an embedded preview session.
|
List<Task> |
getFileTasks(String fileId)
Retrieves all of the tasks for given file.
|
List<FileVersion> |
getFileVersions(String fileId)
Retrieved any previous versions of the specified file.
|
org.mule.streaming.ProviderAwarePagingDelegate<Collaboration,BoxConnector> |
getFolderCollaborations(String folderId,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Use this to get a list of all the collaborations on a folder i.e.
|
Folder |
getFolderInfo(String folderId)
Retrieves the full metadata about a folder, including information about when it was last updated as well as the files and folders contained in it.
|
org.mule.streaming.ProviderAwarePagingDelegate<Item,BoxConnector> |
getFolderItems(String folderId,
List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Retrieves the files and/or folders contained within this folder without any other metadata about the folder.
|
GroupClient |
getGroupClient() |
Group |
getGroupInfo(String groupId)
Retrieves information about a group.
|
Membership |
getGroupMembership(String groupMemberShipId)
Fetches a specific group membership entry.
|
org.mule.streaming.ProviderAwarePagingDelegate<Membership,BoxConnector> |
getGroupMemberships(String groupId,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Retrieves all of the members for a given group if the requesting user has access
|
MembershipClient |
getMembershipClient() |
List<Collaboration> |
getPendingCollaborations()
Used to retrieve all pending collaboration invites for this user.
|
Assignment |
getTaskAssignmentInfo(String assignmentId)
Fetches a specific task assignment.
|
List<Assignment> |
getTaskAssignments(String taskId)
Retrieves all of the assignments for a given task.
|
TaskClient |
getTaskClient() |
Task |
getTaskInfo(String taskId)
Fetches a specific task.
|
InputStream |
getThumbnail(String fileId,
ThumbnailType thumbnailType,
Integer minWidth,
Integer minHeight,
Integer maxWidth,
Integer maxHeight)
Retrieves a thumbnail, or smaller image representation, of this file.
|
File |
getTrashedFile(String fileId,
List<String> fields)
Retrieves an item that has been moved to the trash.
|
Folder |
getTrashedFolder(String folderId,
List<String> fields)
Retrieves a folder that has been moved to the trash.
|
org.mule.streaming.ProviderAwarePagingDelegate<Item,BoxConnector> |
getTrashedItems(List<String> fields,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Retrieves the files and/or folders that have been moved to the trash.
|
UserClient |
getUserClient() |
org.mule.streaming.ProviderAwarePagingDelegate<Membership,BoxConnector> |
getUserGroupMemberships(String userId,
org.mule.streaming.PagingConfiguration pagingConfiguration)
Retrieves all of the group memberships for a given user.
|
User |
getUserInfo(String userId,
List<String> fields)
Retrieves information about a user in the enterprise.
|
Folder |
moveFolderToUser(String userId,
String targetUserId)
Moves all of the owned content from within one user’s folder into a new folder in another user’s account.
|
void |
permanentlyDeleteFile(String fileId)
Permanently deletes an item that is in the trash.
|
void |
permanentlyDeleteFolder(String folderId)
Permanently deletes an item that is in the trash.
|
void |
promoteFileVersion(String fileId,
String versionId)
For users with premium accounts, If there are previous versions of this file, this method can be used to promote one of the older versions to the top of the stack.
|
Comment |
replyToComment(String commentId,
String message)
Replies to this comment with another message.
|
File |
restoreFile(String fileId,
String newName,
String newParentId)
Restores an item that has been moved to the trash.
|
Folder |
restoreFolder(String folderId,
String newName,
String newParentId)
Restores an item that has been moved to the trash.
|
List<Item> |
search(String query,
String parentFolderId)
Deprecated.
Use
fullSearch(SearchParams) instead. |
void |
setConfig(AbstractConfig config) |
Collaboration |
updateCollaboration(String collaborationId,
CollaborationInput input)
Used to edit an existing collaboration.
|
Comment |
updateComment(String commentId,
String message)
Used to update the message of the comment.
|
File |
updateFileInfo(String fileId,
FileInput fileInput)
Used to update individual or multiple fields in the file object, including renaming the file, changing its description, and creating a shared link for the file.
|
Folder |
updateFolder(String folderId,
FolderInput input)
Used to update information about the folder.
|
Membership |
updateGroupMembership(String groupMemberShipId,
MembershipInput groupMembership)
Updates a group membership.
|
Assignment |
updateTaskAssignmentInfo(String assignmentId,
AssignmentInput taskAssignmentInfo)
Updates a task assignment.
|
Task |
updateTaskInfo(String taskId,
TaskInput taskInfo)
Updates a specific task.
|
User |
updateUserInfo(String userId,
UserInput input)
Used to edit the settings and information about a user.
|
File |
uploadFile(String fileName,
String folderId,
InputStream fileContent)
Uploads a new file to the specified folder.
|
File |
uploadNewVersion(String fileId,
InputStream fileContent,
Date modifiedAt)
Uploading a new file version is performed in the same way as uploading a file.
|
<T> void |
validate(com.google.common.base.Predicate<T> predicate,
T value,
String messageTemplate) |
void |
validateFields(String[] validFields,
List<String> fields) |
@OAuthProtected @Processor(friendlyName="Folders | Get Folder\'s Info") public Folder getFolderInfo(@Default(value="#[payload]") String folderId)
folderId
- The ID of the folder to be retrieved.@Paged @OAuthProtected @Processor(friendlyName="Folders | Get Folder\'s Items") public org.mule.streaming.ProviderAwarePagingDelegate<Item,BoxConnector> getFolderItems(@Default(value="0") String folderId, @RefOnly@Optional List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
folderId
- The ID of the folder you want to inspect. If not provided, the root folder is assumed.fields
- Attribute(s) to include in the response.pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box. An error is thrown if the folder does not exist, or if any of the parameters are invalid.@OAuthProtected @Processor(friendlyName="Folders | Create Folder") public Folder createFolder(@Default(value="#[payload]") String folderName, @Default(value="0") String parentId)
folderName
- The desired name for the folder.parentId
- The ID of the parent folder. Default value is "0", which represents the root folder.@OAuthProtected @Processor(friendlyName="Folders | Update Folder") public Folder updateFolder(String folderId, @RefOnly@Default(value="#[payload]") FolderInput input)
folderId
- The id of the folder to be modified.input
- An instance of FolderInput with the attributes you want to change.@OAuthProtected @Processor(friendlyName="Folders | Delete Folder") public void deleteFolder(@Default(value="#[payload]") String folderId, @Default(value="true") boolean recursive)
folderId
- The ID of the folder to be deleted.recursive
- Whether to delete this folder if it has items inside of it.@OAuthProtected @Processor(friendlyName="Folders | Copy Folder") public Folder copyFolder(@Default(value="#[payload]") String folderId, @FriendlyName(value="Parent")@Default(value="0") String parentFolderId, @FriendlyName(value="Name")@Optional String newName)
folderId
- The ID of the destination folder.parentFolderId
- The ID of the parent folder that will hold the copy. If not provided then the root will be used.newName
- An optional new name for the folder.@OAuthProtected @Processor(friendlyName="Folders | Create Shared Link") public SharedLink createSharedLinkFolder(@Default(value="#[payload]") String folderId, @RefOnly@Default(value="DEFAULT") SharedLinkAccess access, @Optional Date unsharedAt, @RefOnly SharedLinkPermissions permissions)
folderId
- The ID of the folder to whom a shared link to be created.access
- The level of access required for this shared link. Can be open, company, collaborators, or null to get default share level.unsharedAt
- The day that this link should be disabled at. RFC-3339 valid date-timestamps are rounded off to the given day. This field can only be set if the user has been
granted permission (yes, it’s complicated) and is not a free user.permissions
- The set of permissions that apply to this link.@Paged @OAuthProtected @Processor(friendlyName="Folders | Get Folder Collaborations") public org.mule.streaming.ProviderAwarePagingDelegate<Collaboration,BoxConnector> getFolderCollaborations(@Default(value="#[payload]") String folderId, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
folderId
- The ID of the folder.pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box. If there are no collaborations on this folder, an empty collection will be returned.@Paged @OAuthProtected @Processor(friendlyName="Folders | Get Trashed Items") public org.mule.streaming.ProviderAwarePagingDelegate<Item,BoxConnector> getTrashedItems(@RefOnly@Default(value="#[payload]") List<String> fields, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
fields
- Attribute(s) to include in the responsepagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box.@OAuthProtected @Processor(friendlyName="Folders | Get Trashed Folder") public Folder getTrashedFolder(@Default(value="#[payload]") String folderId, @RefOnly@Optional List<String> fields)
folderId
- The ID of the folder.fields
- Attribute(s) to include in the response.@OAuthProtected @Processor(friendlyName="Folders | Permanently Delete") public void permanentlyDeleteFolder(@Default(value="#[payload]") String folderId)
folderId
- The ID of the folder to be permanently deleted.@OAuthProtected @Processor(friendlyName="Folders | Restore Folder") public Folder restoreFolder(@Default(value="#[payload]") String folderId, @FriendlyName(value="Name")@Optional String newName, @FriendlyName(value="Parent")@Optional String newParentId)
folderId
- The ID of the trashed folder being restored.newName
- The new name for this item.newParentId
- The new parent folder for this item.@OAuthProtected @Processor(friendlyName="Files | Get File\'s Info") public File getFileInfo(@Default(value="#[payload]") String fileId, @RefOnly@Optional List<String> fields)
fileId
- The ID of the file.fields
- Attribute(s) to include in the response.@OAuthProtected @Processor(friendlyName="Files | Update File Info") public File updateFileInfo(@Default(value="#[payload]") String fileId, @RefOnly FileInput fileInput)
fileId
- The ID of the file.fileInput
- The updated file info object.@OAuthProtected @Processor(friendlyName="Files | Download File") public InputStream downloadFile(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Get download URL") public String getDownloadURL(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Upload File") public File uploadFile(String fileName, @Default(value="0") String folderId, @RefOnly@Default(value="#[payload]") InputStream fileContent)
fileName
- The name to give the uploaded file.folderId
- The ID of the folder.fileContent
- A stream containing the contents of the file to upload.@OAuthProtected @Processor(friendlyName="Files | Delete File") public void deleteFile(@Default(value="[#payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Update File") public File uploadNewVersion(String fileId, @RefOnly@Default(value="[#payload]") InputStream fileContent, @Optional Date modifiedAt)
fileId
- The ID of the file.fileContent
- A stream containing the new file contents.modifiedAt
- The date that the new version was modified.@OAuthProtected @Processor(friendlyName="Files | View Versions") public List<FileVersion> getFileVersions(String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Download Version") public InputStream downloadFileVersion(@Default(value="#[payload]") String fileId, String versionId)
fileId
- The ID of the file.versionId
- The version ID of specified version of the file.@OAuthProtected @Processor(friendlyName="Files | Promote Version") public void promoteFileVersion(@Default(value="#[payload]") String fileId, String versionId)
fileId
- The ID of the file.versionId
- The version ID of specified version of the file.@OAuthProtected @Processor(friendlyName="Files | Delete Old Version") public void deleteOldFileVersion(@Default(value="#[payload]") String fileId, String versionId)
fileId
- The ID of the file.versionId
- The version ID of specified version of the file.@OAuthProtected @Processor(friendlyName="Files | Copy And Rename File") public File copyFile(@Default(value="#[payload]") String fileId, @Default(value="0") String folderId, @FriendlyName(value="Name")@Optional String newName)
fileId
- The ID of the file you want to copy.folderId
- The folder ID representing the new location of the file.newName
- An optional new name for the file.@OAuthProtected @Processor(friendlyName="Files | Get Thumbnail") public InputStream getThumbnail(@Default(value="#[payload]") String fileId, @RefOnly@Default(value="PNG") ThumbnailType thumbnailType, Integer minWidth, Integer minHeight, Integer maxWidth, Integer maxHeight)
fileId
- The ID of the filethumbnailType
- Either PNG of JPGminWidth
- The minimum width of the thumbnailminHeight
- The minimum height of the thumbnailmaxWidth
- The maximum width of the thumbnailmaxHeight
- The maximum height of the thumbnail@OAuthProtected @Processor(friendlyName="Files | Get Embed Link") public URL getFilePreviewLink(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Create Shared Link") public SharedLink createSharedLinkFile(@Default(value="#[payload]") String fileId, @RefOnly@Default(value="DEFAULT") SharedLinkAccess access, @Optional Date unsharedAt, @RefOnly SharedLinkPermissions permissions)
fileId
- The ID of the fileaccess
- The level of access required for this shared link. Can be open, company, collaborators, or null to get default share level.unsharedAt
- The day that this link should be disabled at. Timestamps are rounded off to the given day. This field can only be set if the user is not a free user.permissions
- The set of permissions that apply to this link@OAuthProtected @Processor(friendlyName="Files | Get Trashed File") public File getTrashedFile(@Default(value="#[payload]") String fileId, @RefOnly@Optional List<String> fields)
fileId
- The ID of the file.fields
- Attribute(s) to include in the response.@OAuthProtected @Processor(friendlyName="Files | Permanently Delete") public void permanentlyDeleteFile(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file to be permanently deleted.@OAuthProtected @Processor(friendlyName="Files | Restore Item") public File restoreFile(@Default(value="#[payload]") String fileId, @FriendlyName(value="Name")@Optional String newName, @FriendlyName(value="Parent")@Optional String newParentId)
fileId
- The ID of the trashed file being restored.newName
- The new name for this item.newParentId
- The new parent folder for this item.@OAuthProtected @Processor(friendlyName="Files | View Comments") public List<Comment> getFileComments(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Files | Get File\'s Tasks") public List<Task> getFileTasks(@Default(value="#[payload]") String fileId)
fileId
- The ID of the file.@OAuthProtected @Processor(friendlyName="Comments | Get Comment") public Comment getCommentInfo(@Default(value="#[payload]") String commentId)
commentId
- The ID of the comment.@OAuthProtected @Processor(friendlyName="Comments | Create Comment") public Comment addCommentToFile(@Default(value="#[payload]") String fileId, String message)
fileId
- The ID of the file.message
- The text body of the comment.@OAuthProtected @Processor(friendlyName="Comments | Reply to Comment") public Comment replyToComment(@Default(value="#[payload]") String commentId, String message)
commentId
- The ID of the comment.message
- The text body of the comment@OAuthProtected @Processor(friendlyName="Comments | Update Comment") public Comment updateComment(@Default(value="#[payload]") String commentId, String message)
commentId
- The ID of the comment.message
- The desired text for the comment message.@OAuthProtected @Processor(friendlyName="Comments | Delete Comment") public void deleteComment(@Default(value="#[payload]") String commentId)
commentId
- The ID of the comment.@OAuthProtected @Processor(friendlyName="Tasks | Create Task") public Task addTaskToFile(@Default(value="#[payload]") String fileId, @Optional String message, @Optional Date dueAt)
fileId
- The ID of the item this task is for.message
- An optional message to include with the task.dueAt
- The day at which this task is due.@OAuthProtected @Processor(friendlyName="Tasks | Get Task") public Task getTaskInfo(@Default(value="#[payload]") String taskId)
taskId
- The ID of the task.@OAuthProtected @Processor(friendlyName="Tasks | Update Task") public Task updateTaskInfo(@Default(value="#[payload]") String taskId, @RefOnly TaskInput taskInfo)
taskId
- The ID of the task.taskInfo
- The updated info.@OAuthProtected @Processor(friendlyName="Tasks | Delete Task") public void deleteTask(@Default(value="#[payload]") String taskId)
taskId
- The ID of the task.@OAuthProtected @Processor(friendlyName="Tasks | Get Assignments") public List<Assignment> getTaskAssignments(@Default(value="#[payload]") String taskId)
taskId
- The ID of the task.@OAuthProtected @Processor(friendlyName="Tasks | Get Task Assignment") public Assignment getTaskAssignmentInfo(@Default(value="#[payload]") String assignmentId)
assignmentId
- The ID of the task assignment.@OAuthProtected @Processor(friendlyName="Tasks | Create Task Assignment") public Assignment addTaskAssignment(@Default(value="#[payload]") String taskId, String assignTo)
taskId
- The ID of the task this assignment is for.assignTo
- The ID of the user this assignment is for.@OAuthProtected @Processor(friendlyName="Tasks | Update Task Assignment") public Assignment updateTaskAssignmentInfo(@Default(value="#[payload]") String assignmentId, @RefOnly AssignmentInput taskAssignmentInfo)
assignmentId
- The ID of the task assignment.taskAssignmentInfo
- The task assignment updated info.@OAuthProtected @Processor(friendlyName="Tasks | Delete Task Assignment") public void deleteTaskAssignment(@Default(value="#[payload]") String assignmentId)
assignmentId
- The ID of the task assignment.@OAuthProtected @Processor(friendlyName="Users | Create User") public User createAppUser(@FriendlyName(value="Name")@Default(value="#[payload]") String username)
username
- The name of this user.@OAuthProtected @Processor(friendlyName="Users | Get Current User") public User getCurrentUser(@RefOnly@Optional List<String> fields)
fields
- Attribute(s) to include in the response@OAuthProtected @Processor(friendlyName="Users | Get User\'s Info") public User getUserInfo(@Default(value="#[payload]") String userId, @RefOnly@Optional List<String> fields)
userId
- The ID of the user.fields
- Attribute(s) to include in the response.@Paged @OAuthProtected @Processor(friendlyName="Users | Get Enterprise Users") public org.mule.streaming.ProviderAwarePagingDelegate<User,BoxConnector> getEnterpriseUsers(@RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box.@OAuthProtected @Processor(friendlyName="Users | Update User") public User updateUserInfo(String userId, @RefOnly@Default(value="#[payload]") UserInput input)
userId
- The ID of the user.input
- User updated info.@OAuthProtected @Processor(friendlyName="Users | Delete User") public void deleteUser(@Default(value="#[payload]") String userId, @Default(value="true") boolean notifyUser, @Default(value="false") boolean force)
userId
- The ID of the user.notifyUser
- Determines if the destination user should receive email notification of the transfer.force
- Whether or not the user should be deleted even if this user still own files.@OAuthProtected @Processor(friendlyName="Users | Move User\'s Folder") public Folder moveFolderToUser(@Default(value="#[payload]") String userId, String targetUserId)
userId
- The ID of the user.targetUserId
- the user id of the user whose files will be the source for this operation@OAuthProtected @Processor(friendlyName="Groups | Create Group") public Group createGroup(@Default(value="#[payload]") String groupName)
groupName
- The name of the new group to be created@OAuthProtected @Processor(friendlyName="Groups | Get Group") public Group getGroupInfo(@Default(value="#[payload]") String groupId)
groupId
- The ID of the group.@OAuthProtected @Processor(friendlyName="Groups | Delete Group") public void deleteGroup(@Default(value="#[payload]") String groupId)
groupId
- The ID of the group.@OAuthProtected @Processor(friendlyName="Groups | Create Membership") public Membership addGroupMembership(@Default(value="#[payload]") String groupId, String userId, @RefOnly@Default(value="MEMBER") MembershipRole membershipRole)
groupId
- The group this user is to be added to.userId
- The UserId of the BoxUser to assign to a groupmembershipRole
- The membershipRole of the user in the group. Default is “member” option for “admin”@Paged @OAuthProtected @Processor(friendlyName="Groups | Get Memberships for Group") public org.mule.streaming.ProviderAwarePagingDelegate<Membership,BoxConnector> getGroupMemberships(@Default(value="#[payload]") String groupId, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
groupId
- The ID of the group.pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box.@OAuthProtected @Processor(friendlyName="Groups | Get Membership") public Membership getGroupMembership(@Default(value="#[payload]") String groupMemberShipId)
groupMemberShipId
- The ID of the group membership.@OAuthProtected @Processor(friendlyName="Groups | Update Membership for a Group") public Membership updateGroupMembership(String groupMemberShipId, @RefOnly@Default(value="#[payload]") MembershipInput groupMembership)
groupMemberShipId
- The ID of the group membership.groupMembership
- The updated group membership.@OAuthProtected @Processor(friendlyName="Groups | Delete Membership") public void deleteGroupMembership(@Default(value="#[payload]") String groupMemberShipId)
groupMemberShipId
- The ID of the group membership.@Paged @OAuthProtected @Processor(friendlyName="Groups | Get Groups for an Enterprise") public org.mule.streaming.ProviderAwarePagingDelegate<Group,BoxConnector> getAllGroups(@RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box.@Paged @OAuthProtected @Processor(friendlyName="Groups | Get User\'s Memberships") public org.mule.streaming.ProviderAwarePagingDelegate<Membership,BoxConnector> getUserGroupMemberships(@Default(value="#[payload]") String userId, @RefOnly org.mule.streaming.PagingConfiguration pagingConfiguration)
userId
- The ID of the user.pagingConfiguration
- The PagingConfiguration
object that contains the needed parameters for paged queries.BasicPagingDelegate
that handles the calls to Box.@OAuthProtected @Processor(friendlyName="Collaborations | Create Collaboration") public Collaboration createCollaboration(@Default(value="#[payload]") String folderId, String collaboratorId, @RefOnly CollaborationRole collaborationRole)
folderId
- The ID of the item to add the collaboration on.collaboratorId
- The collaboratorId to add.collaborationRole
- The collaborationRole of the collaboratorId.@OAuthProtected @Processor(friendlyName="Collaborations | Get Collaboration") public Collaboration getCollaborationInfo(@Default(value="#[payload]") String collaborationId)
collaborationId
- The ID of the collaboration.@OAuthProtected @Processor(friendlyName="Collaborations | Update Collaboration") public Collaboration updateCollaboration(@Default(value="#[payload]") String collaborationId, @RefOnly CollaborationInput input)
collaborationId
- The ID of the collaboration.input
- Contains information about a BoxCollaboration.@OAuthProtected @Processor(friendlyName="Collaborations | Delete Collaboration") public void deleteCollaboration(@Default(value="#[payload]") String collaborationId)
collaborationId
- The ID of the collaboration.@OAuthProtected @Processor(friendlyName="Collaborations | Pending Collaborations") public List<Collaboration> getPendingCollaborations()
@OAuthProtected @Processor(friendlyName="Search") @Deprecated public List<Item> search(@Default(value="#[payload]") String query, String parentFolderId)
fullSearch(SearchParams)
instead.query
- The string to search for. Box matches the search string against object names, descriptions, text contents of files, and other data, such as fields of different item types.parentFolderId
- The ID of the folder in which the search operation will be applied. If the ID is not specified it will be done in the root folder.Item
elements.@OAuthProtected @Processor(friendlyName="Search With Parameters") public List<Item> fullSearch(@RefOnly@Default(value="#[payload]") SearchParams params)
params
- The required parameters for the search.Item
elements.public <T> void validate(com.google.common.base.Predicate<T> predicate, T value, String messageTemplate)
public TaskClient getTaskClient()
public AssignmentClient getAssignmentClient()
public UserClient getUserClient()
public GroupClient getGroupClient()
public MembershipClient getMembershipClient()
public AbstractConfig getConfig()
public void setConfig(AbstractConfig config)
Copyright © 2010–2017. All rights reserved.