@Component public class MasteringManagerImpl extends java.lang.Object implements MasteringManager
| Constructor and Description |
|---|
MasteringManagerImpl(com.marklogic.hub.HubClientConfig hubClientConfig) |
MasteringManagerImpl(HubConfig hubConfig) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
deleteNotifications(java.util.List<java.lang.String> uris) |
com.fasterxml.jackson.databind.JsonNode |
documentHistory(java.lang.String mergedURI)
Returns provenance information about a merged document
|
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 |
mergePreview(java.lang.String flowName,
java.util.List<java.lang.String> uris)
Manually merges a set of documents
|
com.fasterxml.jackson.databind.JsonNode |
notifications(int start,
int pageLength)
Returns notifications
|
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
|
com.fasterxml.jackson.databind.JsonNode |
unmergeRecord(java.lang.String mergeURI,
java.lang.Boolean retainAuditTrail,
java.lang.Boolean blockFutureMerges,
java.util.List<java.lang.String> removeURIs)
Unmerges the set of uris from a merged document
|
protected HubConfig hubConfig
@Autowired public MasteringManagerImpl(HubConfig hubConfig)
public MasteringManagerImpl(com.marklogic.hub.HubClientConfig hubClientConfig)
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 unmergeRecord(java.lang.String mergeURI,
java.lang.Boolean retainAuditTrail,
java.lang.Boolean blockFutureMerges,
java.util.List<java.lang.String> removeURIs)
MasteringManagerunmergeRecord 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 trueremoveURIs - - URIs of the merged documents that we want to unmergepublic 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 mergePreview(java.lang.String flowName,
java.util.List<java.lang.String> uris)
MasteringManagermergePreview in interface MasteringManagerflowName - - The name of the flow that has the merge settingspublic 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 steppublic com.fasterxml.jackson.databind.JsonNode documentHistory(java.lang.String mergedURI)
MasteringManagerdocumentHistory in interface MasteringManagermergedURI - - URI of the document that represents a mergepublic com.fasterxml.jackson.databind.JsonNode notifications(int start,
int pageLength)
MasteringManagernotifications in interface MasteringManagerstart - - (optional, defaulting to 1) the 1-based index of the first notification to returnpageLength - - (optional, defaulting to 10) the number of notifications to returnpublic com.fasterxml.jackson.databind.JsonNode deleteNotifications(java.util.List<java.lang.String> uris)
deleteNotifications in interface MasteringManageruris - - notification document URIs to delete