public static class ChangeEditApi.NotImplemented extends Object implements ChangeEditApi
ChangeEditApi.NotImplemented| Constructor and Description |
|---|
NotImplemented() |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Creates a new change edit.
|
void |
delete()
Deletes the change edit.
|
void |
deleteFile(String filePath)
Deletes the specified file from the change edit.
|
Optional<EditInfo> |
get()
Retrieves details regarding the change edit.
|
String |
getCommitMessage()
Retrieves the commit message of the change edit.
|
Optional<BinaryResult> |
getFile(String filePath)
Retrieves the contents of the specified file from the change edit.
|
void |
modifyCommitMessage(String newCommitMessage)
Modifies the commit message of the change edit.
|
void |
modifyFile(String filePath,
RawInput newContent)
Modify the contents of the specified file of the change edit.
|
void |
publish()
Publishes the change edit using default settings.
|
void |
publish(PublishChangeEditInput publishChangeEditInput)
Publishes the change edit.
|
void |
rebase()
Rebases the change edit on top of the latest patch set of this change.
|
void |
renameFile(String oldFilePath,
String newFilePath)
Renames a file of the change edit or moves the file to another directory.
|
void |
restoreFile(String filePath)
Restores a file of the change edit to the state in which it was before the patch set on which
the change edit is based.
|
public Optional<EditInfo> get()
ChangeEditApiget in interface ChangeEditApiOptional containing details about the change edit if it exists, or Optional.empty()public void create()
ChangeEditApicreate in interface ChangeEditApipublic void delete()
ChangeEditApidelete in interface ChangeEditApipublic void rebase()
ChangeEditApirebase in interface ChangeEditApipublic void publish()
ChangeEditApiChangeEditApi.publish(PublishChangeEditInput)
for more details.publish in interface ChangeEditApipublic void publish(PublishChangeEditInput publishChangeEditInput)
ChangeEditApipublish in interface ChangeEditApipublishChangeEditInput - a PublishChangeEditInput specifying the options which
should be appliedpublic Optional<BinaryResult> getFile(String filePath)
ChangeEditApigetFile in interface ChangeEditApifilePath - the path of the fileOptional containing the contents of the file as a BinaryResult if
the file exists within the change edit, or Optional.empty()public void renameFile(String oldFilePath, String newFilePath)
ChangeEditApirenameFile in interface ChangeEditApioldFilePath - the current file pathnewFilePath - the desired file pathpublic void restoreFile(String filePath)
ChangeEditApirestoreFile in interface ChangeEditApifilePath - the path of the filepublic void modifyFile(String filePath, RawInput newContent)
ChangeEditApimodifyFile in interface ChangeEditApifilePath - the path of the file which should be modifiednewContent - the desired content of the filepublic void deleteFile(String filePath)
ChangeEditApideleteFile in interface ChangeEditApifilePath - the path fo the file which should be deletedpublic String getCommitMessage()
ChangeEditApigetCommitMessage in interface ChangeEditApipublic void modifyCommitMessage(String newCommitMessage)
ChangeEditApimodifyCommitMessage in interface ChangeEditApinewCommitMessage - the desired commit message