Class ChangeLogEntry

java.lang.Object
hudson.scm.ChangeLogSet.Entry
hudson.plugins.repo.ChangeLogEntry

public class ChangeLogEntry extends ChangeLogSet.Entry
A POJO containing information about a single change (git commit) in a git repository. These objects are used to build the change log page.
  • Constructor Details

    • ChangeLogEntry

      public ChangeLogEntry(String path, String serverPath, String revision, String authorName, String authorEmail, String authorDate, String committerName, String committerEmail, String committerDate, String commitText, List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> modifiedFiles)
      Creates a new REpoChangeLogEntry object containing all the details about a git commit.
      Parameters:
      path - The path to the project from the client-side
      serverPath - The path to the project on the server-side
      revision - The SHA-1 revision of the project
      authorName - The name of the author of the commit
      authorEmail - The author's email address
      authorDate - The author date string
      committerName - The name of the committer
      committerEmail - The committer's email address
      committerDate - The date of the commit
      commitText - The commit message text
      modifiedFiles - A list of ModifiedFiles impacted by the commit
  • Method Details

    • toString

      public String toString()
      Converts this ChangeLogEntry to a string for debugging.
      Overrides:
      toString in class Object
      Returns:
      A String of change log entry information.
    • getPath

      public String getPath()
      Returns the client-side project path.
    • getServerPath

      public String getServerPath()
      Returns the server-side project path.
    • getRevision

      public String getRevision()
      Returns the SHA-1 revision.
    • getAuthorName

      public String getAuthorName()
      Returns the author's name.
    • getAuthorEmail

      public String getAuthorEmail()
      Returns the author's email address.
    • getAuthorDate

      public String getAuthorDate()
      Returns the date this commit was authored.
    • getCommitterName

      public String getCommitterName()
      Returns the committer's name.
    • getCommitterEmail

      public String getCommitterEmail()
      Returns the committer's email address.
    • getCommitterDate

      public String getCommitterDate()
      Returns the date this patch was committed.
    • getCommitText

      public String getCommitText()
      Returns the commit message.
    • getModifiedFiles

      public List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> getModifiedFiles()
      Returns a list of files modified by this change.
    • getAffectedFiles

      public List<hudson.plugins.repo.ChangeLogEntry.ModifiedFile> getAffectedFiles()
      Returns a set of paths in the workspace that was affected by this change.
      Overrides:
      getAffectedFiles in class ChangeLogSet.Entry
    • getMsg

      public String getMsg()
      Specified by:
      getMsg in class ChangeLogSet.Entry
    • getAuthor

      public User getAuthor()
      Specified by:
      getAuthor in class ChangeLogSet.Entry
    • setParent

      public void setParent(ChangeLogSet parent)
      Overrides:
      setParent in class ChangeLogSet.Entry
    • getAffectedPaths

      public Collection<String> getAffectedPaths()
      Specified by:
      getAffectedPaths in class ChangeLogSet.Entry