Interface ReferentialFile<E>
- Type Parameters:
E- Type of Referential
- All Known Implementing Classes:
ReferentialFormatFileImpl,RulesManagerFileImpl
public interface ReferentialFile<E>
ReferentialFile
-
Method Summary
Modifier and TypeMethodDescriptionfind document based on a given IdfindDocuments(com.fasterxml.jackson.databind.JsonNode select) find document based on DSL queryvoidimportFile(InputStream file, String filename) importFile : import reference file to database
-
Method Details
-
importFile
void importFile(InputStream file, String filename) throws VitamException, IOException, InvalidCreateOperationException, IllegalPathException importFile : import reference file to database- Parameters:
file- as InputStreamfilename- file name- Throws:
ReferentialException- when there is error of importDatabaseConflictException- when there is a database conflictIOExceptionInvalidParseOperationExceptionInvalidCreateOperationExceptionVitamExceptionIllegalPathException
-
findDocumentById
find document based on a given Id- Parameters:
id- of vitam document- Returns:
- vitam document
- Throws:
ReferentialException- when error occurs
-
findDocuments
RequestResponseOK<E> findDocuments(com.fasterxml.jackson.databind.JsonNode select) throws FileFormatNotFoundException, ReferentialException find document based on DSL query- Parameters:
select- filter- Returns:
- vitam document list
- Throws:
FileFormatNotFoundException- when no results foundReferentialException- when error occurs
-