Interface DocumentStorage
-
- All Implemented Interfaces:
public interface DocumentStorage
Interface providing easy methods to work with Document objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DocumentStorage.Companion
-
Method Summary
Modifier and Type Method Description abstract File
getDocumentsDirectory()
Provides the directory which stores all documents. abstract File
getDocumentDir(String documentId)
Provides directory to save files for current Document. abstract List<String>
getStoredDocuments()
Provides List with all documentIds. abstract File
getDocumentJsonFile(String documentId)
Provides File of the document json file. abstract Boolean
delete(String documentId)
Deletes document data by provided id. abstract Boolean
deleteAll()
Deletes all documents. abstract File
getDocumentPdfFile(String documentId)
Provides File of the document pdf file. abstract File
getDocumentTiffFile(String documentId)
Provides File of the document tiff file. -
-
Method Detail
-
getDocumentsDirectory
abstract File getDocumentsDirectory()
Provides the directory which stores all documents.
-
getDocumentDir
abstract File getDocumentDir(String documentId)
Provides directory to save files for current Document.
- Parameters:
documentId
-id of a document
-
getStoredDocuments
abstract List<String> getStoredDocuments()
Provides List with all documentIds.
-
getDocumentJsonFile
abstract File getDocumentJsonFile(String documentId)
Provides File of the document json file.
- Parameters:
documentId
-id of a document
-
getDocumentPdfFile
abstract File getDocumentPdfFile(String documentId)
Provides File of the document pdf file.
- Parameters:
documentId
-id of a document
-
getDocumentTiffFile
abstract File getDocumentTiffFile(String documentId)
Provides File of the document tiff file.
- Parameters:
documentId
-id of a document
-
-
-
-