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 Summary
Constructors - 
Method Summary
Modifier 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
- 
getAttachmentDataStream
public AttachmentDataStream getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType) throws AttachmentDataNotFoundException - Throws:
 AttachmentDataNotFoundException
 - 
saveDataForAttachment
 - 
saveDataForAttachmentVersion
public void saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream)  - 
replaceDataForAttachment
 - 
assertIsRawBinary
 
 -