public class ChangeDraftUpdate extends AbstractChangeUpdate
This delta contains only draft comments on a single patch set of a change by a single author. This delta will become a single commit in the All-Users repository.
This class is not thread safe.
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeDraftUpdate.Factory |
accountId, authorIdent, migration, NO_OP_UPDATE, noteUtil, psId, realAccountId, rootOnly, serverIdent, when
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jgit.lib.CommitBuilder |
applyImpl(org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.lib.ObjectInserter ins,
org.eclipse.jgit.lib.ObjectId curr)
Create a commit containing the contents of this update.
|
void |
deleteComment(Comment c) |
void |
deleteComment(java.lang.String revId,
Comment.Key key) |
protected Project.NameKey |
getProjectName() |
protected java.lang.String |
getRefName() |
boolean |
isEmpty()
Whether no updates have been done.
|
void |
putComment(Comment c) |
protected void |
setParentCommit(org.eclipse.jgit.lib.CommitBuilder cb,
org.eclipse.jgit.lib.ObjectId parentCommitId) |
allowWriteToNewRef, checkNotReadOnly, getAccountId, getChange, getId, getNotes, getNullableAccountId, getPatchSetId, getWhen, isRootOnly, newIdent, setPatchSetId, verifyComment
public void putComment(Comment c)
public void deleteComment(Comment c)
public void deleteComment(java.lang.String revId, Comment.Key key)
protected org.eclipse.jgit.lib.CommitBuilder applyImpl(org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.ObjectInserter ins, org.eclipse.jgit.lib.ObjectId curr) throws com.google.gwtorm.server.OrmException, java.io.IOException
AbstractChangeUpdate
applyImpl
in class AbstractChangeUpdate
ins
- inserter to write to; callers should not flush.AbstractChangeUpdate.isEmpty()
), return the
sentinel AbstractChangeUpdate.NO_OP_UPDATE
.com.google.gwtorm.server.OrmException
- if a Gerrit-level error occurred.java.io.IOException
- if a lower-level error occurred.protected Project.NameKey getProjectName()
getProjectName
in class AbstractChangeUpdate
protected java.lang.String getRefName()
getRefName
in class AbstractChangeUpdate
protected void setParentCommit(org.eclipse.jgit.lib.CommitBuilder cb, org.eclipse.jgit.lib.ObjectId parentCommitId)
setParentCommit
in class AbstractChangeUpdate
public boolean isEmpty()
AbstractChangeUpdate
isEmpty
in class AbstractChangeUpdate