agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/NotificationAttemptDao.java
/**
	 * Gets a {@link NotificationAttempt} by its uuid regardless of tenant.
	 * 
	 * @param uuid the {@link NotificationAttempt#getUuid()} to search by.
	 * @return
	 * @throws NotificationException
	 */
Gets a  NotificationAttempt by its uuid regardless of tenant.

@param uuid the  NotificationAttempt#getUuid() to search by.
Gets a NotificationAttempt by its uuid regardless of tenant . @param uuid the NotificationAttempt#getUuid () to search by .
public NotificationAttempt findByUuidAcrossTenants(String uuid) throws NotificationException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			session.disableFilter("notificationTenantFilter");
			String sql = "from NotificationAttempt n where n.uuid = :uuid";
			NotificationAttempt notification = (NotificationAttempt)session.createQuery(sql)
					.setString("uuid",uuid)
					.uniqueResult();
			session.flush();
			return notification;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new NotificationException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public NotificationAttempt findByUuidAcrossTenants ( String uuid ) throws NotificationException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; session . disableFilter ( "notificationTenantFilter" ) ; String sql = "from NotificationAttempt n where n.uuid = :uuid" ; NotificationAttempt notification = ( NotificationAttempt ) session . createQuery ( sql ) . setString ( "uuid" , uuid ) . uniqueResult ( ) ; session . flush ( ) ; return notification ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new NotificationException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Gets a {@link NotificationAttempt} by its uuid regardless of tenant.
Gets a { @link NotificationAttempt } by its uuid regardless of tenant .