Class ListChangeMessages
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.ListChangeMessages
-
- All Implemented Interfaces:
RestReadView<ChangeResource>
,RestView<ChangeResource>
public class ListChangeMessages extends Object implements RestReadView<ChangeResource>
-
-
Constructor Summary
Constructors Constructor Description ListChangeMessages(com.google.inject.Provider<ReviewDb> dbProvider, ChangeMessagesUtil changeMessagesUtil, AccountLoader.Factory accountLoaderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChangeMessageInfo>
apply(ChangeResource resource)
Process the view operation by reading from the resource.
-
-
-
Constructor Detail
-
ListChangeMessages
@Inject public ListChangeMessages(com.google.inject.Provider<ReviewDb> dbProvider, ChangeMessagesUtil changeMessagesUtil, AccountLoader.Factory accountLoaderFactory)
-
-
Method Detail
-
apply
public List<ChangeMessageInfo> apply(ChangeResource resource) throws com.google.gwtorm.server.OrmException, PermissionBackendException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<ChangeResource>
- Parameters:
resource
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
com.google.gwtorm.server.OrmException
PermissionBackendException
-
-