Interface ReferentialFile<E>
-
- Type Parameters:
E
- Type of Referential
- All Known Implementing Classes:
ReferentialFormatFileImpl
,RulesManagerFileImpl
public interface ReferentialFile<E>
ReferentialFile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VitamDocument<E>
findDocumentById(java.lang.String id)
find document based on a given IdRequestResponseOK<E>
findDocuments(com.fasterxml.jackson.databind.JsonNode select)
find document based on DSL queryvoid
importFile(java.io.InputStream file, java.lang.String filename)
importFile : import reference file to database
-
-
-
Method Detail
-
importFile
void importFile(java.io.InputStream file, java.lang.String filename) throws VitamException, java.io.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 conflictjava.io.IOException
InvalidParseOperationException
InvalidCreateOperationException
VitamException
IllegalPathException
-
findDocumentById
VitamDocument<E> findDocumentById(java.lang.String id) throws ReferentialException
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
-
-