public class LegacyAttachmentDataDaoSupport extends Object
AttachmentDataDao
implementations that only support
AttachmentDataStreamType.RAW_BINARY
, and that already have implementations of the deprecated
InputStream
-based methods.
See FileSystemAttachmentDataDao
See HibernateAttachmentDataDao
Constructor and Description |
---|
LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao) |
Modifier and Type | Method and 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) |
public LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao)
public AttachmentDataStream getAttachmentDataStream(Attachment attachment, AttachmentDataStreamType dataStreamType) throws AttachmentDataNotFoundException
AttachmentDataNotFoundException
public void saveDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
public void saveDataForAttachmentVersion(Attachment attachment, Attachment previousVersion, AttachmentDataStream dataStream)
public void replaceDataForAttachment(Attachment attachment, AttachmentDataStream dataStream)
protected static void assertIsRawBinary(AttachmentDataStreamType dataStreamType)
Copyright © 2003–2021 Atlassian. All rights reserved.