public interface WatchService
| Modifier and Type | Method and Description |
|---|---|
boolean |
addWatch(WatchData watchData)
Adds a watch from the attributes of the WatchData instance
|
java.lang.Iterable<WatchData> |
getWatchesForRepo(java.lang.String repoName)
Returns watches for the given repository
|
java.lang.Iterable<WatchData> |
getWatchesForUser(java.lang.String userName)
Returns watches for the given user
|
boolean |
removeWatch(WatchData watchData)
Removes the watch with the attributes of the WatchData instance
|
java.lang.Iterable<WatchData> getWatchesForUser(java.lang.String userName) throws java.lang.IllegalArgumentException
userName - name of the user to get the watches forjava.lang.IllegalArgumentException - if no user with the username existsjava.lang.Iterable<WatchData> getWatchesForRepo(java.lang.String repoName)
repoName - the name of the repository to get the watches forjava.lang.IllegalArgumentException - if no repository with the repoName existsboolean addWatch(WatchData watchData) throws java.lang.IllegalArgumentException
watchData - the WatchData to create the watch fromjava.lang.IllegalArgumentException - when the given WatchData is invalid - contains an illegal repository or userboolean removeWatch(WatchData watchData)
watchData - the WatchData to remove