Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9675

Add Java API for the Git module + new APIs

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 5.3-milestone-2
    • 5.2
    • {Unused} Git
    • None
    • Unit
    • Unknown

    Description

      Right now there's only a Script Service. We also need a Java API so that other components can access it.

      New API:

          /**
           * Find all authors who have ever committed code in the passed repositories.
           *
           * @param repositories the list of repositories in which to look for authors
           * @return the list of authors who have ever contributed code in the passed repository
           */
          Set<PersonIdent> findAuthors(List<Repository> repositories);
      
          /**
           * Count commits done by all authors in the passed repositories and since the passed date.
           *
           * @param since the date from which to start counting. If null then counts from the beginning
           * @param repositories the list of repositories in which to look for commits
           * @return the author commit activity
           */
          UserCommitActivity[] countAuthorCommits(Date since, List<Repository> repositories);
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: