@Service public class FileSystemPersistenceStrategy extends java.lang.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.
|
java.lang.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 java.lang.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 © 2019 Jasig. All Rights Reserved.