public interface Repository
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.lang.String tagName,
RepositoryTagListener listener)
Adds a tag change listener
|
java.lang.String |
commitArchive(CommitBuilder commitTag,
java.io.InputStream is)
Adds and commits a jar/zip archive.
|
java.lang.String |
commitArchive(CommitBuilder commitTag,
Path contentArchive)
Adds and commits a jar/zip archive
|
java.lang.String |
commitPath(CommitBuilder commitTag,
Path contentDirectory)
Adds and commits a full path, recursively
|
java.lang.String |
getTagContentHash(java.lang.String tag)
Convenience method returning the tag's contentHash.
|
java.util.Map<java.lang.String,RepositoryTagEntry> |
getTagMap()
Returns the current read-only tag map.
|
void |
removeListener(java.lang.String tagName,
RepositoryTagListener listener)
Adds a tag change listener
|
boolean |
removeTag(CommitBuilder commitTag)
Removes a tag
|
java.util.Map<java.lang.String,RepositoryTagEntry> getTagMap()
java.lang.String getTagContentHash(java.lang.String tag)
java.lang.String commitArchive(CommitBuilder commitTag, Path contentArchive)
java.lang.String commitArchive(CommitBuilder commitTag, java.io.InputStream is)
java.lang.String commitPath(CommitBuilder commitTag, Path contentDirectory)
boolean removeTag(CommitBuilder commitTag)
tagName
- the symbolic tag for the repositoryuser
- the user adding a tag.server
- the server adding a tag.message
- user's message for the commitvoid addListener(java.lang.String tagName, RepositoryTagListener listener)
void removeListener(java.lang.String tagName, RepositoryTagListener listener)