Class ChangeNotes

    • Field Detail

      • MESSAGE_BY_TIME

        public static final com.google.common.collect.Ordering<ChangeMessage> MESSAGE_BY_TIME
    • Method Detail

      • parseException

        public static org.eclipse.jgit.errors.ConfigInvalidException parseException​(Change.Id changeId,
                                                                                    String fmt,
                                                                                    Object... args)
      • readOneReviewDbChange

        public static Change readOneReviewDbChange​(ReviewDb db,
                                                   Change.Id id)
                                            throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • getChange

        public Change getChange()
      • getMetaId

        public org.eclipse.jgit.lib.ObjectId getMetaId()
      • getPatchSets

        public com.google.common.collect.ImmutableSortedMap<PatchSet.Id,​PatchSet> getPatchSets()
      • getReviewersByEmail

        public ReviewerByEmailSet getReviewersByEmail()
        Returns:
        reviewers that do not currently have a Gerrit account and were added by email.
      • getPendingReviewers

        public ReviewerSet getPendingReviewers()
        Returns:
        reviewers that were modified during this change's current WIP phase.
      • getPendingReviewersByEmail

        public ReviewerByEmailSet getPendingReviewersByEmail()
        Returns:
        reviewers by email that were modified during this change's current WIP phase.
      • getReviewerUpdates

        public com.google.common.collect.ImmutableList<ReviewerStatusUpdate> getReviewerUpdates()
      • getPastAssignees

        public com.google.common.collect.ImmutableSet<Account.Id> getPastAssignees()
        Returns:
        an ImmutableSet of Account.Ids of all users that have been assigned to this change.
      • getHashtags

        public com.google.common.collect.ImmutableSet<String> getHashtags()
        Returns:
        a ImmutableSet of all hashtags for this change sorted in alphabetical order.
      • getAllPastReviewers

        public com.google.common.collect.ImmutableList<Account.Id> getAllPastReviewers()
        Returns:
        a list of all users who have ever been a reviewer on this change.
      • getSubmitRecords

        public com.google.common.collect.ImmutableList<SubmitRecord> getSubmitRecords()
        Returns:
        submit records stored during the most recent submit; only for changes that were actually submitted.
      • getChangeMessages

        public com.google.common.collect.ImmutableList<ChangeMessage> getChangeMessages()
        Returns:
        all change messages, in chronological order, oldest first.
      • getComments

        public com.google.common.collect.ImmutableListMultimap<RevId,​Comment> getComments()
        Returns:
        inline comments on each revision.
      • getCommentKeys

        public com.google.common.collect.ImmutableSet<Comment.Key> getCommentKeys()
      • getDraftComments

        public com.google.common.collect.ImmutableListMultimap<RevId,​Comment> getDraftComments​(Account.Id author)
                                                                                              throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • getDraftComments

        public com.google.common.collect.ImmutableListMultimap<RevId,​Comment> getDraftComments​(Account.Id author,
                                                                                                     org.eclipse.jgit.lib.Ref ref)
                                                                                              throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • getRobotComments

        public com.google.common.collect.ImmutableListMultimap<RevId,​RobotComment> getRobotComments()
                                                                                                   throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • containsComment

        public boolean containsComment​(Comment c)
                                throws com.google.gwtorm.server.OrmException
        Throws:
        com.google.gwtorm.server.OrmException
      • containsCommentPublished

        public boolean containsCommentPublished​(Comment c)
      • getCurrentPatchSet

        public PatchSet getCurrentPatchSet()
      • getReadOnlyUntil

        public Timestamp getReadOnlyUntil()