com.atlassian.confluence.pages.persistence.dao
Class LegacyAttachmentDataDaoSupport

java.lang.Object
  extended by com.atlassian.confluence.pages.persistence.dao.LegacyAttachmentDataDaoSupport

public class LegacyAttachmentDataDaoSupport
extends 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

Constructor Summary
LegacyAttachmentDataDaoSupport(AttachmentDataDao delegateDao)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)


Copyright © 2003–2015 Atlassian. All rights reserved.