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 ProjectSubscriptionaddProjectSubscriptionForProjectAndUser(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()voidremoveProjectSubscriptionForProjectAndUser(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:
 PageofProjectSubscriptions
 
- 
getUsersWithEmailSubscriptions
java.util.List<User> getUsersWithEmailSubscriptions()
- Returns:
 - A List of 
Users 
 
- 
getProjectsForUserWithEmailSubscriptions
java.util.List<Project> getProjectsForUserWithEmailSubscriptions(User user)
- Parameters:
 user- the user to show project subscriptions for- Returns:
 - A List of 
Projects 
 
- 
addProjectSubscriptionForProjectAndUser
ProjectSubscription addProjectSubscriptionForProjectAndUser(Project project, User user)
- Parameters:
 project- the projectuser- the user- Returns:
 - The newly created project subscription
 
 
 - 
 
 -