DocumentStorage

interface DocumentStorage

Interface providing easy methods to work with Document objects.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun delete(documentId: String): Boolean

Deletes document data by provided id.

Link copied to clipboard
abstract fun deleteAll(): Boolean

Deletes all documents.

Link copied to clipboard
abstract fun getDocumentDir(documentId: String): File

Provides directory to save files for current Document.

Link copied to clipboard
abstract fun getDocumentJsonFile(documentId: String): File

Provides File of the document json file.

Link copied to clipboard
abstract fun getDocumentPdfFile(documentId: String): File

Provides File of the document pdf file.

Link copied to clipboard
abstract fun getDocumentsDirectory(): File

Provides the directory which stores all documents.

Link copied to clipboard
abstract fun getDocumentTiffFile(documentId: String): File

Provides File of the document tiff file.

Link copied to clipboard
abstract fun getStoredDocuments(): List<String>

Provides List with all documentIds.