agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/NotificationDao.java
/**
	 * Soft deletes a notification
	 * @param notificationUuid
	 */
Soft deletes a notification
@param notificationUuid
Soft deletes a notification @param notificationUuid
public void softDeleteNotification(String notificationUuid) 
	throws NotificationException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			session.disableFilter("notificationTenantFilter");
			String sql = "UPDATE notifications n "
					+ "SET n.status = :status, "
					+ "n.is_visible = :visible, "
					+ "n.last_updated = CURRENT_TIMESTAMP "
					+ "WHERE n.uuid = :uuid ";
			int rowsAffected = session.createSQLQuery(sql)
					.setString("uuid",notificationUuid)
					.setString("status", NotificationStatusType.INACTIVE.name())
					.setBoolean("visible", false)
					.executeUpdate();
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw new NotificationException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception ignored) {}
		}
	}
public void softDeleteNotification ( String notificationUuid ) throws NotificationException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; session . disableFilter ( "notificationTenantFilter" ) ; String sql = "UPDATE notifications n " + "SET n.status = :status, " + "n.is_visible = :visible, " + "n.last_updated = CURRENT_TIMESTAMP " + "WHERE n.uuid = :uuid " ; int rowsAffected = session . createSQLQuery ( sql ) . setString ( "uuid" , notificationUuid ) . setString ( "status" , NotificationStatusType . INACTIVE . name ( ) ) . setBoolean ( "visible" , false ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw new NotificationException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Soft deletes a notification
 @param notificationUuid
Soft deletes a notification @param notificationUuid