info.magnolia.module.data.samples
Class CompanyImportHandler

java.lang.Object
  extended by info.magnolia.module.data.importer.ImportHandler
      extended by info.magnolia.module.data.samples.CompanyImportHandler

public class CompanyImportHandler
extends ImportHandler

Example of the importer implementation. This simple importer just creates one new company node.

Author:
had

Field Summary
 
Fields inherited from class info.magnolia.module.data.importer.ImportHandler
activateImport, automatedExecution, backup, backupFile, deleteOldData, lockDuringImport, MILLI_2_HOUR, name, NODE_DATA_IMPORT_STATE, NODE_DATA_IMPORT_STATE_NEW, NODE_DATA_IMPORT_STATE_OLD, NODE_DATA_USED_IMPORTER_TARGET, repository, running, targets
 
Constructor Summary
CompanyImportHandler()
           
 
Method Summary
protected  Set<String> doImport(ImportTarget target, info.magnolia.cms.core.Content parent, Set<String> uuids)
          Implement this method to do the import job.
 
Methods inherited from class info.magnolia.module.data.importer.ImportHandler
addTarget, backup, checkPreConditions, collectOldContent, destroy, doPostImport, execute, executeImport, getAutomatedExecution, getName, getParent, getRepository, getTargets, isActivateImport, isBackup, isDeleteOldData, isLockDuringImport, lock, restore, setActivateImport, setAutomatedExecution, setBackup, setDeleteOldData, setImportState, setLockDuringImport, setName, setRepository, setTargets, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyImportHandler

public CompanyImportHandler()
Method Detail

doImport

protected Set<String> doImport(ImportTarget target,
                               info.magnolia.cms.core.Content parent,
                               Set<String> uuids)
                        throws ImportException
Description copied from class: ImportHandler
Implement this method to do the import job.

Specified by:
doImport in class ImportHandler
Parameters:
target - the import target to use
parent - the node to import below
uuids - ordered set containing the uuids
Returns:
uuids of the imported nodes
Throws:
ImportException


Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.