RoomDocumentRepository

class RoomDocumentRepository(documentEntityDao: DocumentEntityDao, storyUnitEntityDao: StoryUnitEntityDao? = null) : DocumentRepository, DocumentSearch

Constructors

Link copied to clipboard
constructor(documentEntityDao: DocumentEntityDao, storyUnitEntityDao: StoryUnitEntityDao? = null)

Functions

Link copied to clipboard
open suspend override fun deleteByUserId(userId: String)
Link copied to clipboard
open suspend override fun deleteDocument(document: Document)
Link copied to clipboard
open suspend override fun deleteDocumentByFolder(folderId: String)
Link copied to clipboard
open suspend override fun deleteDocumentByIds(ids: Set<String>)
Link copied to clipboard
open suspend override fun favoriteDocumentByIds(ids: Set<String>)
Link copied to clipboard
open suspend override fun getLastUpdatedAt(): List<Document>
Link copied to clipboard
open suspend override fun listenForDocumentInfoById(id: String): Flow<DocumentInfo?>
Link copied to clipboard
open suspend override fun listenForDocumentsByParentId(parentId: String): Flow<Map<String, List<Document>>>
Link copied to clipboard
open suspend override fun loadDocumentById(id: String): Document?
Link copied to clipboard
open suspend override fun loadDocumentByIds(ids: List<String>): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsByParentId(parentId: String): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsForFolder(folderId: String): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsForUser(userId: String): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsForUserAfterTime(orderBy: String, userId: String, instant: Instant): List<Document>
Link copied to clipboard
open suspend override fun loadDocumentsWithContentByIds(ids: List<String>, orderBy: String): List<Document>
Link copied to clipboard
open suspend override fun loadFavDocumentsForUser(orderBy: String, userId: String): List<Document>
Link copied to clipboard
open suspend override fun moveDocumentsToNewUser(oldUserId: String, newUserId: String)
Link copied to clipboard
open suspend override fun moveToFolder(documentId: String, parentId: String)
Link copied to clipboard
open suspend override fun refreshDocuments()
Link copied to clipboard
open suspend override fun saveDocument(document: Document)
Link copied to clipboard
open suspend override fun saveDocumentMetadata(document: Document)
Link copied to clipboard
open suspend override fun saveStoryStep(storyStep: StoryStep, position: Int, documentId: String)
Link copied to clipboard
open suspend override fun search(query: String): List<Document>
Link copied to clipboard
open suspend override fun stopListeningForFoldersByParentId(parentId: String)
Link copied to clipboard
open suspend override fun unFavoriteDocumentByIds(ids: Set<String>)
Link copied to clipboard
open suspend override fun updateStoryStep(storyStep: StoryStep, position: Int, documentId: String)