Package tigase.db.util.importexport
Class Exporter
java.lang.Object
tigase.db.util.importexport.Exporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandlineParameter
static final CommandlineParameter
-
Constructor Summary
ConstructorsConstructorDescriptionExporter
(RepositoryHolder repositoryHolder, VHostJDBCRepository vhostRepository, List<RepositoryManagerExtension> extensions, Path rootPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
exportDomain
(Path domainFilePath, String domain, Writer writer) static void
exportInclude
(Writer parentWriter, Path rootPath, Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) protected void
exportUser
(UserRepository userRepository, Path userFilePath, BareJID user, Writer writer) static Integer
static void
openXmlFile
(Path filePath, RepositoryManager.ThrowingConsumer<Writer> writerConsumer) static Date
parseTimestamp
(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
-