public class ImportCommand extends ExportCommand
Modifier and Type | Field and Description |
---|---|
static String |
IMPORT_IDENTIFIER_BEHAVIOR |
static String |
IMPORT_XML_FILE_NAME |
static String |
IMPORT_XML_STREAM |
EXPORT_EXTENSION, EXPORT_FILE_NAME, EXPORT_FORMAT, EXPORT_KEEP_HISTORY, EXPORT_MIME_EXTENSION, EXPORT_OUTPUT_STREAM, MIME_APPLICATION_ZIP, MIME_GZIP, MIME_TEXT_XML
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
ImportCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Context context)
This is the actual method to be overridden in descendant classes.
|
int |
getIdentifierBehavior() |
String |
getXmlFileName() |
InputStream |
getXmlStream() |
boolean |
isForceUnpublishState() |
void |
setForceUnpublishState(boolean forceUnpublishState) |
void |
setIdentifierBehavior(int identifierBehavior)
See
ImportUUIDBehavior constants definition. |
void |
setXmlFileName(String xmlFileName) |
void |
setXmlStream(InputStream xmlStream) |
checkPermissions, getExt, getFileName, getMimeExtension, getOutputStream, isFormat, isKeepHistory, setExt, setFileName, setFormat, setKeepHistory, setMimeExtension, setOutputStream
getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
public static final String IMPORT_XML_STREAM
public static final String IMPORT_XML_FILE_NAME
public static final String IMPORT_IDENTIFIER_BEHAVIOR
public boolean execute(Context context) throws Exception
MgnlCommand
execute
in class ExportCommand
Exception
public InputStream getXmlStream()
public void setXmlStream(InputStream xmlStream)
xmlStream
- the xmlStream to setpublic boolean isForceUnpublishState()
public void setForceUnpublishState(boolean forceUnpublishState)
public String getXmlFileName()
public void setXmlFileName(String xmlFileName)
xmlFileName
- the xmlFileName to setpublic int getIdentifierBehavior()
public void setIdentifierBehavior(int identifierBehavior)
ImportUUIDBehavior
constants definition.identifierBehavior
- the identifierBehavior to setCopyright © 2003–2016 Magnolia International Ltd.. All rights reserved.