Subversion Repositories SmartDukaan

Rev

Rev 5680 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5680 Rev 5742
Line 108... Line 108...
108
		try {
108
		try {
109
			AlertMapper alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
109
			AlertMapper alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
110
			if(alertMap!=null) {
110
			if(alertMap!=null) {
111
				delayedEventDescription = alertMap.getEventdesciption();
111
				delayedEventDescription = alertMap.getEventdesciption();
112
				userIds = alertMap.getUserIds();
112
				userIds = alertMap.getUserIds();
-
 
113
				if(userIds!=null)
113
				sendTo = userIds.split(";");
114
					sendTo = userIds.split(";");
114
			} else {
115
			} else {
115
				EntityMonitoringStatus entityMonitoringStatus = 
116
				EntityMonitoringStatus entityMonitoringStatus = 
116
					entityHandler.getEntityMonitoringStatus(entity.getEntityType());
117
					entityHandler.getEntityMonitoringStatus(entity.getEntityType());
117
				sendTo = entityMonitoringStatus.getUserIds().split(";");
118
				sendTo = entityMonitoringStatus.getUserIds().split(";");
118
				//sendTo[0] = "amar.kumar@shop2020.in";
-
 
119
			}
119
			}
120
			System.out.println(sendTo);
-
 
121
			if(userIds!=null && userIds!="") {
120
			if(userIds!=null && userIds!="") {
122
				
121
				
123
				String emailFromAddress = "build@shop2020.in";
122
				String emailFromAddress = "build@shop2020.in";
124
		        String password = "cafe@nes";
123
		        String password = "cafe@nes";
125
		        String emailSubjectTxt = null;
124
		        String emailSubjectTxt = null;