agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/events/NotificationAttemptProcessor.java
/**
	 * Verifies the  parent {@link Notification} is still valid and has not 
	 * been cancelled.
	 * @return true if the notification is valid.
	 * @throws DisabledNotificationException if the notification has been cancelled
	 * @throws MissingNotificationException if the notification cannot be found anymore
	 */
Verifies the  parent  Notification is still valid and has not
been cancelled.
@return true if the notification is valid.
@throws DisabledNotificationException if the notification has been cancelled
@throws MissingNotificationException if the notification cannot be found anymore
Verifies the parent Notification is still valid and has not been cancelled . @return true if the notification is valid . @throws DisabledNotificationException if the notification has been cancelled @throws MissingNotificationException if the notification cannot be found anymore
public boolean isNotificationStillActive() 
	throws DisabledNotificationException, MissingNotificationException 
	{
		try {
			this.notification = new NotificationDao().findByUuidAcrossTenants(attempt.getNotificationId());
			if (this.notification == null) {
				throw new MissingNotificationException("Unable to locate parent notification.");
			}
			else if (this.notification.getStatus() != NotificationStatusType.ACTIVE) {
				throw new DisabledNotificationException("Notification " + attempt.getNotificationId() + 
						" has been disabled by upstream process. No further attempts will be made.");
			}
			else {
				return true;
			}
		} catch (DisabledNotificationException e) {
			throw e;
		} catch (Exception e){
			throw new DisabledNotificationException("Unable to locate parent notification.", e);
		}
	}
public boolean isNotificationStillActive ( ) throws DisabledNotificationException , MissingNotificationException { try { this . notification = new NotificationDao ( ) . findByUuidAcrossTenants ( attempt . getNotificationId ( ) ) ; if ( this . notification == null ) { throw new MissingNotificationException ( "Unable to locate parent notification." ) ; } else if ( this . notification . getStatus ( ) != NotificationStatusType . ACTIVE ) { throw new DisabledNotificationException ( "Notification " + attempt . getNotificationId ( ) + " has been disabled by upstream process. No further attempts will be made." ) ; } else { return true ; } } catch ( DisabledNotificationException e ) { throw e ; } catch ( Exception e ) { throw new DisabledNotificationException ( "Unable to locate parent notification." , e ) ; } }
Verifies the  parent {@link Notification} is still valid and has not
 been cancelled.
Verifies the parent { @link Notification } is still valid and has not been cancelled .