public class FileManager extends Object
| Constructor and Description |
|---|
FileManager(AuthenticatedHTTPClient authenticatedHTTPClient,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFile(String userId,
String fileId) |
void |
deleteFolder(String userId,
String folderId) |
FileDTO |
getFile(String userId,
String fileId) |
ListFilesResponse |
listFiles(String userId,
ListFilesRequest listFilesRequest) |
ListFoldersResponse |
listFolders(String userId,
String parentFolderId) |
FolderDTO |
newFolder(String userId,
NewFolderRequest newFolderRequest) |
FileDTO |
updateFile(String userId,
String fileId,
UpdateFileRequest updateFileRequest) |
FolderDTO |
updateFolder(String userId,
String folderId,
UpdateFolderRequest updateFolderRequest) |
public FileManager(AuthenticatedHTTPClient authenticatedHTTPClient, Configuration configuration)
public ListFilesResponse listFiles(String userId, @Nullable ListFilesRequest listFilesRequest) throws UnauthorizedException, IOException, URISyntaxException
@Nullable public FileDTO getFile(String userId, String fileId) throws UnauthorizedException, IOException, URISyntaxException
public FileDTO updateFile(String userId, String fileId, UpdateFileRequest updateFileRequest) throws UnauthorizedException, IOException, URISyntaxException
public void deleteFile(String userId, String fileId) throws UnauthorizedException, IOException, URISyntaxException
public ListFoldersResponse listFolders(String userId, @Nullable String parentFolderId) throws UnauthorizedException, IOException, URISyntaxException
public FolderDTO newFolder(String userId, NewFolderRequest newFolderRequest) throws UnauthorizedException, IOException, URISyntaxException
public FolderDTO updateFolder(String userId, String folderId, UpdateFolderRequest updateFolderRequest) throws UnauthorizedException, IOException, URISyntaxException
public void deleteFolder(String userId, String folderId) throws UnauthorizedException, IOException, URISyntaxException
Copyright © 2016 wix.com. All rights reserved.