use of com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ResourceEventResponse in project cloudbreak by hortonworks.
the class UtilV4Controller method postNotificationTest.
@Override
@CheckPermissionByAccount(action = AuthorizationResourceAction.POWERUSER_ONLY)
public ResourceEventResponse postNotificationTest() {
CloudbreakUser cloudbreakUser = restRequestThreadLocalService.getCloudbreakUser();
notificationSender.sendTestNotification(cloudbreakUser.getUserId());
ResourceEventResponse response = new ResourceEventResponse();
response.setEvent(ResourceEvent.CREDENTIAL_CREATED);
return response;
}
Aggregations