public class JcrRepositoryDumpToFile extends Object
To use:
systemListeners.xml
:
<bean id="dumpToFilePentahoSystemListener" class="org.pentaho.platform.repository2.unified.jcr.DumpToFilePentahoSystemListener" />
-Dpentaho.repository.dumpToFile=/tmp/repodumpor
-Dpentaho.repository.dumpToFile.systemView=/tmp/repodumpor
-Dpentaho.repository.dumpToFile.documentView=/tmp/repodump
Uses PentahoSystem instead of Spring injection since its collaborators are not yet instantiated when this class is instantiated.
Modifier and Type | Class and Description |
---|---|
static class |
JcrRepositoryDumpToFile.DumpToFileTraversingItemVisitor |
static class |
JcrRepositoryDumpToFile.Mode |
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DUMP_TO_FILE
Exports the repository using a custom TraversingItemVisitor.
|
static String |
PROP_DUMP_TO_FILE_DOCUMENT_VIEW
Exports the repository using Document View.
|
static String |
PROP_DUMP_TO_FILE_SYSTEM_VIEW
Exports the repository using System View.
|
Constructor and Description |
---|
JcrRepositoryDumpToFile(org.springframework.extensions.jcr.JcrTemplate jcrTemplate,
org.springframework.transaction.support.TransactionTemplate txnTemplate,
String repositoryAdminUsername,
String filename,
JcrRepositoryDumpToFile.Mode mode) |
Modifier and Type | Method and Description |
---|---|
protected IPentahoSession |
createRepositoryAdminPentahoSession(String repositoryAdminUsername) |
void |
execute() |
public static final String PROP_DUMP_TO_FILE
public static final String PROP_DUMP_TO_FILE_SYSTEM_VIEW
public static final String PROP_DUMP_TO_FILE_DOCUMENT_VIEW
public JcrRepositoryDumpToFile(org.springframework.extensions.jcr.JcrTemplate jcrTemplate, org.springframework.transaction.support.TransactionTemplate txnTemplate, String repositoryAdminUsername, String filename, JcrRepositoryDumpToFile.Mode mode)
public void execute()
protected IPentahoSession createRepositoryAdminPentahoSession(String repositoryAdminUsername)
Copyright © 2017 Hitachi Vantara. All rights reserved.