public class ExportJcrNodeToYamlCommand
extends info.magnolia.commands.impl.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 |
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(info.magnolia.context.Context context) |
String |
getFileName() |
OutputStream |
getOutputStream() |
void |
setFileName(String fileName) |
void |
setOutputStream(OutputStream outputStream) |
getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
public static final String EXPORT_OUTPUT_STREAM
@Inject public ExportJcrNodeToYamlCommand(RegistryFacade registryFacade, DefinitionRawViewToYamlConverter definitionRawViewToYamlConverter)
public boolean execute(info.magnolia.context.Context context) throws Exception
execute
in class info.magnolia.commands.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–2016 Magnolia International Ltd.. All rights reserved.