info.magnolia.commands.impl
Class ImportCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.commands.impl.BaseRepositoryCommand
info.magnolia.commands.impl.ExportCommand
info.magnolia.commands.impl.ImportCommand
- All Implemented Interfaces:
- Command, Cloneable
public class ImportCommand
- extends ExportCommand
Generic Import Command.
Based on an InputStream representing a XML node structure, create the Node
tree under the
specified workspace and path.
Methods inherited from class info.magnolia.commands.impl.ExportCommand |
checkPermissions, getExt, getFileName, getMimeExtension, getOutputStream, isFormat, isKeepHistory, setExt, setFileName, setFormat, setKeepHistory, setMimeExtension, setOutputStream |
IMPORT_XML_STREAM
public static final String IMPORT_XML_STREAM
- See Also:
- Constant Field Values
IMPORT_XML_FILE_NAME
public static final String IMPORT_XML_FILE_NAME
- See Also:
- Constant Field Values
IMPORT_IDENTIFIER_BEHAVIOR
public static final String IMPORT_IDENTIFIER_BEHAVIOR
- See Also:
- Constant Field Values
ImportCommand
public ImportCommand()
execute
public boolean execute(Context context)
throws Exception
- Description copied from class:
MgnlCommand
- This is the actual method to be overridden in descendant classes.
- Overrides:
execute
in class ExportCommand
- Throws:
Exception
getXmlStream
public InputStream getXmlStream()
- Returns:
- the xmlStream
setXmlStream
public void setXmlStream(InputStream xmlStream)
- Parameters:
xmlStream
- the xmlStream to set
isForceUnpublishState
public boolean isForceUnpublishState()
- Returns:
- the forceUnpublishState
setForceUnpublishState
public void setForceUnpublishState(boolean forceUnpublishState)
getXmlFileName
public String getXmlFileName()
- Returns:
- the xmlFileName
setXmlFileName
public void setXmlFileName(String xmlFileName)
- Parameters:
xmlFileName
- the xmlFileName to set
getIdentifierBehavior
public int getIdentifierBehavior()
- Returns:
- the identifierBehavior
setIdentifierBehavior
public void setIdentifierBehavior(int identifierBehavior)
- See
ImportUUIDBehavior
constants definition.
- Parameters:
identifierBehavior
- the identifierBehavior to set
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.