Uses of Class
ai.tutor.cab302exceptionalhandlers.model.Chat
Packages that use Chat
Package
Description
-
Uses of Chat in ai.tutor.cab302exceptionalhandlers
Methods in ai.tutor.cab302exceptionalhandlers with parameters of type ChatModifier and TypeMethodDescriptionvoid
SceneManager.navigateToChatSetup
(User user, ChatSetupType type, Chat chat) Navigates to the chat setup view for creating or updating a chat. -
Uses of Chat in ai.tutor.cab302exceptionalhandlers.builders
Methods in ai.tutor.cab302exceptionalhandlers.builders with parameters of type ChatModifier and TypeMethodDescriptionChatSetupControllerBuilder.currentChat
(Chat chat) Sets the current chat, required for update operations. -
Uses of Chat in ai.tutor.cab302exceptionalhandlers.controller
Methods in ai.tutor.cab302exceptionalhandlers.controller that return ChatModifier and TypeMethodDescriptionChatController.createNewChat
(String name, String responseAttitude, String quizDifficulty, int quizLength, String educationLevel, String studyArea) Creates a new chat with the specified parameters.ChatCreateController.createNewChat
(String name, String responseAttitude, String quizDifficulty, int quizLength, String educationLevel, String studyArea) Creates a new chat record using user inputs from the UI.ChatController.getChat
(int chatId) Retrieves a specific chat from the database.protected Chat
ChatCreateController.getCurrentChat()
protected abstract Chat
ChatSetupController.getCurrentChat()
Abstract method to get the current chat context.protected Chat
ChatUpdateController.getCurrentChat()
Retrieves the current chat being updated.ChatController.getSelectedChat()
Retrieves the currently selected chat from the chat list view.ChatController.validateChatExistsForCurrentUser
(int chatId) Validates a chat exists for the current user (alternative toChatController.getChat(int)
).Methods in ai.tutor.cab302exceptionalhandlers.controller that return types with arguments of type ChatModifier and TypeMethodDescriptionChatController.getUserChats()
Retrieves all chats for the current user from the database.Constructors in ai.tutor.cab302exceptionalhandlers.controller with parameters of type ChatModifierConstructorDescriptionChatUpdateController
(SQLiteConnection db, User currentUser, Chat currentChat) Constructs a ChatUpdateController with a database connection, authenticated user, and the chat to update. -
Uses of Chat in ai.tutor.cab302exceptionalhandlers.model
Methods in ai.tutor.cab302exceptionalhandlers.model that return ChatModifier and TypeMethodDescriptionChatDAO.getChat
(int id) Retrieves aChat
by its ID.IChatDAO.getChat
(int id) Retrieves a Chat from the database by its ID.Methods in ai.tutor.cab302exceptionalhandlers.model that return types with arguments of type ChatModifier and TypeMethodDescriptionChatDAO.getAllUserChats
(int userId) Retrieves allChat
objects for a specific user.IChatDAO.getAllUserChats
(int userId) Retrieves all Chats associated with a specific user.Methods in ai.tutor.cab302exceptionalhandlers.model with parameters of type ChatModifier and TypeMethodDescriptionvoid
ChatDAO.createChat
(Chat chat) Saves a newChat
to the database.void
IChatDAO.createChat
(Chat chat) Creates a new Chat in the database.void
ChatDAO.deleteChat
(Chat chat) Deletes aChat
from the database.void
IChatDAO.deleteChat
(Chat chat) Deletes a Chat from the database.void
ChatDAO.updateChat
(Chat chat) Updates an existingChat
row in the database.void
IChatDAO.updateChat
(Chat chat) Updates an existing Chat in the database.void
ChatDAO.updateChatName
(Chat chat) Updates the name of an existingChat
in the database.void
IChatDAO.updateChatName
(Chat chat) Updates the name of an existing Chat in the database. -
Uses of Chat in ai.tutor.cab302exceptionalhandlers.Utils
Methods in ai.tutor.cab302exceptionalhandlers.Utils with parameters of type ChatModifier and TypeMethodDescriptionAIUtils.generateResponse
(List<Message> history, Chat chatConfig, boolean isQuizMode) Calls /api/chat on the Ollama host generating an AI response based on chat history and configuration.