com.atlassian.confluence.upgrade.upgradetask.attachmentceo
Class AttachmentToContentMigrator

java.lang.Object
  extended by com.atlassian.confluence.upgrade.upgradetask.attachmentceo.AttachmentToContentMigrator

public class AttachmentToContentMigrator
extends Object

Migrates attachments from the attachments table to the content table. This also reindexes attachments as they must exist in the content table when we add them to the queue.


Constructor Summary
AttachmentToContentMigrator(net.sf.hibernate.Session session, com.atlassian.hibernate.extras.ResettableTableHiLoGenerator contentPropertyIdGenerator, ConfluenceIndexer confluenceIndexer, DdlExecutor ddlExecutor, DropForeignKeyConstraintCommandFactory dropForeignKeyConstraintCommandFactory, Map<Long,Long> remappedAttachmentIds, Set<Long> idsToReindex, boolean minorEditExists, boolean contentLabelAttIdExists)
           
 
Method Summary
 void migrateAttachments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentToContentMigrator

public AttachmentToContentMigrator(net.sf.hibernate.Session session,
                                   com.atlassian.hibernate.extras.ResettableTableHiLoGenerator contentPropertyIdGenerator,
                                   ConfluenceIndexer confluenceIndexer,
                                   DdlExecutor ddlExecutor,
                                   DropForeignKeyConstraintCommandFactory dropForeignKeyConstraintCommandFactory,
                                   Map<Long,Long> remappedAttachmentIds,
                                   Set<Long> idsToReindex,
                                   boolean minorEditExists,
                                   boolean contentLabelAttIdExists)
Method Detail

migrateAttachments

public void migrateAttachments()
                        throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException


Copyright © 2003–2015 Atlassian. All rights reserved.