agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/dao/TransferTaskDao.java
/**
     * Gets the transfer task by uuid regardless of tenant.
     * 
     * @param uuid
     * @return
     */
Gets the transfer task by uuid regardless of tenant.

@param uuid
@return
Gets the transfer task by uuid regardless of tenant . @param uuid @return
public static TransferTask findByUuid(String uuid)
    {
        try
        {
            Session session = getSession();
            session.disableFilter("transferTaskTenantFilter");
            TransferTask system = (TransferTask)session
                    .createCriteria(TransferTask.class)
                    .add(Restrictions.eq("uuid", uuid))
                    .uniqueResult();
            session.flush();
            return system;
        }
        catch (HibernateException ex)
        {
            throw ex;
        }
        finally
        {
            try { HibernateUtil.commitTransaction(); } catch (Throwable ignore) {}
        }
    }
public static TransferTask findByUuid ( String uuid ) { try { Session session = getSession ( ) ; session . disableFilter ( "transferTaskTenantFilter" ) ; TransferTask system = ( TransferTask ) session . createCriteria ( TransferTask . class ) . add ( Restrictions . eq ( "uuid" , uuid ) ) . uniqueResult ( ) ; session . flush ( ) ; return system ; } catch ( HibernateException ex ) { throw ex ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable ignore ) { } } }
Gets the transfer task by uuid regardless of tenant.
Gets the transfer task by uuid regardless of tenant .