Package tigase.db.util.importexport
Class Exporter
java.lang.Object
tigase.db.util.importexport.Exporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandlineParameterstatic final CommandlineParameter -
Constructor Summary
ConstructorsConstructorDescriptionExporter(RepositoryHolder repositoryHolder, VHostJDBCRepository vhostRepository, List<RepositoryManagerExtension> extensions, Path rootPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidexportDomain(Path domainFilePath, String domain, Writer writer) static voidexportInclude(Writer parentWriter, Path rootPath, Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) protected voidexportUser(UserRepository userRepository, Path userFilePath, BareJID user, Writer writer) static Integerstatic voidopenXmlFile(Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) static DateparseTimestamp(String str)
-
Field Details
-
EXPORT_MAM_SINCE
-
EXPORT_MAM_BATCH_SIZE
-
-
Constructor Details
-
Exporter
public Exporter(RepositoryHolder repositoryHolder, VHostJDBCRepository vhostRepository, List<RepositoryManagerExtension> extensions, Path rootPath)
-
-
Method Details
-
getExportMAMSinceValue
-
getExportMAMBatchSize
-
parseTimestamp
-
exportInclude
public static void exportInclude(Writer parentWriter, Path rootPath, Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) throws Exception - Throws:
Exception
-
openXmlFile
public static void openXmlFile(Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) throws Exception - Throws:
Exception
-
export
- Throws:
Exception
-
exportDomain
- Throws:
Exception
-
exportUser
protected void exportUser(UserRepository userRepository, Path userFilePath, BareJID user, Writer writer) throws Exception - Throws:
Exception
-