Rename ProjectService to RepositoryService.

This commit is contained in:
takezoe
2013-06-04 01:14:27 +09:00
parent f9c085ced6
commit 78ad794613
7 changed files with 21 additions and 18 deletions

View File

@@ -6,11 +6,11 @@ import Database.threadLocalSession
import util.JGitUtil
import javax.servlet.ServletContext
trait ProjectService { self: AccountService =>
import ProjectService._
trait RepositoryService { self: AccountService =>
import RepositoryService._
/**
* Creates a new project.
* Creates a new repository.
*
* The project is created as public repository at first. Users can modify the project type at the repository settings
* page after the project creation to configure the project as the private repository.
@@ -20,7 +20,7 @@ trait ProjectService { self: AccountService =>
* @param description the project description
* @return the created project id
*/
def createProject(repositoryName: String, userName: String, description: Option[String]): Long = {
def createRepository(repositoryName: String, userName: String, description: Option[String]): Long = {
// TODO create a git repository also here?
// TODO insert default labels.
@@ -103,7 +103,7 @@ trait ProjectService { self: AccountService =>
}
object ProjectService {
object RepositoryService {
val Public = 0
val Private = 1