public interface SCMRepository
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
A user friendly description of this repository
|
RevisionKey |
getDiffRevisionKey(Principal principal,
RevisionKey key)
get the prior revision key, this is the revision this one came from
|
java.lang.String |
getDisplayName()
A unique display name for the repository.
|
java.lang.String |
getName()
An immutable unique key for the repository.
|
RevisionData |
getRevisionData(Principal principal,
RevisionKey key)
Return information about a particular revision of a particular path.
|
java.lang.String |
getStateDescription()
A human readable description of the repository's current state
|
boolean |
isAvailable(Principal principal)
Is this repository available?
|
void |
streamContents(Principal principal,
RevisionKey key,
java.io.OutputStream os)
Stream the content of the revision to the given output stream
|
boolean isAvailable(Principal principal)
principal
- an authenticated userjava.lang.String getName()
java.lang.String getDisplayName()
java.lang.String getDescription()
java.lang.String getStateDescription()
RevisionData getRevisionData(Principal principal, RevisionKey key) throws NotFoundException
NotFoundException
void streamContents(Principal principal, RevisionKey key, java.io.OutputStream os) throws java.io.IOException, NotFoundException
java.io.IOException
NotFoundException
RevisionKey getDiffRevisionKey(Principal principal, RevisionKey key) throws NotFoundException
NotFoundException