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 void
assertIsRawBinary
(AttachmentDataStreamType dataStreamType) 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 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
-