agave-files/files-core/src/main/java/org/iplantc/service/io/dao/FileEventDao.java
/**
	 * Deletes the give job permission.
	 * 
	 * @param event
	 * @throws LogicalFileException
	 */
Deletes the give job permission.

@param event
@throws LogicalFileException
Deletes the give job permission . @param event @throws LogicalFileException
public static void delete(FileEvent event) throws LogicalFileException
	{
		if (event == null)
			throw new LogicalFileException("FileEvent cannot be null");
		try
		{
			Session session = getSession();
			session.delete(event);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new LogicalFileException("Failed to delete job event.", ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public static void delete ( FileEvent event ) throws LogicalFileException { if ( event == null ) throw new LogicalFileException ( "FileEvent cannot be null" ) ; try { Session session = getSession ( ) ; session . delete ( event ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new LogicalFileException ( "Failed to delete job event." , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Deletes the give job permission.
Deletes the give job permission .