(refs #8)Implementing group register/edit form.

This commit is contained in:
takezoe
2013-07-23 11:59:49 +09:00
parent ec73294900
commit e4b3f0ddef
5 changed files with 159 additions and 31 deletions

View File

@@ -161,6 +161,15 @@ trait RepositoryService { self: AccountService =>
def removeCollaborator(userName: String, repositoryName: String, collaboratorName: String): Unit =
Collaborators.filter(_.byPrimaryKey(userName, repositoryName, collaboratorName)).delete
/**
* Remove all collaborators from the repository.
*
* @param userName the user name of the repository owner
* @param repositoryName the repository name
*/
def removeCollaborators(userName: String, repositoryName: String): Unit =
Collaborators.filter(_.byRepository(userName, repositoryName)).delete
/**
* Returns the list of collaborators name which is sorted with ascending order.
*