Interface UserPreferenceService

    • 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.