Package com.espacogeek.geek.services
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 Summary
Modifier and TypeMethodDescriptionCreates a new custom status for the user.booleanDeletes a custom status owned by the user.findByUserId(Integer userId) Returns all custom statuses belonging to the given user.Updates the name of an existing custom status owned by the user.
-
Method Details
-
findByUserId
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
Creates a new custom status for the user.- Parameters:
userId- the authenticated user's IDname- the label for the custom status- Returns:
- the persisted
UserCustomStatusModel
-
update
Updates the name of an existing custom status owned by the user.- Parameters:
userId- the authenticated user's IDstatusId- the ID of the status to updatename- the new label- Returns:
- the updated
UserCustomStatusModel
-
delete
Deletes a custom status owned by the user.- Parameters:
userId- the authenticated user's IDstatusId- the ID of the status to delete- Returns:
trueif deleted,falseif not found
-