agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/NotificationAttemptDao.java
/**
	 * Deletes a notification
	 * 
	 * @param attempt
	 * @throws NotificationException
	 */
Deletes a notification

@param attempt
@throws NotificationException
Deletes a notification @param attempt @throws NotificationException
public void delete(NotificationAttempt attempt) throws NotificationException
	{
		if (attempt == null)
			throw new NotificationException("NotificationAttempt cannot be null");
		try
		{
			Session session = getSession();
			session.disableFilter("notificationAttemptTenantFilter");
			session.delete(attempt);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new NotificationException("Failed to delete notification", ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public void delete ( NotificationAttempt attempt ) throws NotificationException { if ( attempt == null ) throw new NotificationException ( "NotificationAttempt cannot be null" ) ; try { Session session = getSession ( ) ; session . disableFilter ( "notificationAttemptTenantFilter" ) ; session . delete ( attempt ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new NotificationException ( "Failed to delete notification" , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Deletes a notification
Deletes a notification