Package de.trustable.ca3s.core.service
Interface UserPreferenceService
-
- All Known Implementing Classes:
UserPreferenceServiceImpl
public interface UserPreferenceServiceService Interface for managingUserPreference.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(Long id)Delete the "id" userPreference.List<UserPreference>findAll()Get all the userPreferences.List<UserPreference>findAllForUserId(Long userId)Get all the userPreferences for a user id.Optional<UserPreference>findOne(Long id)Get the "id" userPreference.Optional<UserPreference>findPreferenceForUserId(String name, Long userId)Get a specific userPreferences for a user id.UserPreferencesave(UserPreference userPreference)Save a userPreference.
-
-
-
Method Detail
-
save
UserPreference save(UserPreference userPreference)
Save a userPreference.- Parameters:
userPreference- the entity to save.- Returns:
- the persisted entity.
-
findAll
List<UserPreference> findAll()
Get all the userPreferences.- Returns:
- the list of entities.
-
findAllForUserId
List<UserPreference> findAllForUserId(Long userId)
Get all the userPreferences for a user id.- Returns:
- the list of entities.
-
findPreferenceForUserId
Optional<UserPreference> findPreferenceForUserId(String name, Long userId)
Get a specific userPreferences for a user id.- Returns:
- the list of entities.
-
findOne
Optional<UserPreference> findOne(Long id)
Get the "id" userPreference.- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
void delete(Long id)
Delete the "id" userPreference.- Parameters:
id- the id of the entity.
-
-