Class EmailNotificationHelper


  • public class EmailNotificationHelper
    extends Object
    This class has the functionality to send email notifications to the users listed in the notification list for create, delete & modify
    • Constructor Detail

      • EmailNotificationHelper

        public EmailNotificationHelper​(String userDN)
    • Method Detail

      • setUserCreateNotificationList

        public void setUserCreateNotificationList()
      • setUserDeleteNotificationList

        public void setUserDeleteNotificationList()
      • setUserModifyNotificationList

        public void setUserModifyNotificationList()
      • isPresentUserCreateNotificationList

        public boolean isPresentUserCreateNotificationList()
      • isPresentUserDeleteNotificationList

        public boolean isPresentUserDeleteNotificationList()
      • isPresentUserModifyNotificationList

        public boolean isPresentUserModifyNotificationList()
      • sendUserCreateNotification

        public void sendUserCreateNotification​(Map attributes)
        The proper setUser<>NotificationList method should be called before calling this method.
        Parameters:
        attributes - the attributes of the user
      • sendUserDeleteNotification

        public void sendUserDeleteNotification​(Map attributes)
        The proper setUser<>NotificationList method should be called before calling this method.
        Parameters:
        attributes - the attributes of the user
      • sendUserModifyNotification

        public void sendUserModifyNotification​(SSOToken token,
                                               Map attributes,
                                               Map oldAttributes)
        The proper setUser<>NotificationList method should be called before calling this method.
        Parameters:
        token - a valid single sign on token
        attributes - the attribues of the user
        oldAttributes - the previous attributes of the user
      • getOrgTypeAttributes

        protected Set getOrgTypeAttributes​(AMOrganization org,
                                           String serviceName,
                                           String attrName)
                                    throws SSOException
        Protected method to be used to obtain organization attribute values for a given serviceName and attribute name. Returns a null value if a template value or default value for the attribute does not exist.
        Throws:
        SSOException