Package com.linecorp.centraldogma.client
Class CentralDogmaRepository
java.lang.Object
com.linecorp.centraldogma.client.CentralDogmaRepository
Prepares to send requests to the Central Dogma repository.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a newCommitRequest
that is used to push theChange
s to the Central Dogma repository.Returns a newCommitRequest
that is used to push theChange
s to the Central Dogma repository.Returns a newPreviewDiffRequest
that is used to retrieve the preview diff of files in the Central Dogma repository.diff
(PathPattern pathPattern) Returns a newDiffFilesRequest
that is used to retrieve the diff of files in the Central Dogma repository.<T> DiffRequest
<T> Returns a newDiffRequest
that is used to retrieve the diff of the file in the Central Dogma repository.Returns a newPreviewDiffRequest
that is used to retrieve the preview diff of files in the Central Dogma repository.DiffRequest
<?> Returns a newDiffRequest
that is used to retrieve the diff of the file in the Central Dogma repository.boolean
file
(PathPattern pathPattern) Returns a newFilesRequest
that is used to retrieve or list files in the Central Dogma repository.<T> FileRequest
<T> Returns a newFileRequest
that is used to retrieve the file in the Central Dogma repository.FileRequest
<?> Returns a newFileRequest
that is used to retrieve the file in the Central Dogma repository.int
hashCode()
history()
Returns a newHistoryRequest
that is used to retrieve the history of all files in the Central Dogma repository.history
(PathPattern pathPattern) Returns a newHistoryRequest
that is used to retrieve the history of files in the Central Dogma repository.<T> MergeRequest
<T> merge
(MergeQuery<T> mergeQuery) Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository.MergeRequest
<?> merge
(MergeSource... mergeSources) Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository.MergeRequest
<?> merge
(Iterable<MergeSource> mergeSources) Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository.Converts the relative revision number to the absolute revision number. e.g.Returns the name of the project.Returns the name of the repository.toString()
watch
(PathPattern pathPattern) Returns a newWatchFilesRequest
that is used to watch the files in the Central Dogma repository.<T> WatchRequest
<T> Returns a newWatchRequest
that is used to watch the file in the Central Dogma repository.WatchRequest
<?> Returns a newWatchRequest
that is used to watch the file in the Central Dogma repository.watcher
(PathPattern pathPattern) Returns a newWatcherRequest
that is used to create aWatcher
.<T> WatcherRequest
<T> Returns a newWatcherRequest
that is used to create aWatcher
.
-
Method Details
-
projectName
Returns the name of the project. -
repositoryName
Returns the name of the repository. -
normalize
Converts the relative revision number to the absolute revision number. e.g.-1 -> 3
- Returns:
- the absolute
Revision
-
file
Returns a newFileRequest
that is used to retrieve the file in the Central Dogma repository. CallFileRequest.get(Revision)
to perform the same operation asCentralDogma.getFile(String, String, Revision, Query)
. -
file
Returns a newFileRequest
that is used to retrieve the file in the Central Dogma repository. CallFileRequest.get(Revision)
to perform the same operation asCentralDogma.getFile(String, String, Revision, Query)
. -
file
Returns a newFilesRequest
that is used to retrieve or list files in the Central Dogma repository. CallFilesRequest.get(Revision)
orFilesRequest.list(Revision)
for those operation. -
merge
Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository. CallMergeRequest.get(Revision)
to perform the same operation asCentralDogma.mergeFiles(String, String, Revision, MergeQuery)
. -
merge
Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository. CallMergeRequest.get(Revision)
to perform the same operation asCentralDogma.mergeFiles(String, String, Revision, MergeQuery)
. -
merge
Returns a newMergeRequest
that is used to retrieve the merged file in the Central Dogma repository. CallMergeRequest.get(Revision)
to perform the same operation asCentralDogma.mergeFiles(String, String, Revision, MergeQuery)
. -
history
Returns a newHistoryRequest
that is used to retrieve the history of all files in the Central Dogma repository. CallHistoryRequest.get(Revision, Revision)
to perform the same operation asCentralDogma.getHistory(String, String, Revision, Revision, PathPattern, int)
. -
history
Returns a newHistoryRequest
that is used to retrieve the history of files in the Central Dogma repository. CallHistoryRequest.get(Revision, Revision)
to perform the same operation asCentralDogma.getHistory(String, String, Revision, Revision, PathPattern, int)
. -
diff
Returns a newDiffRequest
that is used to retrieve the diff of the file in the Central Dogma repository. CallDiffRequest.get(Revision, Revision)
to perform the same operation asCentralDogma.getDiff(String, String, Revision, Revision, Query)
. -
diff
Returns a newDiffRequest
that is used to retrieve the diff of the file in the Central Dogma repository. CallDiffRequest.get(Revision, Revision)
to perform the same operation asCentralDogma.getDiff(String, String, Revision, Revision, Query)
. -
diff
Returns a newDiffFilesRequest
that is used to retrieve the diff of files in the Central Dogma repository. CallDiffFilesRequest.get(Revision, Revision)
to perform the same operation asCentralDogma.getDiff(String, String, Revision, Revision, PathPattern)
. -
diff
Returns a newPreviewDiffRequest
that is used to retrieve the preview diff of files in the Central Dogma repository. CallPreviewDiffRequest.get(Revision)
to perform the same operation asCentralDogma.getPreviewDiffs(String, String, Revision, Iterable)
. -
diff
Returns a newPreviewDiffRequest
that is used to retrieve the preview diff of files in the Central Dogma repository. CallPreviewDiffRequest.get(Revision)
to perform the same operation asCentralDogma.getPreviewDiffs(String, String, Revision, Iterable)
. -
commit
Returns a newCommitRequest
that is used to push theChange
s to the Central Dogma repository. CallCommitRequest.push(Revision)
to perform the same operation asCentralDogma.push(String, String, Revision, String, String, Markup, Iterable)
. -
commit
Returns a newCommitRequest
that is used to push theChange
s to the Central Dogma repository. CallCommitRequest.push(Revision)
to perform the same operation asCentralDogma.push(String, String, Revision, String, String, Markup, Iterable)
. -
watch
Returns a newWatchRequest
that is used to watch the file in the Central Dogma repository. CallWatchRequest.start(Revision)
to perform the same operation asCentralDogma.watchFile(String, String, Revision, Query, long, boolean)
. -
watch
Returns a newWatchRequest
that is used to watch the file in the Central Dogma repository. CallWatchRequest.start(Revision)
to perform the same operation asCentralDogma.watchFile(String, String, Revision, Query, long, boolean)
. -
watch
Returns a newWatchFilesRequest
that is used to watch the files in the Central Dogma repository. CallWatchFilesRequest.start(Revision)
to perform the same operation asCentralDogma.watchRepository(String, String, Revision, PathPattern, long, boolean)
. -
watcher
Returns a newWatcherRequest
that is used to create aWatcher
. -
watcher
Returns a newWatcherRequest
that is used to create aWatcher
. -
equals
-
hashCode
public int hashCode() -
toString
-