public class MongoDbInMemory extends Object
Constructor and Description |
---|
MongoDbInMemory(com.fasterxml.jackson.databind.JsonNode originalDocument) |
Modifier and Type | Method and Description |
---|---|
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.
|
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 useInvalidParseOperationException
public com.fasterxml.jackson.databind.JsonNode getUpdateJson(AbstractParser<?> requestParser) throws InvalidParseOperationException
requestParser
- The given parser containing the update requestInvalidParseOperationException
public void resetUpdatedAU()
Copyright © 2018 Vitam. All rights reserved.