info.magnolia.module.data.commands
Class ImportCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.module.data.commands.ImportCommand
All Implemented Interfaces:
org.apache.commons.chain.Command

public class ImportCommand
extends info.magnolia.commands.MgnlCommand

This command starts the specified importer.

Version:
$Revision$ ($Author$)

Field Summary
protected  String importer
           
static String NODE_DATA_IMPORTER_NAME
           
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ImportCommand()
           
 
Method Summary
 boolean execute(info.magnolia.context.Context ctx)
          This method retrieves the importer for the configured name and executes it.
 String getImporter()
           
 void release()
           
 void setImporter(String importer)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_DATA_IMPORTER_NAME

public static final String NODE_DATA_IMPORTER_NAME
See Also:
Constant Field Values

importer

protected String importer
Constructor Detail

ImportCommand

public ImportCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context ctx)
This method retrieves the importer for the configured name and executes it.

Specified by:
execute in class info.magnolia.commands.MgnlCommand
See Also:
Command.execute(org.apache.commons.chain.Context)

getImporter

public String getImporter()

setImporter

public void setImporter(String importer)

release

public void release()
Overrides:
release in class info.magnolia.commands.MgnlCommand


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