Search in sources :

Example 1 with ResourceEventResponse

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;
}
Also used : ResourceEventResponse(com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ResourceEventResponse) CloudbreakUser(com.sequenceiq.cloudbreak.common.user.CloudbreakUser) CheckPermissionByAccount(com.sequenceiq.authorization.annotation.CheckPermissionByAccount)

Aggregations

CheckPermissionByAccount (com.sequenceiq.authorization.annotation.CheckPermissionByAccount)1 ResourceEventResponse (com.sequenceiq.cloudbreak.api.endpoint.v4.util.responses.ResourceEventResponse)1 CloudbreakUser (com.sequenceiq.cloudbreak.common.user.CloudbreakUser)1