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()
ChangeEditApi
get
in interface ChangeEditApi
Optional
containing details about the change edit if it exists, or Optional.empty()
public void create()
ChangeEditApi
create
in interface ChangeEditApi
public void delete()
ChangeEditApi
delete
in interface ChangeEditApi
public void rebase()
ChangeEditApi
rebase
in interface ChangeEditApi
public void publish()
ChangeEditApi
ChangeEditApi.publish(PublishChangeEditInput)
for more details.publish
in interface ChangeEditApi
public void publish(PublishChangeEditInput publishChangeEditInput)
ChangeEditApi
publish
in interface ChangeEditApi
publishChangeEditInput
- a PublishChangeEditInput
specifying the options which
should be appliedpublic Optional<BinaryResult> getFile(String filePath)
ChangeEditApi
getFile
in interface ChangeEditApi
filePath
- 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)
ChangeEditApi
renameFile
in interface ChangeEditApi
oldFilePath
- the current file pathnewFilePath
- the desired file pathpublic void restoreFile(String filePath)
ChangeEditApi
restoreFile
in interface ChangeEditApi
filePath
- the path of the filepublic void modifyFile(String filePath, RawInput newContent)
ChangeEditApi
modifyFile
in interface ChangeEditApi
filePath
- the path of the file which should be modifiednewContent
- the desired content of the filepublic void deleteFile(String filePath)
ChangeEditApi
deleteFile
in interface ChangeEditApi
filePath
- the path fo the file which should be deletedpublic String getCommitMessage()
ChangeEditApi
getCommitMessage
in interface ChangeEditApi
public void modifyCommitMessage(String newCommitMessage)
ChangeEditApi
modifyCommitMessage
in interface ChangeEditApi
newCommitMessage
- the desired commit message