Search in sources :

Example 1 with NotifierEntity

use of io.gravitee.rest.api.model.notification.NotifierEntity in project gravitee-management-rest-api by gravitee-io.

the class NotifierServiceImpl method list.

@Override
public List<NotifierEntity> list(NotificationReferenceType referenceType, String referenceId) {
    NotifierEntity emailNotifier = new NotifierEntity();
    emailNotifier.setId(DEFAULT_EMAIL_NOTIFIER_ID);
    emailNotifier.setName("Default Email Notifier");
    emailNotifier.setType("EMAIL");
    NotifierEntity webHookNotifier = new NotifierEntity();
    webHookNotifier.setId(DEFAULT_WEBHOOK_NOTIFIER_ID);
    webHookNotifier.setName("Default Webhook Notifier");
    webHookNotifier.setType("WEBHOOK");
    return Arrays.asList(emailNotifier, webHookNotifier);
}
Also used : NotifierEntity(io.gravitee.rest.api.model.notification.NotifierEntity)

Aggregations

NotifierEntity (io.gravitee.rest.api.model.notification.NotifierEntity)1