Class AbstractChangeNotes<T>

    • Method Detail

      • getChangeId

        public Change.Id getChangeId()
      • getRevision

        public org.eclipse.jgit.lib.ObjectId getRevision()
        Returns:
        revision of the metadata that was loaded.
      • load

        public T load()
      • readRef

        protected org.eclipse.jgit.lib.ObjectId readRef​(org.eclipse.jgit.lib.Repository repo)
                                                 throws IOException
        Throws:
        IOException
      • reload

        public T reload()
      • loadRevision

        public org.eclipse.jgit.lib.ObjectId loadRevision()
      • loadDefaults

        protected abstract void loadDefaults()
        Load default values for any instance variables when NoteDb is disabled.
      • getProjectName

        public abstract Project.NameKey getProjectName()
        Returns:
        the NameKey for the project where the notes should be stored, which is not necessarily the same as the change's project.
      • getRefName

        protected abstract String getRefName()
        Returns:
        name of the reference storing this configuration.
      • self

        protected final T self()