Interface ProjectSubscriptionService
-
- All Superinterfaces:
CRUDService<java.lang.Long,ProjectSubscription>
- All Known Implementing Classes:
ProjectSubscriptionServiceImpl
public interface ProjectSubscriptionService extends CRUDService<java.lang.Long,ProjectSubscription>
A specialized service layer for project subscriptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjectSubscription
addProjectSubscriptionForProjectAndUser(Project project, User user)
java.util.List<Project>
getProjectsForUserWithEmailSubscriptions(User user)
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.java.util.List<User>
getUsersWithEmailSubscriptions()
void
removeProjectSubscriptionForProjectAndUser(Project project, User user)
-
Methods inherited from interface ca.corefacility.bioinformatics.irida.service.CRUDService
count, create, delete, exists, findAll, findRevisions, findRevisions, list, list, list, read, readMultiple, search, search, update, updateFields, updateMultiple
-
-
-
-
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 forpage
- the current page of resultssize
- the number of results on the pagesort
- the sort properties- Returns:
Page
ofProjectSubscription
s
-
getUsersWithEmailSubscriptions
java.util.List<User> getUsersWithEmailSubscriptions()
- Returns:
- A List of
User
s
-
getProjectsForUserWithEmailSubscriptions
java.util.List<Project> getProjectsForUserWithEmailSubscriptions(User user)
- Parameters:
user
- the user to show project subscriptions for- Returns:
- A List of
Project
s
-
addProjectSubscriptionForProjectAndUser
ProjectSubscription addProjectSubscriptionForProjectAndUser(Project project, User user)
- Parameters:
project
- the projectuser
- the user- Returns:
- The newly created project subscription
-
-