Class DeleteChangeMessage
- java.lang.Object
-
- com.google.gerrit.server.update.RetryingRestModifyView<ChangeMessageResource,DeleteChangeMessageInput,ChangeMessageInfo>
-
- com.google.gerrit.server.restapi.change.DeleteChangeMessage
-
- All Implemented Interfaces:
RestModifyView<ChangeMessageResource,DeleteChangeMessageInput>
,RestView<ChangeMessageResource>
public class DeleteChangeMessage extends RetryingRestModifyView<ChangeMessageResource,DeleteChangeMessageInput,ChangeMessageInfo>
Deletes a change message by rewriting history.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteChangeMessage.DefaultDeleteChangeMessage
-
Constructor Summary
Constructors Constructor Description DeleteChangeMessage(com.google.inject.Provider<CurrentUser> userProvider, PermissionBackend permissionBackend, ChangeMessagesUtil changeMessagesUtil, AccountLoader.Factory accountLoaderFactory, ChangeNotes.Factory notesFactory, RetryHelper retryHelper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<ChangeMessageInfo>
applyImpl(BatchUpdate.Factory updateFactory, ChangeMessageResource resource, DeleteChangeMessageInput input)
static String
createNewChangeMessage(String deletedBy)
static String
createNewChangeMessage(String deletedBy, String deletedReason)
-
Methods inherited from class com.google.gerrit.server.update.RetryingRestModifyView
apply
-
-
-
-
Constructor Detail
-
DeleteChangeMessage
@Inject public DeleteChangeMessage(com.google.inject.Provider<CurrentUser> userProvider, PermissionBackend permissionBackend, ChangeMessagesUtil changeMessagesUtil, AccountLoader.Factory accountLoaderFactory, ChangeNotes.Factory notesFactory, RetryHelper retryHelper)
-
-
Method Detail
-
applyImpl
public Response<ChangeMessageInfo> applyImpl(BatchUpdate.Factory updateFactory, ChangeMessageResource resource, DeleteChangeMessageInput input) throws RestApiException, PermissionBackendException, UpdateException, IOException
- Specified by:
applyImpl
in classRetryingRestModifyView<ChangeMessageResource,DeleteChangeMessageInput,ChangeMessageInfo>
- Throws:
RestApiException
PermissionBackendException
UpdateException
IOException
-
createNewChangeMessage
public static String createNewChangeMessage(String deletedBy, String deletedReason)
-
-