toggle menu
Writeopia
androidJvm
switch theme
search in API
plugin:writeopia_persistence_room
/
io.writeopia.sdk.persistence.dao.room
/
RoomDocumentRepository
Room
Document
Repository
class
RoomDocumentRepository
(
documentEntityDao
:
DocumentEntityDao
,
storyUnitEntityDao
:
StoryUnitEntityDao
)
:
DocumentRepository
Members
Constructors
Room
Document
Repository
Link copied to clipboard
constructor
(
documentEntityDao
:
DocumentEntityDao
,
storyUnitEntityDao
:
StoryUnitEntityDao
)
Functions
delete
By
User
Id
Link copied to clipboard
open
suspend override
fun
deleteByUserId
(
userId
:
String
)
delete
Document
Link copied to clipboard
open
suspend override
fun
deleteDocument
(
document
:
Document
)
delete
Document
By
Ids
Link copied to clipboard
open
suspend override
fun
deleteDocumentByIds
(
ids
:
Set
<
String
>
)
load
Document
By
Id
Link copied to clipboard
open
suspend override
fun
loadDocumentById
(
id
:
String
)
:
Document
?
load
Documents
For
User
Link copied to clipboard
open
suspend override
fun
loadDocumentsForUser
(
orderBy
:
String
,
userId
:
String
)
:
List
<
Document
>
load
Documents
With
Content
By
Ids
Link copied to clipboard
open
suspend override
fun
loadDocumentsWithContentByIds
(
ids
:
List
<
String
>
,
orderBy
:
String
)
:
List
<
Document
>
move
Documents
To
New
User
Link copied to clipboard
open
suspend override
fun
moveDocumentsToNewUser
(
oldUserId
:
String
,
newUserId
:
String
)
save
Document
Link copied to clipboard
open
suspend override
fun
saveDocument
(
document
:
Document
)
save
Document
Metadata
Link copied to clipboard
open
suspend override
fun
saveDocumentMetadata
(
document
:
Document
)
save
Story
Step
Link copied to clipboard
open
suspend override
fun
saveStoryStep
(
storyStep
:
StoryStep
,
position
:
Int
,
documentId
:
String
)
update
Story
Step
Link copied to clipboard
open
suspend override
fun
updateStoryStep
(
storyStep
:
StoryStep
,
position
:
Int
,
documentId
:
String
)