@Service public class FileSystemPersistenceStrategy extends Object implements IDocumentPersistenceStrategy
| Constructor and Description |
|---|
FileSystemPersistenceStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 boolean isPersistenceIntoDatabaseRequired()
IDocumentPersistenceStrategyisPersistenceIntoDatabaseRequired in interface IDocumentPersistenceStrategyCopyright © 2017 Jasig. All Rights Reserved.