/** * Delete a data object. * @param row the object to delete * @param options the parameters to apply (ignored) */ private void deleteDataObject(IObject row, Parameters options) { iUpdate.deleteObject(row); }
public void runAsAdmin() { iUpdate.deleteObject(e); } });
public void runAsAdmin() { iUpdate.deleteObject(g); } });
@RolesAllowed("system") @Transactional(readOnly = false) public <T extends IEnum> void deleteEnumeration(T oEnum) { iUpdate.deleteObject(oEnum); }
@RolesAllowed("user") @Transactional(readOnly = false) public void deleteComment(@NotNull Annotation comment) { List<SessionAnnotationLink> links = iQuery.findAllByQuery( "select l from SessionAnnotationLink l " + "where l.child.id = :id", new Parameters() .addId(comment.getId())); for (SessionAnnotationLink sessionAnnotationLink : links) { iUpdate.deleteObject(sessionAnnotationLink); } iUpdate.deleteObject(comment); }
@RolesAllowed("user") public void deleteImagesByDataset(long datasetId, boolean force) throws SecurityViolation, ValidationException, ApiUsageException { List<Object[]> links = iQuery.projection( "select link.id, c.id from DatasetImageLink link " + "join link.parent p " + "join link.child c " + "where p.id = :id", new Parameters() .addId(datasetId)); Set<Long> ids = new HashSet<Long>(); for (Object[] link_child : links) { ids.add((Long)link_child[1]); iUpdate.deleteObject(new DatasetImageLink((Long)link_child[0], false)); } deleteImages(ids, force); };