Class TdeDocumentFileProcessor
- java.lang.Object
-
- com.marklogic.client.ext.helper.LoggingObject
-
- com.marklogic.client.ext.schemasloader.impl.TdeDocumentFileProcessor
-
- All Implemented Interfaces:
DocumentFileProcessor
public class TdeDocumentFileProcessor extends LoggingObject implements DocumentFileProcessor
-
-
Field Summary
-
Fields inherited from class com.marklogic.client.ext.helper.LoggingObject
logger
-
-
Constructor Summary
Constructors Constructor Description TdeDocumentFileProcessor()Use this constructor when you don't want any TDE validation to occur.TdeDocumentFileProcessor(com.marklogic.client.DatabaseClient databaseClient, java.lang.String tdeValidationDatabase)Use this constructor when you want to validate a TDE template before writing it to MarkLogic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.marklogic.client.eval.ServerEvaluationCallbuildJavascriptCall(DocumentFile documentFile, java.lang.String fileContent)protected com.marklogic.client.eval.ServerEvaluationCallbuildXqueryCall(DocumentFile documentFile, java.lang.String fileContent)com.marklogic.client.DatabaseClientgetDatabaseClient()java.lang.StringgetTdeValidationDatabase()DocumentFileprocessDocumentFile(DocumentFile documentFile)voidsetDatabaseClient(com.marklogic.client.DatabaseClient databaseClient)voidsetTdeValidationDatabase(java.lang.String tdeValidationDatabase)protected voidvalidateTdeTemplate(DocumentFile documentFile)-
Methods inherited from class com.marklogic.client.ext.helper.LoggingObject
format
-
-
-
-
Constructor Detail
-
TdeDocumentFileProcessor
public TdeDocumentFileProcessor()
Use this constructor when you don't want any TDE validation to occur.
-
TdeDocumentFileProcessor
public TdeDocumentFileProcessor(com.marklogic.client.DatabaseClient databaseClient, java.lang.String tdeValidationDatabase)Use this constructor when you want to validate a TDE template before writing it to MarkLogic.- Parameters:
databaseClient-
-
-
Method Detail
-
processDocumentFile
public DocumentFile processDocumentFile(DocumentFile documentFile)
- Specified by:
processDocumentFilein interfaceDocumentFileProcessor- Returns:
- the same or a new DocumentFile instance
-
validateTdeTemplate
protected void validateTdeTemplate(DocumentFile documentFile)
-
buildJavascriptCall
protected com.marklogic.client.eval.ServerEvaluationCall buildJavascriptCall(DocumentFile documentFile, java.lang.String fileContent)
-
buildXqueryCall
protected com.marklogic.client.eval.ServerEvaluationCall buildXqueryCall(DocumentFile documentFile, java.lang.String fileContent)
-
getDatabaseClient
public com.marklogic.client.DatabaseClient getDatabaseClient()
-
setDatabaseClient
public void setDatabaseClient(com.marklogic.client.DatabaseClient databaseClient)
-
getTdeValidationDatabase
public java.lang.String getTdeValidationDatabase()
-
setTdeValidationDatabase
public void setTdeValidationDatabase(java.lang.String tdeValidationDatabase)
-
-