Interface UserCustomStatusService

All Known Implementing Classes:
UserCustomStatusServiceImpl

public interface UserCustomStatusService
Service interface for managing user-defined custom tracking status labels. Users can create custom statuses (e.g. "Re-watching", "Collecting") in addition to the default system statuses (PLANNING, IN_PROGRESS, COMPLETED, DROPPED, PAUSED).
  • Method Details

    • findByUserId

      List<UserCustomStatusModel> findByUserId(Integer userId)
      Returns all custom statuses belonging to the given user.
      Parameters:
      userId - the authenticated user's ID
      Returns:
      list of the user's custom status entries
    • create

      UserCustomStatusModel create(Integer userId, String name)
      Creates a new custom status for the user.
      Parameters:
      userId - the authenticated user's ID
      name - the label for the custom status
      Returns:
      the persisted UserCustomStatusModel
    • update

      UserCustomStatusModel update(Integer userId, Integer statusId, String name)
      Updates the name of an existing custom status owned by the user.
      Parameters:
      userId - the authenticated user's ID
      statusId - the ID of the status to update
      name - the new label
      Returns:
      the updated UserCustomStatusModel
    • delete

      boolean delete(Integer userId, Integer statusId)
      Deletes a custom status owned by the user.
      Parameters:
      userId - the authenticated user's ID
      statusId - the ID of the status to delete
      Returns:
      true if deleted, false if not found