public class AmazonS3InputDataHandler extends InputDataHandler
Constructor and Description |
---|
AmazonS3InputDataHandler(String accessKey,
String secretKey,
String bucketName)
Constructor
|
AmazonS3InputDataHandler(String accessKey,
String secretKey,
String bucketName,
String uploadPath)
Constructor
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getFile(String guid)
Get file
|
GroupDocsFileDescription |
getFileDescription(String guid)
Get file description
|
List<GroupDocsFileDescription> |
getFileDescriptionList(String directory)
Get file description list
|
String |
saveFile(InputStream inputStream,
String fileName,
Integer timeToLive,
String encryptedKey)
Save file
|
getImage
public AmazonS3InputDataHandler(String accessKey, String secretKey, String bucketName)
accessKey
- AWS access keysecretKey
- AWS secret keybucketName
- bucket namepublic AmazonS3InputDataHandler(String accessKey, String secretKey, String bucketName, String uploadPath)
accessKey
- AWS access keysecretKey
- AWS secret keybucketName
- bucket nameuploadPath
- upload pathpublic List<GroupDocsFileDescription> getFileDescriptionList(String directory)
InputDataHandler
getFileDescriptionList
in class InputDataHandler
directory
- files location directorypublic GroupDocsFileDescription getFileDescription(String guid) throws Exception
InputDataHandler
getFileDescription
in class InputDataHandler
guid
- file idException
public InputStream getFile(String guid)
InputDataHandler
getFile
in class InputDataHandler
guid
- file idpublic String saveFile(InputStream inputStream, String fileName, Integer timeToLive, String encryptedKey)
InputDataHandler
saveFile
in class InputDataHandler
inputStream
- Input stream of object to be saved/uploadedfileName
- file nametimeToLive
- TTL, 0 - unlimitedencryptedKey
- encryption keyCopyright © 2015. All rights reserved.