Class LegacyAttachmentDataDaoSupport
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.LegacyAttachmentDataDaoSupport
This class provides support logic for legacy 
AttachmentDataDao implementations that only support
 AttachmentDataStreamType.RAW_BINARY, and that already have implementations of the deprecated
 InputStream-based methods.
 
 See FileSystemAttachmentDataDao
 See HibernateAttachmentDataDao
- Since:
- 5.5
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static voidassertIsRawBinary(AttachmentDataStreamType dataStreamType) getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType) voidreplaceDataForAttachment(Attachment attachment, AttachmentDataStream dataStream) voidsaveDataForAttachment(Attachment attachment, AttachmentDataStream dataStream) voidsaveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream) 
- 
Constructor Details- 
LegacyAttachmentDataDaoSupport
 
- 
- 
Method Details- 
getAttachmentDataStreampublic AttachmentDataStream getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType) throws AttachmentDataNotFoundException - Throws:
- AttachmentDataNotFoundException
 
- 
saveDataForAttachment
- 
saveDataForAttachmentVersionpublic void saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream) 
- 
replaceDataForAttachment
- 
assertIsRawBinary
 
-