Class UploadFilesExample
java.lang.Object
com.blackberry.workspaces.sdk.api.examples.UploadFilesExample
public class UploadFilesExample extends Object
Examples of uploading a file
- Author:
- tasfaw
-
Constructor Summary
Constructors Constructor Description UploadFilesExample(APISession apiSession)
Creates an instances of the UploadFilesExample class -
Method Summary
Modifier and Type Method Description UploadResult
uploadDocument(String localPath, String filename, HashSet<String> userRecipients, HashSet<String> ADGroupsRecipients, HashSet<String> listRecipients)
UploadDocumentUploadResult
uploadDocumentToRoom(int roomId, String destinationFileName, String filename, String folder, List<String> groups, List<String> domains)
UploadDocumentToRoom
-
Constructor Details
-
UploadFilesExample
Creates an instances of the UploadFilesExample class- Parameters:
apiSession
- An ApiSession instance to be used.
-
-
Method Details
-
uploadDocument
public UploadResult uploadDocument(String localPath, String filename, HashSet<String> userRecipients, HashSet<String> ADGroupsRecipients, HashSet<String> listRecipients)UploadDocument- Parameters:
localPath
-filename
-userRecipients
-ADGroupsRecipients
-listRecipients
-- Returns:
-
uploadDocumentToRoom
public UploadResult uploadDocumentToRoom(int roomId, String destinationFileName, String filename, String folder, List<String> groups, List<String> domains)UploadDocumentToRoom- Parameters:
roomId
-destinationFileName
-filename
-folder
-groups
-domains
-- Returns:
-