@Component public class MasteringManagerImpl extends java.lang.Object implements MasteringManager
Constructor and Description |
---|
MasteringManagerImpl() |
Modifier and Type | Method and Description |
---|---|
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 |
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
|
@Autowired protected HubConfig hubConfig
public com.fasterxml.jackson.databind.JsonNode unmerge(java.lang.String mergeURI, java.lang.Boolean retainAuditTrail, java.lang.Boolean blockFutureMerges)
MasteringManager
unmerge
in interface MasteringManager
mergeURI
- - 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)
MasteringManager
merge
in interface MasteringManager
mergeURIs
- - 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)
MasteringManager
match
in interface MasteringManager
matchURI
- - 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)
MasteringManager
documentHistory
in interface MasteringManager
mergedURI
- - URI of the document that represents a mergepublic com.fasterxml.jackson.databind.JsonNode notifications(int start, int pageLength)
MasteringManager
notifications
in interface MasteringManager
start
- - (optional, defaulting to 1) the 1-based index of the first notification to returnpageLength
- - (optional, defaulting to 10) the number of notifications to return