info.magnolia.commands.impl
Class ExportCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.commands.impl.BaseRepositoryCommand
info.magnolia.commands.impl.ExportCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- ImportCommand
public class ExportCommand
- extends BaseRepositoryCommand
Generic Export Command.
Get as Input parameter:
Workspace and node path to export
Set as output:
Fill the OutputStream with an XML representation of the Node structure
Define the MimeType and File name.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_TEXT_XML
public static final String MIME_TEXT_XML
- See Also:
- Constant Field Values
MIME_GZIP
public static final String MIME_GZIP
- See Also:
- Constant Field Values
MIME_APPLICATION_ZIP
public static final String MIME_APPLICATION_ZIP
- See Also:
- Constant Field Values
EXPORT_EXTENSION
public static final String EXPORT_EXTENSION
- See Also:
- Constant Field Values
EXPORT_FORMAT
public static final String EXPORT_FORMAT
- See Also:
- Constant Field Values
EXPORT_KEEP_HISTORY
public static final String EXPORT_KEEP_HISTORY
- See Also:
- Constant Field Values
EXPORT_FILE_NAME
public static final String EXPORT_FILE_NAME
- See Also:
- Constant Field Values
EXPORT_MIME_EXTENSION
public static final String EXPORT_MIME_EXTENSION
- See Also:
- Constant Field Values
EXPORT_OUTPUT_STREAM
public static final String EXPORT_OUTPUT_STREAM
- See Also:
- Constant Field Values
ExportCommand
public ExportCommand()
execute
public boolean execute(Context context)
throws Exception
- Description copied from class:
MgnlCommand
- This is the actual method to be overridden in descendant classes.
- Specified by:
execute
in class MgnlCommand
- Throws:
Exception
checkPermissions
public boolean checkPermissions(String repository,
String basePath,
long permissionType)
- Uses access manager to authorize this request.
- Returns:
- boolean true if read access is granted
getExt
public String getExt()
- Returns:
- the ext
setExt
public void setExt(String ext)
- Parameters:
ext
- the ext to set
isFormat
public boolean isFormat()
- Returns:
- the format
setFormat
public void setFormat(boolean format)
- Parameters:
format
- the format to set
isKeepHistory
public boolean isKeepHistory()
- Returns:
- the keepHistory
setKeepHistory
public void setKeepHistory(boolean keepHistory)
- Parameters:
keepHistory
- the keepHistory to set
getFileName
public String getFileName()
- Returns:
- the fileName
setFileName
public void setFileName(String fileName)
- Parameters:
fileName
- the fileName to set
getOutputStream
public OutputStream getOutputStream()
- Returns:
- the outputStream
setOutputStream
public void setOutputStream(OutputStream outputStream)
- Parameters:
outputStream
- the outputStream to set
getMimeExtension
public String getMimeExtension()
- Returns:
- the mimeExtension
setMimeExtension
public void setMimeExtension(String mimeExtension)
- Parameters:
mimeExtension
- the mimeExtension to set
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.