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);
}
Aggregations