public interface GitFacadeMXBean
| Modifier and Type | Method and Description |
|---|---|
List<String> |
branches()
Returns all the branch names we can use in the local repo
|
List<String> |
completePath(String branch,
String completionText,
boolean directoriesOnly)
Provides a file/path completion hook so we can start typing the name of a file or directory
|
void |
createBranch(String fromBranch,
String newBranch)
Creates a new branch from the given branch
|
CommitInfo |
createDirectory(String branch,
String path,
String commitMessage,
String authorName,
String authorEmail)
Creates a new file if it doesn't already exist
|
String |
diff(String objectId,
String baseObjectId,
String blobPath)
Performs a diff of the latest or a specifc version of the given blobPath
against either the previous or a given baseObjectId
|
FileInfo |
exists(String branch,
String pathOrEmpty)
Checks if the file exists and if so what its file metadata is.
|
CommitInfo |
getCommitInfo(String commitId)
Returns details about the commit, such as its message etc
|
List<CommitTreeInfo> |
getCommitTree(String commitId)
Returns the commit tree for the given commit id
|
String |
getContent(String objectId,
String blobPath)
Get the contents of a blobPath for a given commit objectId
|
String |
getHEAD() |
String |
getRepositoryLabel() |
List<CommitInfo> |
history(String branch,
String objectId,
String path,
int limit)
Return the history of the repository or a specific directory or file path
|
FileContents |
read(String branch,
String path)
Reads the contents of a file or a directory
|
String |
readJsonChildContent(String branch,
String path,
String fileNameWildcard,
String search)
Reads the child JSON file contents which match the given search string (if specified) and which match the given file name wildcard (using * to match any characters in the name).
|
void |
remove(String branch,
String path,
String commitMessage,
String authorName,
String authorEmail) |
void |
rename(String branch,
String oldPath,
String newPath,
String commitMessage,
String authorName,
String authorEmail)
Renames the given oldPath to the newPath location for the given branch, commit message and user
|
void |
revertTo(String branch,
String objectId,
String blobPath,
String commitMessage,
String authorName,
String authorEmail)
Reverts the file to a previous value
|
void |
uploadFile(String branch,
String path,
boolean unzip,
String sourceFileName,
String destName) |
CommitInfo |
write(String branch,
String path,
String commitMessage,
String authorName,
String authorEmail,
String contents) |
CommitInfo |
writeBase64(String branch,
String path,
String commitMessage,
String authorName,
String authorEmail,
String contentsBase64) |
String getRepositoryLabel()
FileInfo exists(String branch, String pathOrEmpty) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionFileContents read(String branch, String path) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionCommitInfo write(String branch, String path, String commitMessage, String authorName, String authorEmail, String contents)
CommitInfo writeBase64(String branch, String path, String commitMessage, String authorName, String authorEmail, String contentsBase64)
CommitInfo createDirectory(String branch, String path, String commitMessage, String authorName, String authorEmail)
void createBranch(String fromBranch, String newBranch)
void rename(String branch, String oldPath, String newPath, String commitMessage, String authorName, String authorEmail)
void remove(String branch, String path, String commitMessage, String authorName, String authorEmail)
String getHEAD()
List<CommitInfo> history(String branch, String objectId, String path, int limit)
List<CommitTreeInfo> getCommitTree(String commitId)
CommitInfo getCommitInfo(String commitId)
String getContent(String objectId, String blobPath)
List<String> completePath(String branch, String completionText, boolean directoriesOnly)
String readJsonChildContent(String branch, String path, String fileNameWildcard, String search) throws IOException
IOExceptionString diff(String objectId, String baseObjectId, String blobPath)
void revertTo(String branch, String objectId, String blobPath, String commitMessage, String authorName, String authorEmail)
void uploadFile(String branch, String path, boolean unzip, String sourceFileName, String destName) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.