Class SnapshotGitRequest

java.lang.Object
com.e1c.g5.v8.dt.snapshot.integration.git.SnapshotGitRequest

public final class SnapshotGitRequest extends Object
Request to create or restore snapshot for particular project and Git commit.
  • Constructor Details

    • SnapshotGitRequest

      public SnapshotGitRequest(org.eclipse.core.resources.IProject project, org.eclipse.jgit.lib.ObjectId revision, org.eclipse.jgit.lib.Ref revisionRef, SnapshotTask task)
      Constructs a new request.
      Parameters:
      project - the project, cannot be null
      revision - SHA-1 of the commit, cannot be null
      revisionRef - a ref pointing to revision, provides additional information, may be null
      task - the snapshot task, either CREATE or RESTORE, cannot be null
  • Method Details

    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Returns:
      the project, never null
    • getRevision

      public org.eclipse.jgit.lib.ObjectId getRevision()
      Returns:
      SHA-1 of the commit, never null
    • getRevisionRef

      public org.eclipse.jgit.lib.Ref getRevisionRef()
      Returns:
      a ref pointing to revision, or null
    • getTask

      public SnapshotTask getTask()
      Returns:
      the snapshot task, never null