info.magnolia.module.data.samples
Class CompanyImportHandler
java.lang.Object
info.magnolia.module.data.importer.ImportHandler
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
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 |
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 |
CompanyImportHandler
public CompanyImportHandler()
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 useparent
- the node to import belowuuids
- ordered set containing the uuids
- Returns:
- uuids of the imported nodes
- Throws:
ImportException
Copyright © 2012 Magnolia International Ltd.. All Rights Reserved.