public interface ContextService extends VitamAutoCloseable
Modifier and Type | Method and Description |
---|---|
RequestResponse<ContextModel> |
createContexts(List<ContextModel> contextModelList)
Create a list of contexts
|
DbRequestResult |
findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl)
Search for contexts
|
ContextModel |
findOneContextById(String id)
Find a context by its id
|
RequestResponse<ContextModel> |
updateContext(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a context
|
close
RequestResponse<ContextModel> createContexts(List<ContextModel> contextModelList) throws VitamException
contextModelList
- the context list to be createdVitamException
- thrown if operation could not be doneDbRequestResult findContexts(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
queryDsl
- the query to be used for the searchReferentialException
- thrown if the query could not be executedInvalidParseOperationException
- thrown if query is incorrectRequestResponse<ContextModel> updateContext(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws VitamException
id
- the id of the contextqueryDsl
- the update command as a queryVitamException
- thrown if operation could not be doneContextModel findOneContextById(String id) throws ReferentialException, InvalidParseOperationException
id
- the id of the contextReferentialException
- thrown if the context could not be foundInvalidParseOperationException
- thrown if the query is incorrectCopyright © 2018 Vitam. All rights reserved.