public class ExportJcrNodeToYamlCommand extends BaseRepositoryCommand
Note: Supports only those JCR paths that represent the roots of definition objects, i.e. which are possible
to query from RegistryFacade
.
Note: 'extends' property is 'expanded' meaning that exported Yaml has effective structure with all the data and no 'extends'.
Registry
Modifier and Type | Field and Description |
---|---|
static String |
EXPORT_OUTPUT_STREAM |
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
ExportJcrNodeToYamlCommand(RegistryFacade registryFacade,
DefinitionRawViewToYamlConverter definitionRawViewToYamlConverter) |
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 |
getFileName() |
OutputStream |
getOutputStream() |
void |
setFileName(String fileName) |
void |
setOutputStream(OutputStream outputStream) |
getJCRNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
public static final String EXPORT_OUTPUT_STREAM
@Inject public ExportJcrNodeToYamlCommand(RegistryFacade registryFacade, DefinitionRawViewToYamlConverter definitionRawViewToYamlConverter)
public boolean execute(Context context) throws Exception
MgnlCommand
execute
in class MgnlCommand
Exception
public boolean checkPermissions(String repository, String basePath, long permissionType)
true
if read access is grantedpublic OutputStream getOutputStream()
public void setOutputStream(OutputStream outputStream)
outputStream
- the outputStream to setpublic String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setCopyright © 2003–2020 Magnolia International Ltd.. All rights reserved.