public class ExportCommand extends BaseRepositoryCommand
Modifier and Type | Field and Description |
---|---|
static String |
EXPORT_EXTENSION |
static String |
EXPORT_FILE_NAME |
static String |
EXPORT_FORMAT |
static String |
EXPORT_KEEP_HISTORY |
static String |
EXPORT_MIME_EXTENSION |
static String |
EXPORT_OUTPUT_STREAM |
static String |
MIME_APPLICATION_ZIP |
static String |
MIME_GZIP |
static String |
MIME_TEXT_XML |
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
ExportCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermissions(String repository,
String basePath,
long permissionType)
Uses access manager to authorize this request.
|
boolean |
execute(Context context)
This is the actual method to be overridden in descendant classes.
|
String |
getExt() |
String |
getFileName() |
String |
getMimeExtension() |
OutputStream |
getOutputStream() |
boolean |
isFormat() |
boolean |
isKeepHistory() |
void |
setExt(String ext) |
void |
setFileName(String fileName) |
void |
setFormat(boolean format) |
void |
setKeepHistory(boolean keepHistory) |
void |
setMimeExtension(String mimeExtension) |
void |
setOutputStream(OutputStream outputStream) |
getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
public static final String MIME_TEXT_XML
public static final String MIME_GZIP
public static final String MIME_APPLICATION_ZIP
public static final String EXPORT_EXTENSION
public static final String EXPORT_FORMAT
public static final String EXPORT_KEEP_HISTORY
public static final String EXPORT_FILE_NAME
public static final String EXPORT_MIME_EXTENSION
public static final String EXPORT_OUTPUT_STREAM
public boolean execute(Context context) throws Exception
MgnlCommand
execute
in class MgnlCommand
Exception
public boolean checkPermissions(String repository, String basePath, long permissionType)
public String getExt()
public void setExt(String ext)
ext
- the ext to setpublic boolean isFormat()
public void setFormat(boolean format)
format
- the format to setpublic boolean isKeepHistory()
public void setKeepHistory(boolean keepHistory)
keepHistory
- the keepHistory to setpublic String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setpublic OutputStream getOutputStream()
public void setOutputStream(OutputStream outputStream)
outputStream
- the outputStream to setpublic String getMimeExtension()
public void setMimeExtension(String mimeExtension)
mimeExtension
- the mimeExtension to setCopyright © 2003–2015 Magnolia International Ltd.. All rights reserved.