trait RepositoryService extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RepositoryService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def addCollaborator(userName: String, repositoryName: String, collaboratorName: String, role: String)(implicit s: (blockingApi)#Session): Unit

    Add collaborator (user or group) to the repository.

  2. def deleteRepository(repository: Repository)(implicit s: (blockingApi)#Session): Unit
  3. def getAllRepositories(userName: String)(implicit s: (blockingApi)#Session): List[(String, String)]

    Returns the repositories except private repository that user does not have access right.

    Returns the repositories except private repository that user does not have access right. Include public repository, private own repository and private but collaborator repository.

    userName

    the user name of collaborator

    returns

    the repository information list

  4. def getCollaboratorUserNames(userName: String, repositoryName: String, filter: Seq[Role] = Nil)(implicit s: (blockingApi)#Session): List[String]

    Returns the list of all collaborator name and permission which is sorted with ascending order.

    Returns the list of all collaborator name and permission which is sorted with ascending order. If a group is added as a collaborator, this method returns users who are belong to that group.

  5. def getCollaborators(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): List[(Collaborator, Boolean)]

    Returns the list of collaborators name (user name or group name) which is sorted with ascending order.

  6. def getContentTemplate(repository: RepositoryInfo, fileBaseName: String)(implicit s: (blockingApi)#Session): String

    Returns content of template set per repository.

    Returns content of template set per repository.

    repository

    the repository information

    fileBaseName

    the file basename without extension of template

    returns

    The content of template if the repository has it, otherwise empty string.

  7. def getForkedRepositories(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): List[Repository]
  8. def getRepository(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): Option[RepositoryInfo]

    Returns the specified repository information.

    Returns the specified repository information.

    userName

    the user name of the repository owner

    repositoryName

    the repository name

    returns

    the repository information

  9. def getRepositoryNamesOfUser(userName: String)(implicit s: (blockingApi)#Session): List[String]

    Returns the repository names of the specified user.

    Returns the repository names of the specified user.

    userName

    the user name of repository owner

    returns

    the list of repository names

  10. def getUserRepositories(userName: String, withoutPhysicalInfo: Boolean = false)(implicit s: (blockingApi)#Session): List[RepositoryInfo]

    Returns the list of repositories which are owned by the specified user.

    Returns the list of repositories which are owned by the specified user. This list includes group repositories if the specified user is a member of the group.

  11. def getVisibleRepositories(loginAccount: Option[Account], repositoryUserName: Option[String] = None, withoutPhysicalInfo: Boolean = false)(implicit s: (blockingApi)#Session): List[RepositoryInfo]

    Returns the list of visible repositories for the specified user.

    Returns the list of visible repositories for the specified user. If repositoryUserName is given then filters results by repository owner.

    loginAccount

    the logged in account

    repositoryUserName

    the repository owner (if None then returns all repositories which are visible for logged in user)

    withoutPhysicalInfo

    if true then the result does not include physical repository information such as commit count, branches and tags

    returns

    the repository information which is sorted in descending order of lastActivityDate.

  12. def hasDeveloperRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
  13. def hasGuestRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
  14. def hasOwnerRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
  15. def insertRepository(repositoryName: String, userName: String, description: Option[String], isPrivate: Boolean, originRepositoryName: Option[String] = None, originUserName: Option[String] = None, parentRepositoryName: Option[String] = None, parentUserName: Option[String] = None)(implicit s: (blockingApi)#Session): Unit

    Creates a new repository.

    Creates a new repository.

    repositoryName

    the repository name

    userName

    the user name of the repository owner

    description

    the repository description

    isPrivate

    the repository type (private is true, otherwise false)

    originRepositoryName

    specify for the forked repository. (default is None)

    originUserName

    specify for the forked repository. (default is None)

  16. def isReadable(repository: Repository, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
  17. def removeCollaborator(userName: String, repositoryName: String, collaboratorName: String)(implicit s: (blockingApi)#Session): Unit

    Remove specified collaborator from the repository.

  18. def removeCollaborators(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): Unit

    Remove all collaborators from the repository.

  19. def renameRepository(oldUserName: String, oldRepositoryName: String, newUserName: String, newRepositoryName: String)(implicit s: (blockingApi)#Session): Unit
  20. def saveRepositoryDefaultBranch(userName: String, repositoryName: String, defaultBranch: String)(implicit s: (blockingApi)#Session): Unit
  21. def saveRepositoryOptions(userName: String, repositoryName: String, description: Option[String], isPrivate: Boolean, issuesOption: String, externalIssuesUrl: Option[String], wikiOption: String, externalWikiUrl: Option[String], allowFork: Boolean, mergeOptions: Seq[String], defaultMergeOption: String)(implicit s: (blockingApi)#Session): Unit

    Save repository options.

  22. def updateLastActivityDate(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): Unit

    Updates the last activity date of the repository.