Class AiConversationEmptyService
java.lang.Object
io.jmix.aitoolsflowui.service.impl.AiConversationEmptyService
- All Implemented Interfaces:
AiConversationService
No-op implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new conversation owned by the current user.@Nullable AiConversationloadConversation(UUID conversationId) Loads a conversation by id.Loads the current user's conversations, newest first.voidremove(AiConversation conversation) Removes the given conversation together with its messages.save(AiConversation conversation) Persists the given conversation (insert or update).
-
Field Details
-
metadata
-
-
Constructor Details
-
AiConversationEmptyService
public AiConversationEmptyService()
-
-
Method Details
-
loadConversation
Description copied from interface:AiConversationServiceLoads a conversation by id.- Specified by:
loadConversationin interfaceAiConversationService- Parameters:
conversationId- id of the conversation to load- Returns:
- the conversation, or
nullif it does not exist or is not accessible to the current user
-
create
Description copied from interface:AiConversationServiceCreates a new conversation owned by the current user.- Specified by:
createin interfaceAiConversationService- Returns:
- the created conversation
-
save
Description copied from interface:AiConversationServicePersists the given conversation (insert or update).- Specified by:
savein interfaceAiConversationService- Parameters:
conversation- conversation to save- Returns:
- the saved conversation
-
remove
Description copied from interface:AiConversationServiceRemoves the given conversation together with its messages.- Specified by:
removein interfaceAiConversationService- Parameters:
conversation- conversation to remove
-
loadConversations
Description copied from interface:AiConversationServiceLoads the current user's conversations, newest first. Messages are not loaded; useAiChatMessageServiceto fetch a conversation's messages on demand.- Specified by:
loadConversationsin interfaceAiConversationService- Returns:
- the conversations, newest first; empty if there are none
-