public interface MongoDbAccessReferential
Modifier and Type | Method and Description |
---|---|
DbRequestResult |
deleteCollection(FunctionalAdminCollections collection)
Delete FileFormat collections
|
DbRequestResult |
deleteCollection(FunctionalAdminCollections collection,
Delete delete) |
DbRequestResult |
findDocuments(com.fasterxml.jackson.databind.JsonNode select,
FunctionalAdminCollections collection) |
VitamDocument<?> |
getDocumentById(String id,
FunctionalAdminCollections collection) |
VitamDocument<?> |
getDocumentByUniqueId(String id,
FunctionalAdminCollections collection,
String field) |
DbRequestResult |
insertDocument(com.fasterxml.jackson.databind.JsonNode jsonNode,
FunctionalAdminCollections collection)
insert documents
|
DbRequestResult |
insertDocuments(com.fasterxml.jackson.databind.node.ArrayNode arrayNode,
FunctionalAdminCollections collection)
insert documents
|
DbRequestResult |
insertDocuments(com.fasterxml.jackson.databind.node.ArrayNode arrayNode,
FunctionalAdminCollections collection,
Integer version)
insert documents
|
DbRequestResult |
updateData(com.fasterxml.jackson.databind.JsonNode update,
FunctionalAdminCollections collection)
Update with queryDsl
|
DbRequestResult |
updateData(com.fasterxml.jackson.databind.JsonNode update,
FunctionalAdminCollections collection,
Integer version)
Update with queryDsl
|
DbRequestResult insertDocuments(com.fasterxml.jackson.databind.node.ArrayNode arrayNode, FunctionalAdminCollections collection) throws ReferentialException, SchemaValidationException
arrayNode
- of documentscollection
- collection of Mongo for insertReferentialException
- when error occursSchemaValidationException
DbRequestResult insertDocuments(com.fasterxml.jackson.databind.node.ArrayNode arrayNode, FunctionalAdminCollections collection, Integer version) throws ReferentialException, SchemaValidationException
arrayNode
- of documentscollection
- collection of Mongo for insertReferentialException
- when error occursSchemaValidationException
DbRequestResult insertDocument(com.fasterxml.jackson.databind.JsonNode jsonNode, FunctionalAdminCollections collection) throws ReferentialException, SchemaValidationException
jsonNode
- of documentscollection
- collection of Mongo for insertReferentialException
- when error occursSchemaValidationException
DbRequestResult deleteCollection(FunctionalAdminCollections collection, Delete delete) throws DatabaseException, ReferentialException
DbRequestResult deleteCollection(FunctionalAdminCollections collection) throws DatabaseException, ReferentialException, SchemaValidationException
collection
- collection of Mongo for deleteDatabaseException
- thrown when error on deleteReferentialException
- when error occursSchemaValidationException
VitamDocument<?> getDocumentById(String id, FunctionalAdminCollections collection) throws ReferentialException
id
- of vitam documentcollection
- collection of MongoReferentialException
- when error occursVitamDocument<?> getDocumentByUniqueId(String id, FunctionalAdminCollections collection, String field) throws ReferentialException
id
- functional id valuecollection
- Mongo collectionfield
- unique field in collection as functional idReferentialException
DbRequestResult updateData(com.fasterxml.jackson.databind.JsonNode update, FunctionalAdminCollections collection) throws ReferentialException, SchemaValidationException
update
- JsonNode to updatecollection
- collection of Mongo Type for updateReferentialException
- when error occurs;SchemaValidationException
DbRequestResult updateData(com.fasterxml.jackson.databind.JsonNode update, FunctionalAdminCollections collection, Integer version) throws ReferentialException, SchemaValidationException
update
- JsonNode to updatecollection
- collection of Mongo Type for updateversion
- ReferentialException
- when error occurs;SchemaValidationException
DbRequestResult findDocuments(com.fasterxml.jackson.databind.JsonNode select, FunctionalAdminCollections collection) throws ReferentialException, BadRequestException
select
- filtercollection
- collection of Mongo for findReferentialException
- when error occursBadRequestException
- when query is incorrectCopyright © 2018 Vitam. All rights reserved.