Interface ISnapshotLocationProvider
- All Known Implementing Classes:
LocationManager
public interface ISnapshotLocationProvider
Snapshot location provider provides locations for snapshots, bound to Git commits.
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptiongetLocationFor(org.eclipse.core.resources.IProject project, org.eclipse.jgit.lib.ObjectId revision) Determines location for existing or non-existing snapshot for the given project and commit.booleanhasSnapshotFor(org.eclipse.core.resources.IProject project, org.eclipse.jgit.lib.ObjectId revision) Checks whether a snapshot for the given project and commit exists.org.eclipse.jgit.lib.ObjectId[]listAvailableSnapshots(org.eclipse.core.resources.IProject project) Gets all commits such that a snapshot for the given project and the commit exists.
-
Method Details
-
hasSnapshotFor
boolean hasSnapshotFor(org.eclipse.core.resources.IProject project, org.eclipse.jgit.lib.ObjectId revision) Checks whether a snapshot for the given project and commit exists.- Parameters:
project- the project, cannot benullrevision- SHA-1 of the commit, cannot benull- Returns:
trueif the snapshot exists- Throws:
SnapshotIntegrationException- if the provider failed to prepare snapshot location
-
getLocationFor
Path getLocationFor(org.eclipse.core.resources.IProject project, org.eclipse.jgit.lib.ObjectId revision) Determines location for existing or non-existing snapshot for the given project and commit.- Parameters:
project- the project, cannot benullrevision- SHA-1 of the commit, cannot benull- Returns:
- the snapshot location, never
null - Throws:
SnapshotIntegrationException- if the provider failed to prepare snapshot location
-
listAvailableSnapshots
org.eclipse.jgit.lib.ObjectId[] listAvailableSnapshots(org.eclipse.core.resources.IProject project) Gets all commits such that a snapshot for the given project and the commit exists.- Parameters:
project- the project, cannot benull- Returns:
- array of SHA-1 of the commits, never
null - Throws:
SnapshotIntegrationException- if the snapshot lookup failed
-