Packages

object helpers extends AvatarImageProvider with LinkConverter with RequestCache

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. helpers
  2. RequestCache
  3. PrioritiesService
  4. MilestonesService
  5. LabelsService
  6. RepositoryService
  7. IssuesService
  8. AccountService
  9. SystemSettingsService
  10. LinkConverter
  11. AvatarImageProvider
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class CommentDiffLine(newLine: Option[String], oldLine: Option[String], type: String, text: String) extends Product with Serializable
  2. implicit final class RegexReplaceString extends AnyVal
  3. implicit final class RichHtmlSeq extends AnyVal

    Implicit conversion to add mkHtml() to Seq[Html].

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def activityMessage(message: String)(implicit context: Context): Html

    Convert link notations in the activity message.

  5. def addAccountPreference(userName: String, highlighterTheme: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  6. def addCollaborator(userName: String, repositoryName: String, collaboratorName: String, role: String)(implicit s: (blockingApi)#Session): Unit

    Add collaborator (user or group) to the repository.

    Add collaborator (user or group) to the repository.

    Definition Classes
    RepositoryService
  7. def addOrUpdateAccountPreference(userName: String, highlighterTheme: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  8. def appendQueryString(baseUrl: String, queryString: String): String
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def assets(path: String)(implicit context: Context): String

    Returns the url to the path of assets.

  11. def authenticate(settings: SystemSettings, userName: String, password: String)(implicit s: (blockingApi)#Session): Option[Account]
    Definition Classes
    AccountService
  12. def avatar(commit: CommitInfo, size: Int)(implicit context: Context): Html

    Returns <img> which displays the avatar icon for the given mail address.

    Returns <img> which displays the avatar icon for the given mail address. This method looks up Gravatar if avatar icon has not been configured in user settings.

  13. def avatar(userName: String, size: Int, tooltip: Boolean = false, mailAddress: String = "")(implicit context: Context): Html

    Returns <img> which displays the avatar icon for the given user name.

    Returns <img> which displays the avatar icon for the given user name. This method looks up Gravatar if avatar icon has not been configured in user settings.

  14. def avatarLink(commit: CommitInfo, size: Int)(implicit context: Context): Html

    Generates the avatar link to the account page.

    Generates the avatar link to the account page. If user does not exist or disabled, this method returns avatar image without link.

  15. def avatarLink(userName: String, size: Int, mailAddress: String = "", tooltip: Boolean = false, label: Boolean = false)(implicit context: Context): Html

    Generates the avatar link to the account page.

    Generates the avatar link to the account page. If user does not exist or disabled, this method returns avatar image without link.

  16. def basePRBranchUrl(pullreq: PullRequest)(implicit context: Context): String

    Generates the url to the pull request base branch.

  17. def baseUrl(implicit request: HttpServletRequest): String
    Definition Classes
    SystemSettingsService
  18. val bootDate: Date

    java.util.Date of boot timestamp.

  19. def changeIssueToPullRequest(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  21. def closeIssuesFromMessage(message: String, userName: String, owner: String, repository: String)(implicit s: (blockingApi)#Session): Seq[Int]
    Definition Classes
    IssuesService
  22. def closeMilestone(milestone: Milestone)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    MilestonesService
  23. def commitStateIcon(state: CommitState): Html
  24. def commitStateText(state: CommitState, commitId: String): String
  25. def convertRefsLinks(text: String, repository: RepositoryInfo, issueIdPrefix: String = "#", escapeHtml: Boolean = true)(implicit context: Context): String

    Converts issue id, username and commit id to link in the given text.

    Converts issue id, username and commit id to link in the given text.

    Attributes
    protected
    Definition Classes
    LinkConverter
  26. def countIssue(condition: IssueSearchCondition, searchOption: IssueSearchOption, repos: (String, String)*)(implicit s: (blockingApi)#Session): Int

    Returns the count of the search result against issues.

    Returns the count of the search result against issues.

    condition

    the search condition

    searchOption

    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
  27. def countIssueGroupByLabels(owner: String, repository: String, condition: IssueSearchCondition)(implicit s: (blockingApi)#Session): Map[String, Int]

    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
  28. def countIssueGroupByPriorities(owner: String, repository: String, condition: IssueSearchCondition)(implicit s: (blockingApi)#Session): Map[String, Int]

    Returns the Map which contains issue count for each priority.

    Returns the Map which contains issue count for each priority.

    owner

    the repository owner

    repository

    the repository name

    condition

    the search condition

    returns

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

    Definition Classes
    IssuesService
  29. def createAccount(userName: String, password: String, fullName: String, mailAddress: String, isAdmin: Boolean, description: Option[String], url: Option[String])(implicit s: (blockingApi)#Session): Account
    Definition Classes
    AccountService
  30. def createComment(owner: String, repository: String, loginUser: String, issueId: Int, content: String, action: String)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  31. def createGlobalIssueLink(owner: String, repository: String, issueId: Int, title: String)(implicit context: Context): String

    Creates a global link to the issue or the pull request from the issue id.

    Creates a global link to the issue or the pull request from the issue id.

    Attributes
    protected
    Definition Classes
    LinkConverter
  32. def createGroup(groupName: String, description: Option[String], url: Option[String])(implicit s: (blockingApi)#Session): Account
    Definition Classes
    AccountService
  33. def createIssueComment(owner: String, repository: String, commit: CommitInfo)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    IssuesService
  34. def createIssueLink(owner: String, repository: String, issueId: Int, title: String)(implicit context: Context): String

    Creates a link to the issue or the pull request from the issue id.

    Creates a link to the issue or the pull request from the issue id.

    Attributes
    protected
    Definition Classes
    LinkConverter
  35. def createLabel(owner: String, repository: String, labelName: String)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    LabelsService
  36. def createLabel(owner: String, repository: String, labelName: String, color: String)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    LabelsService
  37. def createMilestone(owner: String, repository: String, title: String, description: Option[String], dueDate: Option[Date])(implicit s: (blockingApi)#Session): Int
    Definition Classes
    MilestonesService
  38. def createPriority(owner: String, repository: String, priorityName: String, description: Option[String], color: String)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    PrioritiesService
  39. def createReferComment(owner: String, repository: String, fromIssue: Issue, message: String, loginAccount: Account)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    IssuesService
  40. def date(date: Date): String

    Format java.util.Date to "yyyy-MM-dd".

  41. def datetime(date: Date): String

    Format java.util.Date to "yyyy-MM-dd HH:mm:ss".

  42. def datetimeAgo(date: Date): String

    Format java.util.Date to "x {seconds/minutes/hours/days/months/years} ago"

  43. def datetimeAgoRecentOnly(date: Date): String

    Format java.util.Date to "x {seconds/minutes/hours/days} ago" If duration over 1 month, format to "d MMM (yyyy)"

  44. def datetimeRFC3339(date: Date): String

    Format java.util.Date to "yyyy-MM-dd'T'hh:mm:ss'Z'".

  45. def decodeResetPasswordToken(token: String): Option[String]
    Definition Classes
    AccountService
  46. def decorateHtml(html: String, repository: RepositoryInfo)(implicit context: Context): String

    Decorate a given HTML by TextDecorators which are provided by plug-ins.

    Decorate a given HTML by TextDecorators which are provided by plug-ins. TextDecorators are applied to only text parts of a given HTML.

  47. def deleteAllIssueAssignees(owner: String, repository: String, issueId: Int, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  48. def deleteAllIssueLabels(owner: String, repository: String, issueId: Int, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  49. def deleteComment(owner: String, repository: String, issueId: Int, commentId: Int)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  50. def deleteIssueAssignee(owner: String, repository: String, issueId: Int, assigneeUserName: String, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  51. def deleteIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  52. def deleteLabel(owner: String, repository: String, labelId: Int)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    LabelsService
  53. def deleteMilestone(owner: String, repository: String, milestoneId: Int)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    MilestonesService
  54. def deletePriority(owner: String, repository: String, priorityId: Int)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    PrioritiesService
  55. def deleteRepository(repository: Repository)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    RepositoryService
  56. def diff(jsonString: String): Html

    Make HTML fragment of the partial diff for a comment on a line of diff.

    Make HTML fragment of the partial diff for a comment on a line of diff.

    jsonString

    JSON string which is stored in COMMIT_COMMENT table.

    returns

    HTML fragment of diff

  57. def encodeRefName(value: String): String

    URL encode except '/'.

  58. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  60. def generateResetPasswordToken(mailAddress: String): String
    Definition Classes
    AccountService
  61. def getAccountByMailAddress(mailAddress: String, includeRemoved: Boolean = false)(implicit s: (blockingApi)#Session): Option[Account]
    Definition Classes
    AccountService
  62. def getAccountByMailAddressFromCache(mailAddress: String)(implicit context: Context): Option[Account]
    Definition Classes
    RequestCache
  63. def getAccountByUserName(userName: String, includeRemoved: Boolean = false)(implicit s: (blockingApi)#Session): Option[Account]
    Definition Classes
    AccountService
  64. def getAccountByUserNameFromCache(userName: String)(implicit context: Context): Option[Account]
    Definition Classes
    RequestCache
  65. def getAccountByUserNameIgnoreCase(userName: String, includeRemoved: Boolean = false)(implicit s: (blockingApi)#Session): Option[Account]
    Definition Classes
    AccountService
  66. def getAccountExtraMailAddresses(userName: String)(implicit s: (blockingApi)#Session): List[String]
    Definition Classes
    AccountService
  67. def getAccountPreference(userName: String)(implicit s: (blockingApi)#Session): Option[AccountPreference]
    Definition Classes
    AccountService
  68. def getAccountsByUserNames(userNames: Set[String], knowns: Set[Account], includeRemoved: Boolean = false)(implicit s: (blockingApi)#Session): Map[String, Account]
    Definition Classes
    AccountService
  69. 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

    Definition Classes
    RepositoryService
  70. def getAllUsers(includeRemoved: Boolean = true, includeGroups: Boolean = true)(implicit s: (blockingApi)#Session): List[Account]
    Definition Classes
    AccountService
  71. def getApiMilestone(repository: RepositoryInfo, milestoneId: Int)(implicit s: (blockingApi)#Session): Option[ApiMilestone]
    Definition Classes
    MilestonesService
  72. def getAssignableUserNames(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[String]
    Definition Classes
    IssuesService
  73. def getAvatarImageHtml(userName: String, size: Int, mailAddress: String = "", tooltip: Boolean = false)(implicit context: Context): Html

    Returns <img> which displays the avatar icon.

    Returns <img> which displays the avatar icon. Looks up Gravatar if avatar icon has not been configured in user settings.

    Attributes
    protected
    Definition Classes
    AvatarImageProvider
  74. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  75. 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.

    Definition Classes
    RepositoryService
  76. 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.

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

    Definition Classes
    RepositoryService
  77. def getComment(owner: String, repository: String, commentId: String)(implicit s: (blockingApi)#Session): Option[IssueComment]
    Definition Classes
    IssuesService
  78. def getCommentForApi(owner: String, repository: String, commentId: Int)(implicit s: (blockingApi)#Session): Option[(IssueComment, Account, Issue)]
    Definition Classes
    IssuesService
  79. def getComments(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): List[model.IssueCommentComponent.IssueComments.TableElementType]
    Definition Classes
    IssuesService
  80. def getCommentsForApi(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): List[(IssueComment, Account, Issue)]

    returns

    IssueComment and commentedUser and Issue

    Definition Classes
    IssuesService
  81. 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.

    Definition Classes
    RepositoryService
  82. def getDefaultPriority(owner: String, repository: String)(implicit s: (blockingApi)#Session): Option[Priority]
    Definition Classes
    PrioritiesService
  83. def getForkedRepositories(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): List[Repository]
    Definition Classes
    RepositoryService
  84. def getGroupMembers(groupName: String)(implicit s: (blockingApi)#Session): List[GroupMember]
    Definition Classes
    AccountService
  85. def getGroupNames(userName: String)(implicit s: (blockingApi)#Session): List[String]
    Definition Classes
    AccountService
  86. def getGroupsByUserName(userName: String)(implicit s: (blockingApi)#Session): List[String]
    Definition Classes
    AccountService
  87. def getIssue(owner: String, repository: String, issueId: String)(implicit s: (blockingApi)#Session): Option[model.IssueComponent.Issues.TableElementType]
    Definition Classes
    IssuesService
  88. def getIssueAssignees(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): List[IssueAssignee]
    Definition Classes
    IssuesService
  89. def getIssueFromCache(userName: String, repositoryName: String, issueId: String)(implicit context: Context): Option[Issue]
    Definition Classes
    RequestCache
  90. def getIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int)(implicit s: (blockingApi)#Session): Option[IssueLabel]
    Definition Classes
    IssuesService
  91. def getIssueLabels(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): List[Label]
    Definition Classes
    IssuesService
  92. def getLabel(owner: String, repository: String, labelName: String)(implicit s: (blockingApi)#Session): Option[Label]
    Definition Classes
    LabelsService
  93. def getLabel(owner: String, repository: String, labelId: Int)(implicit s: (blockingApi)#Session): Option[Label]
    Definition Classes
    LabelsService
  94. def getLabels(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[Label]
    Definition Classes
    LabelsService
  95. def getMergedComment(owner: String, repository: String, issueId: Int)(implicit s: (blockingApi)#Session): Option[(IssueComment, Account)]
    Definition Classes
    IssuesService
  96. def getMilestone(owner: String, repository: String, milestoneId: Int)(implicit s: (blockingApi)#Session): Option[Milestone]
    Definition Classes
    MilestonesService
  97. def getMilestones(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[Milestone]
    Definition Classes
    MilestonesService
  98. def getMilestonesWithIssueCount(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[(Milestone, Int, Int)]
    Definition Classes
    MilestonesService
  99. def getOpenIssues(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[Issue]
    Definition Classes
    IssuesService
  100. def getPriorities(owner: String, repository: String)(implicit s: (blockingApi)#Session): List[Priority]
    Definition Classes
    PrioritiesService
  101. def getPriority(owner: String, repository: String, priorityName: String)(implicit s: (blockingApi)#Session): Option[Priority]
    Definition Classes
    PrioritiesService
  102. def getPriority(owner: String, repository: String, priorityId: Int)(implicit s: (blockingApi)#Session): Option[Priority]
    Definition Classes
    PrioritiesService
  103. def getPublicRepositories(withoutPhysicalInfo: Boolean = false)(implicit s: (blockingApi)#Session): List[RepositoryInfo]

    Returns the all public repositories.

    Returns the all public repositories.

    returns

    the repository information list

    Definition Classes
    RepositoryService
  104. 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

    Definition Classes
    RepositoryService
  105. def getRepositoryInfoFromCache(userName: String, repositoryName: String)(implicit context: Context): Option[Repository]
    Definition Classes
    RequestCache
  106. 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

    Definition Classes
    RepositoryService
  107. 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.

    Definition Classes
    RepositoryService
  108. def getVisibleRepositories(loginAccount: Option[Account], repositoryUserName: Option[String], withoutPhysicalInfo: Boolean, limit: Boolean)(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

    limit

    if true then result will include only repositories owned by the login account. otherwise, result will be all visible repositories.

    returns

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

    Definition Classes
    RepositoryService
  109. 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. This function is for plugin compatibility.

    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
  110. def hasDeveloperRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
    Definition Classes
    RepositoryService
  111. def hasGuestRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
    Definition Classes
    RepositoryService
  112. def hasOwnerRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
    Definition Classes
    RepositoryService
  113. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  114. def hashDate(date: Date): String

    Format java.util.Date to "yyyyMMDDHHmmss" (for url hash ex.

    Format java.util.Date to "yyyyMMDDHHmmss" (for url hash ex. /some/path.css?19800101010203

  115. def hashQuery: String

    hashDate of bootDate for /assets, /plugin-assets

  116. def insertIssue(owner: String, repository: String, loginUser: String, title: String, content: Option[String], milestoneId: Option[Int], priorityId: Option[Int], isPullRequest: Boolean = false)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  117. def insertRepository(repositoryName: String, userName: String, description: Option[String], isPrivate: Boolean, defaultBranch: String, 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)

    Definition Classes
    RepositoryService
  118. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  119. def isLastAdministrator(account: Account)(implicit s: (blockingApi)#Session): Boolean
    Definition Classes
    AccountService
  120. def isPast(date: Date): Boolean

    Test whether the given Date is past date.

  121. def isReadable(repository: Repository, loginAccount: Option[Account])(implicit s: (blockingApi)#Session): Boolean
    Definition Classes
    RepositoryService
  122. def isRenderable(fileName: String): Boolean

    Tests whether the given file is renderable.

    Tests whether the given file is renderable. It's tested by the file extension.

  123. def issueGlobalLink(owner: String, repository: String, issueId: Int, title: String)(implicit context: Context): Html

    Creates a global link to the issue or the pull request from the issue id.

  124. def issueLink(owner: String, repository: String, issueId: Int, title: String)(implicit context: Context): Html

    Creates a link to the issue or the pull request from the issue id.

  125. def json(obj: AnyRef): String

    Render a given object as the JSON string.

  126. def link(value: String, repository: RepositoryInfo)(implicit context: Context): Html

    Converts commit id, issue id and username to the link.

  127. def loadSystemSettings(props: Properties): SystemSettings
    Definition Classes
    SystemSettingsService
  128. def loadSystemSettings(): SystemSettings
    Definition Classes
    SystemSettingsService
  129. def markdown(markdown: String, repository: RepositoryInfo, branch: String, enableWikiLink: Boolean, enableRefsLink: Boolean, enableLineBreaks: Boolean, enableAnchor: Boolean = true, enableTaskList: Boolean = false, hasWritePermission: Boolean = false, pages: List[String] = Nil)(implicit context: Context): Html

    Converts Markdown of Wiki pages to HTML.

  130. def md5(value: String): String
  131. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  132. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  133. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  134. def openMilestone(milestone: Milestone)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    MilestonesService
  135. def plural(count: Int, singular: String, plural: String = ""): String

    Returns singular if count is 1, otherwise plural.

    Returns singular if count is 1, otherwise plural. If plural is not specified, returns singular + "s" as plural.

  136. def pre(value: Html): Html
  137. def readableSize(size: Option[Long]): String

    a human-readable display value (includes units - EB, PB, TB, GB, MB, KB or bytes)

    a human-readable display value (includes units - EB, PB, TB, GB, MB, KB or bytes)

    size

    total size of object in bytes

  138. def registerIssueAssignee(owner: String, repository: String, issueId: Int, assigneeUserName: String, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  139. def registerIssueLabel(owner: String, repository: String, issueId: Int, labelId: Int, insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  140. def removeCollaborator(userName: String, repositoryName: String, collaboratorName: String)(implicit s: (blockingApi)#Session): Unit

    Remove specified collaborator from the repository.

    Remove specified collaborator from the repository.

    Definition Classes
    RepositoryService
  141. def removeCollaborators(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): Unit

    Remove all collaborators from the repository.

    Remove all collaborators from the repository.

    Definition Classes
    RepositoryService
  142. def removeHtml(html: Html): Html

    Remove html tags from the given Html instance.

  143. def removeUser(account: Account)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  144. def removeUserRelatedData(userName: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  145. def renameRepository(oldUserName: String, oldRepositoryName: String, newUserName: String, newRepositoryName: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    RepositoryService
  146. def renderMarkup(filePath: List[String], fileContent: String, branch: String, repository: RepositoryInfo, enableWikiLink: Boolean, enableRefsLink: Boolean, enableAnchor: Boolean)(implicit context: Context): Html

    Render the given source (only markdown is supported in default) as HTML.

    Render the given source (only markdown is supported in default) as HTML. You can test if a file is renderable in this method by isRenderable().

  147. def reorderPriorities(owner: String, repository: String, order: Map[Int, Int])(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    PrioritiesService
  148. def requestPRBranchUrl(pullreq: PullRequest)(implicit context: Context): String

    Generates the url to the pull request branch.

  149. def saveRepositoryDefaultBranch(userName: String, repositoryName: String, defaultBranch: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    RepositoryService
  150. 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, safeMode: Boolean)(implicit s: (blockingApi)#Session): Unit

    Save repository options.

    Save repository options.

    Definition Classes
    RepositoryService
  151. def saveSystemSettings(settings: SystemSettings): Unit
    Definition Classes
    SystemSettingsService
  152. def searchIssue(condition: IssueSearchCondition, searchOption: IssueSearchOption, offset: Int, limit: Int, repos: (String, String)*)(implicit s: (blockingApi)#Session): List[IssueInfo]

    Returns the search result against issues.

    Returns the search result against issues.

    condition

    the search condition

    searchOption

    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
  153. def searchIssueByApi(condition: IssueSearchCondition, offset: Int, limit: Int, repos: (String, String)*)(implicit s: (blockingApi)#Session): List[(Issue, Account, List[Account])]

    for api

    for api

    returns

    (issue, issueUser, Seq(assigneeUsers))

    Definition Classes
    IssuesService
  154. def searchIssuesByKeyword(owner: String, repository: String, query: String, pullRequest: Boolean)(implicit s: (blockingApi)#Session): List[(Issue, Int, String)]

    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
  155. def searchPullRequestByApi(condition: IssueSearchCondition, offset: Int, limit: Int, repos: (String, String)*)(implicit s: (blockingApi)#Session): List[(Issue, Account, Int, PullRequest, Repository, Account, List[Account])]

    for api

    for api

    returns

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

    Definition Classes
    IssuesService
  156. def setDefaultPriority(owner: String, repository: String, priorityId: Option[Int])(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    PrioritiesService
  157. def suspendAccount(account: Account)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  158. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  159. val timeUnits: List[(Long, String)]
  160. def toString(): String
    Definition Classes
    AnyRef → Any
  161. def updateAccount(account: Account)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  162. def updateAccountExtraMailAddresses(userName: String, mails: List[String])(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  163. def updateAccountPreference(userName: String, highlighterTheme: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  164. def updateAvatarImage(userName: String, image: Option[String])(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  165. def updateClosed(owner: String, repository: String, issueId: Int, closed: Boolean)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  166. def updateComment(owner: String, repository: String, issueId: Int, commentId: Int, content: String)(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  167. def updateGroup(groupName: String, description: Option[String], url: Option[String], removed: Boolean)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  168. def updateGroupMembers(groupName: String, members: List[(String, Boolean)])(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  169. def updateIssue(owner: String, repository: String, issueId: Int, title: String, content: Option[String])(implicit s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  170. def updateLabel(owner: String, repository: String, labelId: Int, labelName: String, color: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    LabelsService
  171. def updateLastActivityDate(userName: String, repositoryName: String)(implicit s: (blockingApi)#Session): Unit

    Updates the last activity date of the repository.

    Updates the last activity date of the repository.

    Definition Classes
    RepositoryService
  172. def updateLastLoginDate(userName: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    AccountService
  173. def updateMilestone(milestone: Milestone)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    MilestonesService
  174. def updateMilestoneId(owner: String, repository: String, issueId: Int, milestoneId: Option[Int], insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  175. def updatePriority(owner: String, repository: String, priorityId: Int, priorityName: String, description: Option[String], color: String)(implicit s: (blockingApi)#Session): Unit
    Definition Classes
    PrioritiesService
  176. def updatePriorityId(owner: String, repository: String, issueId: Int, priorityId: Option[Int], insertComment: Boolean = false)(implicit context: Context, s: (blockingApi)#Session): Int
    Definition Classes
    IssuesService
  177. def url(userName: String)(implicit context: Context): String

    Generates the url to the account page.

  178. def url(repository: RepositoryInfo)(implicit context: Context): String

    Generates the url to the repository.

  179. def urlEncode(value: Option[String]): String
  180. def urlEncode(value: String): String
  181. def urlLink(text: String): String
  182. def user(userName: String, mailAddress: String = "", styleClass: String = "")(implicit context: Context): Html

    Generates the text link to the account page.

    Generates the text link to the account page. If user does not exist or disabled, this method returns user name as text without link.

  183. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  184. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  185. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def assets(implicit context: Context): String

    Returns the url to the root of assets.

    Returns the url to the root of assets.

    Annotations
    @deprecated
    Deprecated

    (Since version 4.11.0) Use assets(path: String)(implicit context: Context) instead.

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from RequestCache

Inherited from PrioritiesService

Inherited from MilestonesService

Inherited from LabelsService

Inherited from RepositoryService

Inherited from IssuesService

Inherited from AccountService

Inherited from SystemSettingsService

Inherited from LinkConverter

Inherited from AvatarImageProvider

Inherited from AnyRef

Inherited from Any

Ungrouped