Class

gitbucket.core.util

Mailer

Related Doc: package util

Permalink

class Mailer extends Notifier

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mailer
  2. Notifier
  3. IssuesService
  4. AccountService
  5. RepositoryService
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Mailer(smtp: Smtp)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addCollaborator(userName: String, repositoryName: String, collaboratorName: String, role: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink

    Add collaborator (user or group) to the repository.

    Add collaborator (user or group) to the repository.

    Definition Classes
    RepositoryService
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def authenticate(settings: SystemSettings, userName: String, password: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Option[Account]

    Permalink
    Definition Classes
    AccountService
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def closeIssuesFromMessage(message: String, userName: String, owner: String, repository: String)(implicit s: Session): Unit

    Permalink
    Definition Classes
    IssuesService
  9. def countIssue(condition: IssueSearchCondition, onlyPullRequest: Boolean, repos: (String, String)*)(implicit s: Session): Int

    Permalink

    Returns the count of the search result against issues.

    Returns the count of the search result against issues.

    condition

    the search condition

    onlyPullRequest

    if true then counts only pull request, false then counts both of issue and pull request.

    repos

    Tuple of the repository owner and the repository name

    returns

    the count of the search result

    Definition Classes
    IssuesService
  10. def countIssueGroupByLabels(owner: String, repository: String, condition: IssueSearchCondition, filterUser: Map[String, String])(implicit s: Session): Map[String, Int]

    Permalink

    Returns the Map which contains issue count for each labels.

    Returns the Map which contains issue count for each labels.

    owner

    the repository owner

    repository

    the repository name

    condition

    the search condition

    returns

    the Map which contains issue count for each labels (key is label name, value is issue count)

    Definition Classes
    IssuesService
  11. def createAccount(userName: String, password: String, fullName: String, mailAddress: String, isAdmin: Boolean, url: Option[String])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  12. def createComment(owner: String, repository: String, loginUser: String, issueId: Int, content: String, action: String)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  13. def createGroup(groupName: String, url: Option[String])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  14. def createIssue(owner: String, repository: String, loginUser: String, title: String, content: Option[String], assignedUserName: Option[String], milestoneId: Option[Int], isPullRequest: Boolean = false)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  15. def createIssueComment(owner: String, repository: String, commit: CommitInfo)(implicit s: Session): Unit

    Permalink
    Definition Classes
    IssuesService
  16. def createReferComment(owner: String, repository: String, fromIssue: Issue, message: String, loginAccount: Account)(implicit s: Session): Unit

    Permalink
    Definition Classes
    IssuesService
  17. def deleteComment(commentId: Int)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  18. def deleteIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  19. def deleteRepository(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    RepositoryService
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def getAccountByMailAddress(mailAddress: String, includeRemoved: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Option[Account]

    Permalink
    Definition Classes
    AccountService
  24. def getAccountByUserName(userName: String, includeRemoved: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Option[Account]

    Permalink
    Definition Classes
    AccountService
  25. def getAccountsByUserNames(userNames: Set[String], knowns: Set[Account], includeRemoved: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Map[String, Account]

    Permalink
    Definition Classes
    AccountService
  26. def getAllRepositories(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[(String, String)]

    Permalink

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

    Returns the repositories without 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

    Definition Classes
    RepositoryService
  27. def getAllUsers(includeRemoved: Boolean = true)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[Account]

    Permalink
    Definition Classes
    AccountService
  28. def getAssignableUserNames(owner: String, repository: String)(implicit s: Session): List[String]

    Permalink
    Definition Classes
    IssuesService
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getCollaboratorUserNames(userName: String, repositoryName: String, filter: Seq[Role] = Nil)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[String]

    Permalink

    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.

    Definition Classes
    RepositoryService
  31. def getCollaborators(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[(Collaborator, Boolean)]

    Permalink

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

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

    Definition Classes
    RepositoryService
  32. def getComment(owner: String, repository: String, commentId: String)(implicit s: Session): Option[model.IssueCommentComponent.IssueComments.TableElementType]

    Permalink
    Definition Classes
    IssuesService
  33. def getComments(owner: String, repository: String, issueId: Int)(implicit s: Session): List[model.IssueCommentComponent.IssueComments.TableElementType]

    Permalink
    Definition Classes
    IssuesService
  34. def getCommentsForApi(owner: String, repository: String, issueId: Int)(implicit s: Session): List[(IssueComment, Account, Issue)]

    Permalink

    returns

    IssueComment and commentedUser and Issue

    Definition Classes
    IssuesService
  35. def getCommitStatues(issueList: Seq[(String, String, Int)])(implicit s: Session): Map[(String, String, Int), CommitStatusInfo]

    Permalink
    Definition Classes
    IssuesService
  36. def getForkedRepositories(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[(String, String)]

    Permalink
    Definition Classes
    RepositoryService
  37. def getGroupMembers(groupName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[GroupMember]

    Permalink
    Definition Classes
    AccountService
  38. def getGroupNames(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[String]

    Permalink
    Definition Classes
    AccountService
  39. def getGroupsByUserName(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[String]

    Permalink
    Definition Classes
    AccountService
  40. def getIssue(owner: String, repository: String, issueId: String)(implicit s: Session): Option[model.IssueComponent.Issues.TableElementType]

    Permalink
    Definition Classes
    IssuesService
  41. def getIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int)(implicit s: Session): Option[model.IssueLabelComponent.IssueLabels.TableElementType]

    Permalink
    Definition Classes
    IssuesService
  42. def getIssueLabels(owner: String, repository: String, issueId: Int)(implicit s: Session): List[Label]

    Permalink
    Definition Classes
    IssuesService
  43. def getRepository(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Option[RepositoryInfo]

    Permalink

    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

    Definition Classes
    RepositoryService
  44. def getRepositoryNamesOfUser(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[String]

    Permalink

    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

    Definition Classes
    RepositoryService
  45. def getUserRepositories(userName: String, withoutPhysicalInfo: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[RepositoryInfo]

    Permalink
    Definition Classes
    RepositoryService
  46. def getVisibleRepositories(loginAccount: Option[Account], repositoryUserName: Option[String] = None, withoutPhysicalInfo: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[RepositoryInfo]

    Permalink

    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.

    Definition Classes
    RepositoryService
  47. def hasDeveloperRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Boolean

    Permalink
    Definition Classes
    RepositoryService
  48. def hasGuestRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Boolean

    Permalink
    Definition Classes
    RepositoryService
  49. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  50. 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: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink

    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)

    Definition Classes
    RepositoryService
  51. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  52. def isLastAdministrator(account: Account)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Boolean

    Permalink
    Definition Classes
    AccountService
  53. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  54. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  55. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. def recipients(issue: Issue)(notify: (String) ⇒ Unit)(implicit session: Session, context: Context): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Notifier
  57. def registerIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  58. def removeCollaborators(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink

    Remove all collaborators from the repository.

    Remove all collaborators from the repository.

    Definition Classes
    RepositoryService
  59. def removeUserRelatedData(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  60. def renameRepository(oldUserName: String, oldRepositoryName: String, newUserName: String, newRepositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    RepositoryService
  61. def saveRepositoryDefaultBranch(userName: String, repositoryName: String, defaultBranch: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    RepositoryService
  62. def saveRepositoryOptions(userName: String, repositoryName: String, description: Option[String], isPrivate: Boolean, issuesOption: String, externalIssuesUrl: Option[String], wikiOption: String, externalWikiUrl: Option[String], allowFork: Boolean)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink

    Save repository options.

    Save repository options.

    Definition Classes
    RepositoryService
  63. def searchIssue(condition: IssueSearchCondition, pullRequest: Boolean, offset: Int, limit: Int, repos: (String, String)*)(implicit s: Session): List[IssueInfo]

    Permalink

    Returns the search result against issues.

    Returns the search result against issues.

    condition

    the search condition

    pullRequest

    if true then returns only pull requests, false then returns only issues.

    offset

    the offset for pagination

    limit

    the limit for pagination

    repos

    Tuple of the repository owner and the repository name

    returns

    the search result (list of tuples which contain issue, labels and comment count)

    Definition Classes
    IssuesService
  64. def searchIssuesByKeyword(owner: String, repository: String, query: String)(implicit s: Session): List[(Issue, Int, String)]

    Permalink

    Search issues by keyword.

    Search issues by keyword.

    owner

    the repository owner

    repository

    the repository name

    query

    the keywords separated by whitespace.

    returns

    issues with comment count and matched content of issue or comment

    Definition Classes
    IssuesService
  65. def searchPullRequestByApi(condition: IssueSearchCondition, offset: Int, limit: Int, repos: (String, String)*)(implicit s: Session): List[(Issue, Account, Int, PullRequest, Repository, Account)]

    Permalink

    for api

    for api

    returns

    (issue, issueUser, commentCount, pullRequest, headRepo, headOwner)

    Definition Classes
    IssuesService
  66. def send(to: String, subject: String, msg: String)(implicit context: Context): Unit

    Permalink
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  68. def toNotify(r: RepositoryInfo, issue: Issue, content: String)(msg: (String) ⇒ String)(implicit context: Context): Unit

    Permalink
    Definition Classes
    MailerNotifier
  69. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  70. def updateAccount(account: Account)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  71. def updateAssignedUserName(owner: String, repository: String, issueId: Int, assignedUserName: Option[String])(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  72. def updateAvatarImage(userName: String, image: Option[String])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  73. def updateClosed(owner: String, repository: String, issueId: Int, closed: Boolean)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  74. def updateComment(commentId: Int, content: String)(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  75. def updateGroup(groupName: String, url: Option[String], removed: Boolean)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  76. def updateGroupMembers(groupName: String, members: List[(String, Boolean)])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  77. def updateIssue(owner: String, repository: String, issueId: Int, title: String, content: Option[String])(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  78. def updateLastActivityDate(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink

    Updates the last activity date of the repository.

    Updates the last activity date of the repository.

    Definition Classes
    RepositoryService
  79. def updateLastLoginDate(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  80. def updateMilestoneId(owner: String, repository: String, issueId: Int, milestoneId: Option[Int])(implicit s: Session): Int

    Permalink
    Definition Classes
    IssuesService
  81. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Notifier

Inherited from IssuesService

Inherited from AccountService

Inherited from RepositoryService

Inherited from AnyRef

Inherited from Any

Ungrouped