Uses of Class
edu.ucsb.cs156.example.entities.Todo
Packages that use Todo
-
Uses of Todo in edu.ucsb.cs156.example.controllers
Methods in edu.ucsb.cs156.example.controllers that return TodoModifier and TypeMethodDescriptionTodosController.getTodoById
(Long id) This method returns a single todo owned by the current user.TodosController.getTodoById_admin
(Long id) This method returns a single todo regardless of ownership.This method creates a new todo owned by the current user.TodosController.putTodoById
(Long id, @Valid Todo incomingTodo) Update a single todo (if it belongs to current user)TodosController.putTodoById_admin
(Long id, @Valid Todo incomingTodo) Update a single todo (regardless of ownership, admin only, can't change ownership)Methods in edu.ucsb.cs156.example.controllers that return types with arguments of type TodoModifier and TypeMethodDescriptionTodosController.allUsersTodos()
This method returns a list of all todos.TodosController.thisUsersTodos()
This method returns a list of all todos owned by the current user.Methods in edu.ucsb.cs156.example.controllers with parameters of type TodoModifier and TypeMethodDescriptionTodosController.putTodoById
(Long id, @Valid Todo incomingTodo) Update a single todo (if it belongs to current user)TodosController.putTodoById_admin
(Long id, @Valid Todo incomingTodo) Update a single todo (regardless of ownership, admin only, can't change ownership) -
Uses of Todo in edu.ucsb.cs156.example.repositories
Methods in edu.ucsb.cs156.example.repositories that return types with arguments of type TodoModifier and TypeMethodDescriptionTodoRepository.findAllByUserId
(Long user_id) This method returns all Todo entities with a given user_id.TodoRepository.findByIdAndUser
(long id, User user) This method returns a Todo entity with a given id and user.