Interface ProjectSubscriptionService

    • Method Detail

      • getProjectSubscriptionsForUser

        org.springframework.data.domain.Page<ProjectSubscription> getProjectSubscriptionsForUser​(User user,
                                                                                                 int page,
                                                                                                 int size,
                                                                                                 org.springframework.data.domain.Sort sort)
        Get a page of project subscriptions associated with a user.
        Parameters:
        user - the user to show project subscriptions for
        page - the current page of results
        size - the number of results on the page
        sort - the sort properties
        Returns:
        Page of ProjectSubscriptions
      • getUsersWithEmailSubscriptions

        java.util.List<User> getUsersWithEmailSubscriptions()
        Get a List of all Users that are subscribed to any Projects.
        Returns:
        A List of Users
      • getProjectsForUserWithEmailSubscriptions

        java.util.List<Project> getProjectsForUserWithEmailSubscriptions​(User user)
        Get a List of all Projects that a given User is subscribed to.
        Parameters:
        user - the user to show project subscriptions for
        Returns:
        A List of Projects
      • addProjectSubscriptionForProjectAndUser

        ProjectSubscription addProjectSubscriptionForProjectAndUser​(Project project,
                                                                    User user)
        Create a new project subscription associated with a Project and User.
        Parameters:
        project - the project
        user - the user
        Returns:
        The newly created project subscription
      • removeProjectSubscriptionForProjectAndUser

        void removeProjectSubscriptionForProjectAndUser​(Project project,
                                                        User user)
        Remove the project subscription associated with a Project and User.
        Parameters:
        project - the project
        user - the user