Uses of Class
com.coachconnect.util.Result
Packages that use Result
-
Uses of Result in com.coachconnect.auth
Methods in com.coachconnect.auth that return ResultModifier and TypeMethodDescriptionUserService.getUserById(String userId) Gets a user by ID.UserService.processGoogleAuth(String code) Processes a Google OAuth code and returns the authenticated user.UserService.updateUserRole(String userId, UserRole role) Updates a user's role. -
Uses of Result in com.coachconnect.repository
Methods in com.coachconnect.repository that return ResultModifier and TypeMethodDescriptionNoteRepository.createNote(Note note) Create a new note.Delete a drill category.Delete a note by ID (simplified interface).Delete a template.DrillRepository.deleteById(String id) PlayerRepository.deleteById(String id) SessionRepository.deleteById(String id) Deletes a session by its ID.NoteRepository.deleteNote(String id, String creatorId) Delete a note.DrillCategoryRepository.findAll()Find all drill categories.DrillRepository.findAll()SessionRepository.findAll()TemplateRepository.findAll()Find all templates (for admin use).PlayerRepository.findAllUsers()TemplateRepository.findByCreatedBy(String createdBy) Find all templates created by a specific coach.Find a drill category by ID.Find a note by ID (without creator check - servlet will handle security).Finds a session by its ID.Find a template by ID.DrillCategoryRepository.findByName(String name) Find a drill category by name.SessionRepository.findByUserId(String userId) Finds all sessions.NoteRepository.findNoteById(String id, String creatorId) Find a note by ID (must belong to the creator).Find notes by creator with optional type and reference ID filters.NoteRepository.findNotesByCreator(String creatorId) Find all notes created by a specific user (coach).PlayerRepository.findUserById(String id) DrillCategoryRepository.save(DrillCategory category) Save a new drill category.Save a note (alias for createNote).Saves a new session.Save a new template.DrillCategoryRepository.update(DrillCategory category) Update an existing drill category.Update a note (simplified interface).Updates an existing session.Update an existing template.NoteRepository.updateNote(String id, String creatorId, Note updatedNote) Update an existing note. -
Uses of Result in com.coachconnect.util
Methods in com.coachconnect.util that return ResultModifier and TypeMethodDescriptionstatic <T,E> Result <T, E> Result.failure(E error) Creates a failure result with the given error.Maps the success value to a new value.static <T,E> Result <T, E> Result.success(T value) Creates a successful result with the given value.Methods in com.coachconnect.util with parameters of type ResultModifier and TypeMethodDescriptionstatic <T> ApiResponse<T> ApiResponse.fromResult(Result<T, String> result) static <T> ApiResponse<T> ApiResponse.fromResult(Result<T, String> result, String errorCode)