Package com.google.gerrit.server.change
Class ChangeMessageResource
- java.lang.Object
-
- com.google.gerrit.server.change.ChangeMessageResource
-
- All Implemented Interfaces:
RestResource
public class ChangeMessageResource extends Object implements RestResource
A change message resource.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.inject.TypeLiteral<RestView<ChangeMessageResource>>
CHANGE_MESSAGE_KIND
-
Constructor Summary
Constructors Constructor Description ChangeMessageResource(ChangeResource changeResource, ChangeMessageInfo changeMessage, int changeMessageIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Change.Id
getChangeId()
ChangeMessageInfo
getChangeMessage()
String
getChangeMessageId()
int
getChangeMessageIndex()
Gets the index of the change message among all messages of the change sorted by creation time.ChangeResource
getChangeResource()
-
-
-
Field Detail
-
CHANGE_MESSAGE_KIND
public static final com.google.inject.TypeLiteral<RestView<ChangeMessageResource>> CHANGE_MESSAGE_KIND
-
-
Constructor Detail
-
ChangeMessageResource
public ChangeMessageResource(ChangeResource changeResource, ChangeMessageInfo changeMessage, int changeMessageIndex)
-
-
Method Detail
-
getChangeResource
public ChangeResource getChangeResource()
-
getChangeMessage
public ChangeMessageInfo getChangeMessage()
-
getChangeId
public Change.Id getChangeId()
-
getChangeMessageId
public String getChangeMessageId()
-
getChangeMessageIndex
public int getChangeMessageIndex()
Gets the index of the change message among all messages of the change sorted by creation time.- Returns:
- the index of the change message.
-
-