Class SnapshotGitRequest


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

      • 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 Detail

      • 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