@Component public class MasteringManagerImpl extends java.lang.Object implements MasteringManager
| Modifier and Type | Field and Description |
|---|---|
protected HubConfig |
hubConfig |
protected HubProject |
hubProject |
protected com.marklogic.hub.impl.MasteringManagerImpl.MatchResource |
matchResource |
protected com.marklogic.hub.impl.MasteringManagerImpl.MergeResource |
mergeResource |
protected com.marklogic.client.DatabaseClient |
srcClient |
| Constructor and Description |
|---|
MasteringManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
match(java.lang.String matchURI,
java.lang.String flowName,
java.lang.String stepNumber,
java.lang.Boolean includeMatchDetails,
com.fasterxml.jackson.databind.JsonNode options)
Returns potential candidates for merging with a document
|
com.fasterxml.jackson.databind.JsonNode |
merge(java.util.List<java.lang.String> mergeURIs,
java.lang.String flowName,
java.lang.String stepNumber,
java.lang.Boolean preview,
com.fasterxml.jackson.databind.JsonNode options)
Manually merges a set of documents
|
com.fasterxml.jackson.databind.JsonNode |
unmerge(java.lang.String mergeURI,
java.lang.Boolean retainAuditTrail,
java.lang.Boolean blockFutureMerges)
Reverses the last set of merges made into the given merge UR
|
@Autowired protected HubConfig hubConfig
@Autowired protected HubProject hubProject
protected com.marklogic.client.DatabaseClient srcClient
protected com.marklogic.hub.impl.MasteringManagerImpl.MergeResource mergeResource
protected com.marklogic.hub.impl.MasteringManagerImpl.MatchResource matchResource
public com.fasterxml.jackson.databind.JsonNode unmerge(java.lang.String mergeURI,
java.lang.Boolean retainAuditTrail,
java.lang.Boolean blockFutureMerges)
MasteringManagerunmerge in interface MasteringManagermergeURI - - URI of the merged document that is being reversedretainAuditTrail - - determines if provenance for the merge/unmerge is keptblockFutureMerges - - ensures that the documents won't be merged together in the next mastering run, if truepublic com.fasterxml.jackson.databind.JsonNode merge(java.util.List<java.lang.String> mergeURIs,
java.lang.String flowName,
java.lang.String stepNumber,
java.lang.Boolean preview,
com.fasterxml.jackson.databind.JsonNode options)
MasteringManagermerge in interface MasteringManagermergeURIs - - URIs of the documents to mergeflowName - - The name of the flow that has the mastering settingsstepNumber - - The number of the mastering step with settingspreview - - determines if the changes should be written to the databaseoptions - - Overrides any options for the steppublic com.fasterxml.jackson.databind.JsonNode match(java.lang.String matchURI,
java.lang.String flowName,
java.lang.String stepNumber,
java.lang.Boolean includeMatchDetails,
com.fasterxml.jackson.databind.JsonNode options)
MasteringManagermatch in interface MasteringManagermatchURI - - URI of the document to find matches forflowName - - The name of the flow that has the mastering settingsstepNumber - - The number of the mastering step with settingsincludeMatchDetails - - determines if the results should also return details of how matches occurredoptions - - Overrides any options for the step