Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,10 @@ public Response updateSmssFile(@Context HttpServletRequest request, @PathParam("
ClusterUtil.pushEngineSmss(engineId, engine.getCatalogType());
if (Utility.isNotificationDatabaseEnabled()) {
// Adding notification
String engineType = String.valueOf(SecurityEngineUtils.getEngineType(engineId)).toLowerCase();
NotificationDbUtils.createNotification(user, null, null, engineId, NotificationConstants.Type.SMSS_UPDATE,
engineType, NotificationConstants.Priority.MEDIUM, null, null);
String engineType = String.valueOf(SecurityEngineUtils.getEngineType(engineId)).toLowerCase();
NotificationDbUtils.createNotification(user, null, null, engineId, NotificationConstants.Type.SMSS_UPDATE,
engineType, NotificationConstants.Priority.MEDIUM, null, null,
NotificationConstants.DisplaySurface.BELL);

// Adding email notification
EmailUtility.sendSmssUpdateEmailNotification(user, engineId, EmailUtility.RESOURCE_TYPE.ENGINE);
Expand Down
7 changes: 4 additions & 3 deletions src/prerna/semoss/web/services/local/ProjectResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,10 @@ public Response updateSmssFile(@Context HttpServletRequest request, @PathParam("
// push to cloud
ClusterUtil.pushProjectSmss(projectId);
if (Utility.isNotificationDatabaseEnabled()) {
// Adding notification
NotificationDbUtils.createNotification(user, null, null, projectId, NotificationConstants.Type.SMSS_UPDATE,
NotificationConstants.APP_CATALOG, NotificationConstants.Priority.MEDIUM, null, null);
// Adding notification
NotificationDbUtils.createNotification(user, null, null, projectId, NotificationConstants.Type.SMSS_UPDATE,
NotificationConstants.APP_CATALOG, NotificationConstants.Priority.MEDIUM, null, null,
NotificationConstants.DisplaySurface.BELL);

// Adding email notification
EmailUtility.sendSmssUpdateEmailNotification(user, projectId, EmailUtility.RESOURCE_TYPE.PROJECT);
Expand Down
Loading