@Service public class AmazonS3PersistenceStrategy extends Object implements IDocumentPersistenceStrategy
| Constructor and Description |
|---|
AmazonS3PersistenceStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getS3BucketBaseUrl() |
String |
getS3BucketName() |
String |
getS3BucketPath() |
String |
getS3CacheControlString() |
boolean |
isPersistenceIntoDatabaseRequired()
Boolean indicating whether or not attachment data is stored into the database.
|
String |
persistAttachmentBinary(javax.servlet.http.HttpServletRequest request,
Attachment attachment)
Accepts an attachment to save and persists the attachment binary data using the implemented persistence strategy.
|
void |
setPersistenceIntoDatabaseRequired(boolean persistenceIntoDatabaseRequired)
Boolean indicating whether or not to store the file data into the database.
|
void |
setS3BucketBaseUrl(String s3BucketBaseUrl) |
void |
setS3BucketName(String s3BucketName) |
void |
setS3BucketPath(String s3BucketPath) |
void |
setS3CacheControlString(String s3CacheControlString) |
public String persistAttachmentBinary(javax.servlet.http.HttpServletRequest request, Attachment attachment) throws PersistenceException
IDocumentPersistenceStrategypersistAttachmentBinary in interface IDocumentPersistenceStrategyrequest - HTTPServletRequest. May be null to indicate a data import operation.attachment - attachment containing data to savePersistenceException - Exception persisting the document to the persistence storepublic void setPersistenceIntoDatabaseRequired(boolean persistenceIntoDatabaseRequired)
persistenceIntoDatabaseRequired - True to store the file data in the database, else false.public boolean isPersistenceIntoDatabaseRequired()
IDocumentPersistenceStrategyisPersistenceIntoDatabaseRequired in interface IDocumentPersistenceStrategypublic String getS3BucketName()
public void setS3BucketName(String s3BucketName)
public String getS3BucketBaseUrl()
public void setS3BucketBaseUrl(String s3BucketBaseUrl)
public String getS3BucketPath()
public void setS3BucketPath(String s3BucketPath)
public String getS3CacheControlString()
public void setS3CacheControlString(String s3CacheControlString)
Copyright © 2017 Jasig. All Rights Reserved.