Class LegacyAttachmentDataDaoSupport
- java.lang.Object
-
- com.atlassian.confluence.pages.persistence.dao.LegacyAttachmentDataDaoSupport
-
public class LegacyAttachmentDataDaoSupport extends Object
This class provides support logic for legacyAttachmentDataDao
implementations that only supportAttachmentDataStreamType.RAW_BINARY
, and that already have implementations of the deprecatedInputStream
-based methods.See
FileSystemAttachmentDataDao
SeeHibernateAttachmentDataDao
- 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 void
assertIsRawBinary(AttachmentDataStreamType dataStreamType)
AttachmentDataStream
getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType)
void
replaceDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
void
saveDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
void
saveDataForAttachmentVersion(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)
-
-