@ Override public void delete ( IPermission perm ) throws AuthorizationException { Connection conn = null ; try { conn = RDBMServices . getConnection ( ) ; String sQuery = getDeletePermissionSql ( ) ; PreparedStatement ps = conn . prepareStatement ( sQuery ) ; try { primDelete ( perm , ps ) ; } finally { ps . close ( ) ; } } catch ( Exception ex ) { log . error ( "Exception deleting permission [" + perm + "]" , ex ) ; throw new AuthorizationException ( "Problem deleting Permission " + perm , ex ) ; } finally { RDBMServices . releaseConnection ( conn ) ; } }
Delete a single IPermission from the store .