public class RobotCommentUpdate extends AbstractChangeUpdate
This delta contains only robot comments on a single patch set of a change by a single author. This delta will become a single commit in the repository.
This class is not thread safe.
Modifier and Type | Class and Description |
---|---|
static interface |
RobotCommentUpdate.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.
|
protected Project.NameKey |
getProjectName() |
protected java.lang.String |
getRefName() |
boolean |
isEmpty()
Whether no updates have been done.
|
void |
putComment(RobotComment c) |
allowWriteToNewRef, checkNotReadOnly, getAccountId, getChange, getId, getNotes, getNullableAccountId, getPatchSetId, getWhen, isRootOnly, newIdent, setPatchSetId, verifyComment
public void putComment(RobotComment c)
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
public boolean isEmpty()
AbstractChangeUpdate
isEmpty
in class AbstractChangeUpdate