Interface InterestsService

  • All Known Implementing Classes:
    DefaultInterestsService

    public interface InterestsService
    Transverse business service on the interests' users.
    • Method Detail

      • getInterestsByUserId

        List<Interests> getInterestsByUserId​(int userID)
        Parameters:
        userID - the user identifier
        Returns:
        a list of Interestss by user id provided
      • getInterestsById

        Interests getInterestsById​(int id)
        Parameters:
        id - Interests identifier
        Returns:
        Interests by its id
      • createInterests

        int createInterests​(Interests interests)
        Parameters:
        interests - interest center to create
        Returns:
        id of Interests created
      • updateInterests

        void updateInterests​(Interests interests)
        perform updates of provided Interests
        Parameters:
        interests - interest center to update
      • removeInterestsById

        void removeInterestsById​(List<Integer> ids,
                                 String userId)
        Parameters:
        ids - ArrayList of java.lang.Integer - id's of Interestss to be deleted
        userId - - current user Id
      • removeInterestsById

        void removeInterestsById​(int id)
        Parameters:
        id - an id of Interests to be deleted