@Test @WithMockUser(TEST_USER2) @Transactional(propagation = Propagation.REQUIRES_NEW) public void deleteFileByBioItemId() throws IOException { AclTestDao.AclEntry refAclEntry = new AclTestDao.AclEntry(bam1refIdentity, 1, testUserSid, AclPermission.WRITE.getMask(), true); refAclEntry.setId(1L); aclTestDao.createAclEntry(refAclEntry); BiologicalDataItem biologicalDataItem = itemSecurityService.deleteFileByBioItemId(bam1.getBioDataItemId()); Assert.assertEquals(biologicalDataItem.getId(), bam1.getId()); }
@PostAuthorize("isAllowed(returnObject, 'WRITE')") public BiologicalDataItem deleteFileByBioItemId(Long id) throws IOException { return dataItemManager.deleteFileByBioItemId(id); }
DataItemSecurityService { @PostAuthorize("isAllowed(returnObject, 'WRITE')") public BiologicalDataItem deleteFileByBioItemId(Long id) throws IOException { return dataItemManager.deleteFileByBioItemId(id); } }
DataItemSecurityService { @PostAuthorize("isAllowed(returnObject, 'WRITE')") public BiologicalDataItem deleteFileByBioItemId(Long id) throws IOException { return dataItemManager.deleteFileByBioItemId(id); }  }
DataItemSecurityService { @PostAuthorize("isAllowed(returnObject, 'WRITE')") public BiologicalDataItem deleteFileByBioItemId(Long id) throws IOException { return dataItemManager.deleteFileByBioItemId(id); }  @AclMaskList @PostFilter(ROLE_ADMIN + OR + READ_ON_FILTER_OBJECT + OR + FILTER_OBJECT_IS_REFERENCE) List<BiologicalDataItem> findFilesByName(String name, boolean strict); @PostAuthorize("isAllowed(returnObject, 'WRITE')") BiologicalDataItem deleteFileByBioItemId(Long id); @PostAuthorize("isAllowed(returnObject, 'READ')" + OR + RETURN_OBJECT_IS_REFERENCE) BiologicalDataItem findFileByBioItemId(Long id); }
DataItemSecurityService { @PostAuthorize("isAllowed(returnObject, 'WRITE')") public BiologicalDataItem deleteFileByBioItemId(Long id) throws IOException { return dataItemManager.deleteFileByBioItemId(id); }  @AclMaskList @PostFilter(ROLE_ADMIN + OR + READ_ON_FILTER_OBJECT + OR + FILTER_OBJECT_IS_REFERENCE) List<BiologicalDataItem> findFilesByName(String name, boolean strict); @PostAuthorize("isAllowed(returnObject, 'WRITE')") BiologicalDataItem deleteFileByBioItemId(Long id); @PostAuthorize("isAllowed(returnObject, 'READ')" + OR + RETURN_OBJECT_IS_REFERENCE) BiologicalDataItem findFileByBioItemId(Long id);  }