Class

gitbucket.core.servlet

GitAuthenticationFilter

Related Doc: package servlet

Permalink

class GitAuthenticationFilter extends Filter with RepositoryService with AccountService with SystemSettingsService

Provides BASIC Authentication for GitRepositoryServlet.

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

Instance Constructors

  1. new GitAuthenticationFilter()

    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 baseUrl(implicit request: HttpServletRequest): String

    Permalink
    Definition Classes
    SystemSettingsService
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. 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
  10. def createGroup(groupName: String, url: Option[String])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

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

    Permalink
    Definition Classes
    RepositoryService
  12. def destroy(): Unit

    Permalink
    Definition Classes
    GitAuthenticationFilter → Filter
  13. def doFilter(req: ServletRequest, res: ServletResponse, chain: FilterChain): Unit

    Permalink
    Definition Classes
    GitAuthenticationFilter → Filter
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AccountService
  19. 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
  20. 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
  21. def getAllUsers(includeRemoved: Boolean = true)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[Account]

    Permalink
    Definition Classes
    AccountService
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. 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
  24. 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
  25. def getForkedRepositories(userName: String, repositoryName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[(String, String)]

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

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

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

    Permalink
    Definition Classes
    AccountService
  29. 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
  30. 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
  31. def getUserRepositories(userName: String, withoutPhysicalInfo: Boolean = false)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): List[RepositoryInfo]

    Permalink
    Definition Classes
    RepositoryService
  32. 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
  33. def hasDeveloperRole(owner: String, repository: String, loginAccount: Option[Account])(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. def init(config: FilterConfig): Unit

    Permalink
    Definition Classes
    GitAuthenticationFilter → Filter
  37. 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
  38. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AccountService
  40. def loadSystemSettings(): SystemSettings

    Permalink
    Definition Classes
    SystemSettingsService
  41. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  44. 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
  45. def removeUserRelatedData(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

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

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

    Permalink
    Definition Classes
    RepositoryService
  48. 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
  49. def saveSystemSettings(settings: SystemSettings): Unit

    Permalink
    Definition Classes
    SystemSettingsService
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def toString(): String

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

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

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

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

    Permalink
    Definition Classes
    AccountService
  56. 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
  57. def updateLastLoginDate(userName: String)(implicit s: scala.slick.driver.JdbcProfile.SimpleQL.Session): Unit

    Permalink
    Definition Classes
    AccountService
  58. final def wait(): Unit

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

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

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

Inherited from SystemSettingsService

Inherited from AccountService

Inherited from RepositoryService

Inherited from Filter

Inherited from AnyRef

Inherited from Any

Ungrouped