public class MongoDbInMemory extends Object
| Constructor and Description |
|---|
MongoDbInMemory(com.fasterxml.jackson.databind.JsonNode originalDocument) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getUpdatedFields() |
com.fasterxml.jackson.databind.JsonNode |
getUpdateJson(AbstractParser<?> requestParser)
Update the originalDocument with the given parser (containing the request)
|
com.fasterxml.jackson.databind.JsonNode |
getUpdateJson(com.fasterxml.jackson.databind.JsonNode request,
boolean isMultiple,
VarNameAdapter varNameAdapter)
Update the originalDocument with the given request.
|
com.fasterxml.jackson.databind.JsonNode |
getUpdateJsonForRule(RuleActions ruleActions,
Map<String,DurationData> bindRuleToDuration)
Update the originalDocument with the given ruleActions
|
void |
resetUpdatedAU()
Reset the updatedDocument with the original values
|
public MongoDbInMemory(com.fasterxml.jackson.databind.JsonNode originalDocument)
originalDocument - public com.fasterxml.jackson.databind.JsonNode getUpdateJson(com.fasterxml.jackson.databind.JsonNode request,
boolean isMultiple,
VarNameAdapter varNameAdapter)
throws InvalidParseOperationException
request - The given update requestisMultiple - true if the UpdateParserMultiple must be used (Unit/ObjectGroup)varNameAdapter - VarNameAdapter to useInvalidParseOperationExceptionpublic com.fasterxml.jackson.databind.JsonNode getUpdateJson(AbstractParser<?> requestParser) throws InvalidParseOperationException
requestParser - The given parser containing the update requestInvalidParseOperationExceptionpublic com.fasterxml.jackson.databind.JsonNode getUpdateJsonForRule(RuleActions ruleActions, Map<String,DurationData> bindRuleToDuration) throws InvalidParseOperationException
ruleActions - The given ruleActions containing the updatesInvalidParseOperationExceptionpublic void resetUpdatedAU()
Copyright © 2018 Vitam. All rights reserved.