Class LegacyAttachmentDataDaoSupport
- java.lang.Object
-
- com.atlassian.confluence.pages.persistence.dao.LegacyAttachmentDataDaoSupport
-
public class LegacyAttachmentDataDaoSupport extends Object
This class provides support logic for legacyAttachmentDataDaoimplementations that only supportAttachmentDataStreamType.RAW_BINARY, and that already have implementations of the deprecatedInputStream-based methods.See
FileSystemAttachmentDataDaoSeeHibernateAttachmentDataDao- Since:
- 5.5
-
-
Constructor Summary
Constructors Constructor Description LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidassertIsRawBinary(AttachmentDataStreamType dataStreamType)AttachmentDataStreamgetAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType)voidreplaceDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)voidsaveDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)voidsaveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream)
-
-
-
Constructor Detail
-
LegacyAttachmentDataDaoSupport
public LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao)
-
-
Method Detail
-
getAttachmentDataStream
public AttachmentDataStream getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType) throws AttachmentDataNotFoundException
- Throws:
AttachmentDataNotFoundException
-
saveDataForAttachment
public void saveDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
-
saveDataForAttachmentVersion
public void saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream)
-
replaceDataForAttachment
public void replaceDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
-
assertIsRawBinary
protected static void assertIsRawBinary(AttachmentDataStreamType dataStreamType)
-
-