com.atlassian.confluence.importexport.xmlimport.persister
Class PropertySetItemPersister

java.lang.Object
  extended by com.atlassian.confluence.importexport.xmlimport.persister.PropertySetItemPersister
All Implemented Interfaces:
ObjectPersister

public class PropertySetItemPersister
extends java.lang.Object
implements ObjectPersister

Persister for PropertySet items that handles some rather hairy upgrade logic, for example the rewriting of IDs.


Constructor Summary
PropertySetItemPersister()
           
 
Method Summary
 java.util.List<TransientHibernateHandle> persist(ImportProcessorContext context, ImportedObject object)
          Persist a given imported object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySetItemPersister

public PropertySetItemPersister()
Method Detail

persist

public java.util.List<TransientHibernateHandle> persist(ImportProcessorContext context,
                                                        ImportedObject object)
                                                 throws java.lang.Exception
Description copied from interface: ObjectPersister
Persist a given imported object.

Specified by:
persist in interface ObjectPersister
Parameters:
context - the context of the current import operation
object - the object to save.
Returns:
a list of handles of the objects that were saved. If IDs are being rewritten on import, this list should still contain the pre-rewriting ID as it appears in the backup file
Throws:
java.lang.Exception - if something goes wrong. To avoid duplication of "wrap everything in one exception type" code in every persister, it is assumed wrapping happens at a higher level.


Copyright © 2003-2013 Atlassian. All Rights Reserved.