Search in sources :

Example 1 with PutGroupMembershipNotificationTask

use of com.yahoo.athenz.zms.notification.PutGroupMembershipNotificationTask in project athenz by yahoo.

the class ZMSImpl method sendGroupMembershipApprovalNotification.

void sendGroupMembershipApprovalNotification(final String domain, final String org, final String groupName, final String member, final String auditRef, final String principal, final Group group) {
    Map<String, String> details = new HashMap<>();
    details.put(NOTIFICATION_DETAILS_DOMAIN, domain);
    details.put(NOTIFICATION_DETAILS_GROUP, groupName);
    details.put(NOTIFICATION_DETAILS_MEMBER, member);
    details.put(NOTIFICATION_DETAILS_REASON, auditRef);
    details.put(NOTIFICATION_DETAILS_REQUESTER, principal);
    if (LOG.isDebugEnabled()) {
        LOG.debug("Sending Group Membership Approval notification after putGroupMembership");
    }
    List<Notification> notifications = new PutGroupMembershipNotificationTask(domain, org, group, details, dbService, userDomainPrefix, notificationToEmailConverterCommon).getNotifications();
    notificationManager.sendNotifications(notifications);
}
Also used : ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) PutGroupMembershipNotificationTask(com.yahoo.athenz.zms.notification.PutGroupMembershipNotificationTask) Notification(com.yahoo.athenz.common.server.notification.Notification)

Aggregations

Notification (com.yahoo.athenz.common.server.notification.Notification)1 PutGroupMembershipNotificationTask (com.yahoo.athenz.zms.notification.PutGroupMembershipNotificationTask)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1