Package com.google.gerrit.entities
Class ChangeMessage
java.lang.Object
com.google.gerrit.entities.ChangeMessage
A message attached to a
Change
. This message is persisted in data storage, that is why it
must have template form that does not contain Gerrit user identifiable information. Hence, it
requires processing to convert it to user-facing form.
These messages are normally auto-generated by gerrit operations, but might also incorporate user input.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeMessage
create
(ChangeMessage.Key k, Account.Id a, Instant wo, PatchSet.Id psid) static ChangeMessage
create
(ChangeMessage.Key k, Account.Id a, Instant wo, PatchSet.Id psid, String messageTemplate, Account.Id realAuthor, String tag) boolean
If null, the message was written 'by the Gerrit system'.getKey()
Message template, as persisted in data storage.getTag()
int
hashCode()
static ChangeMessage.Key
toString()
-
Method Details
-
key
-
create
-
create
public static ChangeMessage create(ChangeMessage.Key k, Account.Id a, Instant wo, PatchSet.Id psid, String messageTemplate, Account.Id realAuthor, String tag) -
getKey
-
getAuthor
If null, the message was written 'by the Gerrit system'. -
getRealAuthor
-
getWrittenOn
-
getMessage
Message template, as persisted in data storage. -
getTag
-
getPatchSetId
-
equals
-
hashCode
public int hashCode() -
toString
-