Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-626

Add support for annotate/blame/praise

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2-milestone-2
    • Component/s: Blame
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      Add a new role (BlameManager) into a new module (xwiki-commons-blame) that provides the following method:

          /**
           * Annotate content with current revision based on a diff with a previous revision.
           *
           * @param <R> type of the revision object that old metadata about the revision.
           * @param <E> type of the element to annotate (ie: String holding a line).
           * @param content the annotated content (up to the revision preceding the one given), use null to start a new
           *                blame.
           * @param revision the revision metadata to associate with the given revision.
           * @param previous the content of the previous revision to diff against the currently annotated content, use the
           *                 latest revision to start a new blame.
           * @return the updated annotated content.
           */
          <R, E> AnnotatedContent<R, E> blame(AnnotatedContent<R, E> content, R revision, List<E> previous);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                softec Denis Gervalle
                Reporter:
                softec Denis Gervalle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: