com.atlassian.confluence.pages.persistence.dao
Class LegacyAttachmentDataDaoSupport
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.LegacyAttachmentDataDaoSupport
public class LegacyAttachmentDataDaoSupport
- extends java.lang.Object
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:
- v5.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LegacyAttachmentDataDaoSupport
public LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao)
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)
Copyright © 2003-2014 Atlassian. All Rights Reserved.