agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/dao/RemoteFilePermissionDao.java
/**
	 * Deletes the give logical file permission.
	 * 
	 * @param pem
	 * @throws RemoteDataException
	 */
Deletes the give logical file permission.

@param pem
@throws RemoteDataException
Deletes the give logical file permission . @param pem @throws RemoteDataException
public static void delete(RemoteFilePermission pem) throws PermissionException
	{
		if (pem == null) return;
		try
		{
			Session session = getSession();
			session.delete(pem);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new PermissionException("Failed to delete file permission", ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public static void delete ( RemoteFilePermission pem ) throws PermissionException { if ( pem == null ) return ; try { Session session = getSession ( ) ; session . delete ( pem ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new PermissionException ( "Failed to delete file permission" , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Deletes the give logical file permission.
Deletes the give logical file permission .