public class FileClientImpl extends BaseClient<com.box.sdk.BoxItem.Info,FileInput,File> implements FileClient
FileClient
.Constructor and Description |
---|
FileClientImpl(AbstractConfig config) |
Modifier and Type | Method and Description |
---|---|
File |
copy(String id,
String parentId,
String name) |
File |
create(String name,
String parentId,
InputStream content) |
SharedLink |
createShareLink(String id,
SharedLinkAccess access,
Date unshareDate,
SharedLinkPermissions permissions) |
void |
delete(String id) |
InputStream |
download(String id) |
File |
get(String id,
List<String> fields) |
String |
getDownloadUrl(String id) |
URL |
getPreviewLink(String id) |
InputStream |
getThumbnail(String fileId,
ThumbnailType thumbnailType,
Integer minWidth,
Integer minHeight,
Integer maxWidth,
Integer maxHeight) |
File |
update(String id,
FileInput input) |
File |
update(String id,
InputStream content,
Date modified) |
convert, convert, convert, execute, getBoxAPIConnection, getConfig, getOutputConverter
public FileClientImpl(AbstractConfig config)
public File update(String id, FileInput input)
update
in interface FileClient
public InputStream download(String id)
download
in interface FileClient
public String getDownloadUrl(String id)
getDownloadUrl
in interface FileClient
public File create(String name, String parentId, InputStream content)
create
in interface FileClient
public void delete(String id)
delete
in interface FileClient
public File update(String id, InputStream content, Date modified)
update
in interface FileClient
public File copy(String id, String parentId, String name)
copy
in interface FileClient
public InputStream getThumbnail(String fileId, ThumbnailType thumbnailType, Integer minWidth, Integer minHeight, Integer maxWidth, Integer maxHeight)
getThumbnail
in interface FileClient
public URL getPreviewLink(String id)
getPreviewLink
in interface FileClient
public SharedLink createShareLink(String id, SharedLinkAccess access, Date unshareDate, SharedLinkPermissions permissions)
createShareLink
in interface FileClient
Copyright © 2010–2019. All rights reserved.